orangeduck / Corange

Pure C Game Engine
http://www.youtube.com/watch?v=482GxqTWXtA
Other
1.78k stars 199 forks source link

Platformer has issues with velocity #50

Open EmmanuelMess opened 4 years ago

EmmanuelMess commented 4 years ago

The bird in the platformer has weird movement, it doesn't seem intuitive, it seems to accelerate either too little or too much.

It would be a good idea to make the buttons add acceleration to the velocity, and not edit the velocity 'directly'.

blogdron commented 4 years ago

It framerate bug, i can fix it

blogdron commented 4 years ago

@EmmanuelMess check.

It may not make sense to make changes to the mechanics of movement because the creator of the demo could intentionally conceive such a movement that there would be a challenge to the player

EmmanuelMess commented 4 years ago

It may not make sense to make changes to the mechanics of movement because the creator of the demo could intentionally conceive such a movement that there would be a challenge to the player

"challenge to the player" and "difficult to grasp" are different things, especially in a demo for the game engine. What I mean to say (with "unintuitive") is that I don't understand how the velocity relates to the user interaction. Maybe add a comment here?

blogdron commented 4 years ago

Sudden movements were associated with unfixed frames. I thought about this I had in mind when the bird moved very sharply. Although this was a problem anyway, because the frames were not captured. (We are definitely not talking about this. Have you tried to fix the number of frames in the game?)

Well, if you have an idea how to make a convenient and intuitive move, you can suggest changes for this demonstration. If you have the desire and time, make the bird movements good and enjoyable and suggest a patch =) I think this is the best option. Do it =)

There are many mechanics of movement, try to suggest improvements Well, or someone else decides to do it. =)

P.S. Sorry for may bad english