MichaelSinsbeck / platformer

A ninja platformer written in LÖVE
7 stars 0 forks source link

Stone #177

Closed michalove closed 7 years ago

michalove commented 10 years ago

I will add a stone object. That will work exactly as shown in the button-end-screen animation. When it falls onto a button, it will be pressed.

Germanunkol commented 10 years ago

Awesome idea :)

michalove commented 10 years ago

I was just thinking: Maybe the stone should only be included, if it has more than one purpose. Otherwise, we might equally well use a different object. I will find something.

michalove commented 10 years ago

I inserted the rock for now, but at the moment its only purpose is to push buttons (see level "house of the many spikes"). Some other uses for it could be:

What behavior do you expect from a big rock?

Germanunkol commented 10 years ago

The rock works great. A few things I noticed:

michalove commented 10 years ago
Germanunkol commented 10 years ago

Yes, please let's keep the falling button. It's not something we need to use all the time, but if we use it just once, it'll be a nice, fun little effect.

To be honest, I don't think we need the whole collision thing as you mention it. It seems overkill. Plus, pushing boxes around is so... 0815, if you know what I mean. Almost all platformers have it. I think the easiest way (implementation-wise and logic-wise) would be to use a non-walking enemy which has spikes and just falls down. It could even look a bit like a stone (round-ish and fat). And it could have an animation while falling and another one when touching the ground. So it would be very similar to the walking enemy except for the fact that it doesn't walk... (code-wise, we could re-use almost all the code from the walker, I think). I don't think it should kill enemies, though. That would be illogical again, since enmies currently don't kill each other. But when the player touches it, the player dies.

michalove commented 10 years ago

Cool. I like the idea of the falling, nonwalking enemy. Maybe a grumpy, not-amused looking block. I will go for that.

Also, I will keep the falling button. :)

Germanunkol commented 10 years ago

Maybe a grumpy, not-amused looking block.

Yes, exactly what I thought!

Also, I will keep the falling button.

Thanks :D