crabcrabcam / Skiing-Game

A skiing game
0 stars 0 forks source link

How to spawn flags #2

Open crabcrabcam opened 7 years ago

crabcrabcam commented 7 years ago

All numbers as percentage of screen width (eventually will stretch or squish the snow to be exactly screen width) 100 - distance = max_left //Make this percentage into pixels 0 = min_left left.pos = rnd(min_left, max_left) right.pos = left.pos + distance

Pretty simple when you think about it :)