|
From: <hol...@gm...> - 2007-11-13 07:38:18
|
Hey there! As you might have noticed I committed a number of changes today. They will allow writing to the screen using Lua. The idea was to proof that we can have the graphics implementation in C and call those functions from Lua to draw stuff. This will allow the following: 1. Keep performance critical graphics code in C 2. Keep game logic in C 3. Move the View to Lua It basically comes down to MVC if we do it right. The Model is the game's logic in C, the View is also C and the Controller is a call to certain Lua-functions. The commits I've sent are rather weak. You need to have the Lua in ./scripts/menu.lua for it to work and I've used strcpy. I will fix these later on but I was too anxious to show this to you. You will find a text printed on the main menu (new game, ..., exit) if the compile works for you. Any comments? Cheers, Fabian |