I’ll be live-streaming myself building the game 2048 from scratch using some libraries we built. The livestream is tonight (Wednesday) at 7:30pm PST.
We made a library to make it simple to draw 2D shapes on screen and make them interactive, called Reprocessing. It’s a very simple library that basically makes you write a function that gets called at 60fps, and allows you to make imperative draw calls in it. We handle all the GL under the hood and try to be efficient.
Reprocessing is now at a point where we can play with it and make actual games, so that’s what we’re doing.
We made flappy bird last week and it went pretty well, only took us 3h lol.
It is exciting though because now I’m pretty confident in saying that one can write a simple game in OCaml.
Here’s the channel where the flappy bird livestream is: https://m.youtube.com/channel/UCt9qBLTPcmN_x6YWys3bWVQ
If you watch the livestream you’ll see that we have a special hook in reprocessing that allows the user to get hotreloading, meaning the user saves the file and in a couple hundred ms the game runs their new code. The way we achieved that is stupidly simple, and will make you all cringe I’m sure, so I’ll forgo the details unless someone’s interested