|
|
|
|
|
by potash
4500 days ago
|
|
How hard would it be to solve this deterministically? Can someone comment on the game's physics? I am assuming: - constant horizontal velocity
- gravity
- flapping implemented via impulse
- collisions are handled with bounding boxes
Maybe someone who knows something about optimal control (ODE) say whether this is analytically solvable? Of course there's still the practical stuff (numerical integration, I/O lag) to deal with but I'm optimistic. |
|
Set flap_height = bottom of next pipe + constant.
If bird height < flap_height, flap.
Done!