Skip to content

UCMHSProgramming2015/GravityBalls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

GravityBalls

#Day 1 Goal: Create balls that appear to be affected by gravity

  • Fork this repository and clone the forked repository. Make sure you're editing the code I've provided, not creating new code
  • Cause gravity to affect the single ball provided. Gravity will be acceleration in a particular direction
  • Make sure you're remembering to commit and sync
  • After you have one ball bouncing, create a branch called "CreatingArrays" and remember to publish it
  • On this branch, modify your code to have 30 of these gravity balls (or some other number in that range). Once again, remember to commit and sync
  • Merge this new branch back in to the master branch
  • You're done for the day!

##Acceleration Just as velocity is change in position over time, acceleration is change in velocity over time. Creating acceleration is going to be very similar to creating velocity. I recommend a variable - perhaps call it "gravity"? I also recommend a small value - perhaps somewhere around .1

About

Repository for creating balls that are affected by gravity

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •