Day 12: Learning Lua
January 17, 2010 by pekuja · Leave a Comment
I was going to take a little detour from the current project and make another game. Then as I started to copy parts of my other project to reuse in the new project, I noticed that some parts were such that I couldn’t directly reuse the code because the data was going to be different, so I started thinking of what I could do to make the code generic and just input data into it. This is something I was doing already in an earlier version of my project, but the config file format I was using wasn’t very flexible, so I gave it some thought, and decided on using Lua for my game data files. I want to add scripting capabilities anyhow, so this way I hit two birds with one stone. I also have some thoughts about making some editors for the data I’ll need, such as modifying parameters for animations. Optimally, I would have to do very little redundant boring work, and only focus on stuff that’s new for the project at hand.