A downloadable game

1. Engine Functions

1) Create 3D Animation according to positions and speed(lua file)


2) Use AnimationBuilder to create animation binary files and use Animation static library to read the real data.


3) Two different animation pattern

Loop animation : moving from the first position to the last and start moving to the first position again

Move forward and back animation: moving from the first position to the last and then moving back

2. How to use

1) Use Handle to load the animation files



2) Call the two functions(LoopMove and MoveAndBack) inside of UpdateBasedOnTime Function in MyGame.cpp

3) GameMode

GameMood means speed level, 1 for basic speed, 2 for normal speed, 3 for fast speed.

3. Show Animation


4. What I learned

I think the most important thing that I learned from this is I think I had a better understanding about how to make your structure clear and easy to use for others. After I finished the main functions about my animation engine, I realized that it is not that simple for others to call the functions. So I spend more hours to improve my code that easy for others to use. 

Download

Download
AnimationEngine.zip 16 kB

Leave a comment

Log in with itch.io to leave a comment.