A downloadable game

1. Summary - 3D Animation System

I decided to start from the lua file part. So I created a new project called AnimationBuilder to build the human-readable lua file to binary file, as we did before. 

I thought about put 3 kinds of data in the lua file, the amount of positions, positions and the speed. Then I realized that if the user wants to add more positions, they need to change the amount of positions too. So, for the convenience of the users, I decided to only put positions and speed data into the lua file. 

When I build the binary file, I use a loop to count how many positions the lua file has and add the number at the beginning of the binary file. And then add the positions and speed to the binary file.  When the game engine reads the binary file, I will check the first data (amount of positions), and then use this number to make an array to put the positions inside. I haven't decided how to use the speed, maybe I will make the objects moving according to the basic speed, but players can change the speed by pressing any key.

To make my engine more useful to other classmates and doable for me as well, I did some research and I am thinking about doing some moving back function too.  Because it is a very common thing that in games, when the player is not around, the enemies have the moving pattern, like moving forward and then moving back. So I think I might make the objects moving according to the order of the positions first, then moving back.



Leave a comment

Log in with itch.io to leave a comment.