Random Events
Mithat Konar
February 29, 2016
Random events
Generating random numbers
Download starter project
- A
randomInt
function to generate random integers over a range.
- Same thing but using full frame rate.
- Note the
game.frame
property.
Making it rain
Download starter project
- Place a Sprite above the canvas and let it drop.
- Recyle the Sprite to make it look like its raining one drop at a time.
Fun with color
There are no starter projects for these.
- Random colors and location
- Sweep through background colors.