1 decade ago by szimek
Hi,
I'd like to create a game game where players run around a small planet (the whole planet/circle is visible on the screen and the center of gravity is at the center of the planet), shoot etc. Is it possible to do it with ImpactJS?
If running, jumping and shooting around a circle with gravity etc. is not possible, maybe it would be possible to make it differently - the whole game logic could work in Cartesian coordinate system, where players move on a single plane (with the only trick that if an entity leaves the screen on the right, it reappears on the left and vice versa) and then after all input/physics position updates are processed, it would simply draw them using polar coordinates - one can think of it as if the plane on which the players move was folded to form a circle. I'm not sure if it's actually an easier solution :)
Cheers,
Szymon
I'd like to create a game game where players run around a small planet (the whole planet/circle is visible on the screen and the center of gravity is at the center of the planet), shoot etc. Is it possible to do it with ImpactJS?
If running, jumping and shooting around a circle with gravity etc. is not possible, maybe it would be possible to make it differently - the whole game logic could work in Cartesian coordinate system, where players move on a single plane (with the only trick that if an entity leaves the screen on the right, it reappears on the left and vice versa) and then after all input/physics position updates are processed, it would simply draw them using polar coordinates - one can think of it as if the plane on which the players move was folded to form a circle. I'm not sure if it's actually an easier solution :)
Cheers,
Szymon