SDL port of Chaste Tris


Having previously written my Tetris game using Raylib, I have slowly been porting it over to SDL. This is not a replacement for the original Raylib Chaste Tris which is already available on Steam and Itch.io but rather an alternative for users of SDL who want to learn from my source code(which is all present in the zip file along with the Windows executable).

But even for non programmers, there is a benefit to using the SDL version. Compared to the one made with Raylib, it loads up in less than a second because it neither loads OpenGL nor any music. This makes it more speed and size efficient.

This project has shown me that SDL allows for greater control of the hardware even though the learning curve has been a bit higher. Key presses and releases can be handled separately. Also SDL does not auto manage the framerate and so I actually put in timer code to slow the program down. I like this extreme control and this has been an entry point into the world of game development with SDL.

One unique feature of my game is that I wrote my own font library that loads images of 95 characters and just blits the right characters to the screen. I have that library also as a separate project on itch.io which anyone can download for free if they are interested in how it is achieved.

I look forward to feedback from anyone who tries my game. It is for Tetris nerds and anyone who likes older retro look and feel.

Files

sdl_chastetris.zip 700 kB
Mar 03, 2023

Get SDL Chaste Tris

Leave a comment

Log in with itch.io to leave a comment.