Pseudo 3D Graphics Engine! [v2 - Sprite Animation]

preview_player
Показать описание
This update allows for simple animation of sprites. This is purely a testing environment that I've set up for a walking animation that can easily be applied to the various in-game characters. As this is my first deep-dive into creating an easy to use animation code base, I'm being quite careful in setting it up in such a way that will allow me to easily update in the future.

My approach here has been to create a very simple "template" 8x8 sprite sheet that would have, on its two dimensions, different walking animations by different "points of view". So, we have an 8 frame animation that can be seen from 8 different angles (in front, behind, from the side, and diagonally on).

The arrow on the sprite represents the direction of the sprite that the player would see, given the sprite's point of direction relative to the player.

The red boxes that update once every few frames run from 1 to 8, representing the 8 different frames of animation - in this case, the animation would be walking, but I'll look to allow for different types of animation - e.g. fighting.

This seems to be working quite well. In this example, the animation routine and sprite sheet for each character can be uniquely customised - I've simply set it to be identical in style and timing to make things a bit simpler for now. Has a strange vibe to it!

Hope you enjoy - as always, any comments or questions, please let me know!
Рекомендации по теме
Комментарии
Автор

Would love to see where this is going if its still in progress

samd
welcome to shbcf.ru