CS113 / fatty-big-star

A browser based platform game, by: Lucas, Dinali, Allan, Han, Skylar
MIT License
0 stars 4 forks source link

Experiment with physics values and report finding to this issue #2

Closed codelucas closed 9 years ago

codelucas commented 9 years ago

Tweak the existing physics variables and see what "feels" right.

Also experiment with the rate variables (per how many game seconds should we add a new entity?)

codelucas commented 9 years ago

I meant to assign both Skylar and Allan, but Github won't let me

allansbeckman commented 9 years ago

So should we be adding entities based off altitude? Time? Or both?

codelucas commented 9 years ago

I'm also going to be tweaking these variables alongside you but here was the equation I had in mind:

Rate of spawning bad entities:

if (game.timer % (altitude) * constant == 0) {
    spawn()
}
Rate of spawning good entities:

if (game.timer % (1 / altitude) * constant == 0) {
    spawn()
}

Obviously, constant is going to be different for each entity and much more complex than just a variable, we need to make the spawns very reasonable.