dmarschal
Member
Hello!
This is my first contribution for the Pandora community.
---
T E T
E
T
is a falling block game with two drop zones. Nothing fancy.
Three files are attached to this post:
tetet.pnd - the game self packed in a PND
src.zip - source code
tetet-ingame.png
It was fully written on a Pandora. Runs on 125Mhz fine.
It comes with full assembly and C source code. It uses ARMv7 instructions and basic optimizations. (I'm still learning ARM asm.)
Controls
in menu:
up-down : choose menu
game b : select
in game:
le ft-right: mo ve tile left or right according to drop direction
game y: rotate tile
down: drop tile
game x: pause/exit
while paused:
game x: exit
game y: resume game
---
The game can be assembled and linked from source. To do it, simply run 'make' from terminal
If 'make' is not installed then run
as tetet.s
ld a.out -o tetet
from terminal.
tblrot.inc is generated using 'tblgen.c'
to compile tblgen:
gcc -lm tblgen.c -o tblgen
To run the game, simply execute 'run.sh' or
op_runfbapp ./tetet
---
Have fun!
---
For those who's interested in learning ARM assembly.
The game uses the following techniques:
-double buffered frame buffer graphics
-sound playing through /dev/dsp
-input event handling for keypad and gpio_keys
-everything is set up using syscalls no external libraries are used
-mandelbrot fractal generated for background
-texture mapping for showing the game table. input values are precalculated (tblgen.c)
-flood fill -like technique for full line removal

tetet.pnd
src.zip
This is my first contribution for the Pandora community.
---
T E T
E
T
is a falling block game with two drop zones. Nothing fancy.
Three files are attached to this post:
tetet.pnd - the game self packed in a PND
src.zip - source code
tetet-ingame.png
It was fully written on a Pandora. Runs on 125Mhz fine.
It comes with full assembly and C source code. It uses ARMv7 instructions and basic optimizations. (I'm still learning ARM asm.)
Controls
in menu:
up-down : choose menu
game b : select
in game:
le ft-right: mo ve tile left or right according to drop direction
game y: rotate tile
down: drop tile
game x: pause/exit
while paused:
game x: exit
game y: resume game
---
The game can be assembled and linked from source. To do it, simply run 'make' from terminal
If 'make' is not installed then run
as tetet.s
ld a.out -o tetet
from terminal.
tblrot.inc is generated using 'tblgen.c'
to compile tblgen:
gcc -lm tblgen.c -o tblgen
To run the game, simply execute 'run.sh' or
op_runfbapp ./tetet
---
Have fun!
---
For those who's interested in learning ARM assembly.
The game uses the following techniques:
-double buffered frame buffer graphics
-sound playing through /dev/dsp
-input event handling for keypad and gpio_keys
-everything is set up using syscalls no external libraries are used
-mandelbrot fractal generated for background
-texture mapping for showing the game table. input values are precalculated (tblgen.c)
-flood fill -like technique for full line removal

tetet.pnd
src.zip
Attachments
Last edited by a moderator: