{"by":"zamfofex","descendants":43,"id":36638591,"kids":[36642985,36641072,36638997,36639094,36640095,36640015,36643084,36639007,36639379,36642713,36647003,36641223,36639658,36638953,36641141,36638949,36638597],"score":127,"text":"I have been working on this game somewhat sparsely for the past three years or so. However, it is still in a very early stage, and there is a lot of work to do.<p>One of my friends encouraged me to post about it here, since he felt people might find interesting how I don’t use any libraries for it.<p>The game can be played on a browser by virtue of WebAssembly. There are native ports using either MiniFB or SDL2, but you have to build those yourself.<p>I decided to write the game in C because I feel like it is a simple language that a lot of people can understand well enough, and I didn’t think I needed anything more involved or complicated.<p>Over time, the game’s code became complicated, and I decided to use advanced features such as coroutines and higher order procedures, besides general overly engineered abstractions.<p>But then, over time I grew to feel like a lot of those abstractions didn’t really add anything to it, and just made it more complicated (and oftentimes more buggy) than it really needed to be, so a few weeks ago, I made a significant refactoring to it to remove all of those abstractions without removing almost any features from the game.<p>Milestones are released effectively whenever I get the game’s code to a decently presentable state. Sometimes, this means there are a lot of changes and big refactorings, but sometimes it means there are only a few small changes.<p>The game uses a simple 2D model system to generate images for the character’s animations dynamically during initialisation. (The source code can be browsed using a web browser on its page.)<p>The character can be controlled using the arrow keys or “WASD” (“A” and “D”) (double-tap a direction to jump).","time":1688765442,"title":"Show HN: My platforming game written in C 89","type":"story","url":"https://zamfofex.neocities.org/mimimi/"}