Hacker News new | ask | show | jobs
by jibreel 3516 days ago
nice, as a web developer i wanted to try my hands on making a game. which turned out to be much harder than i thought, and also see if i could do any thing with c lang, never wrote a program more than ~15 lines of code in c, so i build a tetris game, using SDL lib.

funny thing is i also represented shapes like you did as 0 or 1 on plane, but then changed to x,y list of blocks.

here it is. https://gist.github.com/spaceexperiment/4d6b116ef577a2971259...