Tetnis engine

7

wryhode 2025-07-27 21:37 (Edited)

Here's a buggy but mostly working tetris clone. It mostly adheres to the official guidelines but rotation, hard-dropping, the ghost piece and line clears are weird.

Controls

Key Action
Left Move piece left
Right Move piece right
Up Hard drop
Down Soft drop
S (Gamepad 2 left) / Z Rotate piece CCW
D (Gamepad 2 down) / X Rotate piece CW
F (Gamepad 2 right) Hold
E (Gamepad 2 up) Rotate twice

You can modify the game settings to make it easier or harder in the code. Line 20 to 38.

tetnis2.nx | Open in app
2025-07-27 21:37

jpospTynker 2025-07-28 04:36

where did the intro sequence go?


jpospTynker 2025-07-28 04:36

wait that was another game lol


SP4CEBAR 2025-07-28 12:02

I like the game over screen :p


was8bit 2025-07-28 12:09

Noice !


jpospTynker 2025-12-06 18:28

the game is good just too fast


wryhode 2025-12-06 21:17 (Edited)

its the speed and settings that i like but you can change it :) i'd look at DROP_FRAMES, DAS_FRAMES, ARR/ARE_FRAMES, GRAVITY_STEP and GRAVITY_FRAMES.


Log in to reply.