mspraggs / potentia

Southampton Game Jam 2015
0 stars 0 forks source link

Object rotation? #86

Closed Fyll closed 8 years ago

Fyll commented 9 years ago

Surprise, surprise, I've been re-writing the physics engine. This time, I'm doing it properly though (I've read stuff now! :D).

Anyway, to simplify my code a bit, I'm wondering: Do we want Objects to be able to rotate? E.g. a crate lands on the edge of a block, then rotates and falls off (as you'd expect) rather than just sitting on top of the block, supported by a few pixels.

I've been working with rotation in mind, so it's no extra effort to include it (well, beyond one function that I need to write to stop twisting, but that should be simple enough).

mspraggs commented 9 years ago

I don't see why not. If it's simple enough to implement, go for it :-)

Fyll commented 9 years ago

If object rotation is to be a thing, that means the Player can fall over (leaning too far over an edge, for example). Should he automatically right himself, or be stuck faced own on the floor until you press a button?

I like the idea of having to wait for you to stand up before you can start moving again. Also, lying down will need lying down sprites, as well as standing up animations.

Fyll commented 9 years ago

Believe it or not, I'm still wrestling with the last pile of problems (as an update, the segfaults are gone, I'm just trying to overcome a combination of very slow and very odd feeling code). To be honest, I've given up on the idea of having Units be able to fall over. It's just messy, looks bad, and thoroughly baffles the AI. Maybe down the line someone can try to put it back in, but I'm cutting it out for now, so that there's a realistic chance of me finishing this before becoming an unemployed layabout in three and a half years.

DivFord commented 9 years ago

I'm very much in favour of not having to animate falling over and standing up :P

DivFord commented 8 years ago

I believe this question has been answered. Closing.