DSLua Community
Welcome, Guest. Please login or register.
May 21, 2012, 09:24:58 PM
1371 Posts in 262 Topics by 33109 Members
Latest Member: Limewire Download
DSLua Community  |  DSLua - Best scripting language for Nintendo DS  |  Home-brew/Hacks/Games/Projects  |  Zhentris - Tetris in DSLua « previous next »
Pages: [1]
Author Topic: Zhentris - Tetris in DSLua  (Read 5300 times)
Zhen
Waxing Crescent
**
Posts: 45


WWW
« on: April 01, 2006, 08:01:29 AM »

Hello everyone,

I have made a Tetris Clone using DSLua.

The code + data
http://zhen.sydow.googlepages.com/zhentris.zip

A pair of images


When I made the Tetris, I learnt several features that will be great to put in DSLua.

 - Get the time. The most accurate way to control the time, will be obtain the number of vertical blanks since init of DSLua because the Nintendo DS refresh frequency is a well-know fact.

 - An API to draw tilemaps, I made the Tetris map in ascii art.

 - I use a function to obtain the Button Down event. Add Button Up and Down check functions in the DSLua API.

 - Play sound and music :woohoo:.

 - It will be cool, a mode of rom pack with a default Lua script. This way we can distribute the rom like a full game, without see the *.lua, *.bmp files, gbfs folders ..etc. I can give my Zhentris to my friends without explain How to init the zhentris.lua script.

Thanks a lot for DSLua and Keep on it, Luis :lol:

Post edited by: Zhen, at: 2006/04/17 08:22
Logged
waruwaru
Administrator
Waxing Crescent
*****
Posts: 78


« Reply #1 on: April 02, 2006, 10:52:39 AM »

Great work Luis! Smiley

Thanks for the DSLua suggestions!  I am currently working on the Tiled background stuff and some sound functionalities.  I will probably make the source available after a couple more iterations.  At that time, people should be able to compile their scripts in and make it look like a stand-alone app. Smiley
Logged
Zhen
Waxing Crescent
**
Posts: 45


WWW
« Reply #2 on: April 06, 2006, 06:55:05 AM »

I change a bit the Zhentris. I can allow the creation of more than one tetris, so I create two, the actual and the next one.

Great news, that you are working on tiles. When source become available, I will change the Zhentris to change the static layout.

For now I am trying the Lua coroutines to create gameplay Entities. The next project -> zhenship or something else.

Luis.
Logged
Zhen
Waxing Crescent
**
Posts: 45


WWW
« Reply #3 on: April 17, 2006, 10:08:31 AM »

I'm updated the Zhentris to use the map funcionality of DSLua 0.4 :laugh:

The new versión is a lot more eye candy but the functionality is the same. Well, not exactly, I increase the fall velocity every 10 lines.

Also, something that a learnt about maps. Lua will erase local variables with garbage collection, so if the maps are not created in the global space, it'll disappear.

So,... the code and the graphics in the same place:

http://zhen.sydow.googlepages.com/zhentris.zip

Thanks,
Logged
Pages: [1]
« previous next »
    Jump to: