Abusing ActionCable
Been messing around with the idea of building an incremental game using Rails. Not the usual choice for game development, but with Action Cable handling real-time updates, it actually works pretty well.
Right now I’m using Rails purely as an API. It handles the game state, logic, and broadcasts changes through websockets. On the frontend, I’m experimenting with ReactJS. The goal is to keep things decoupled enough that I can swap out the frontend later if I feel like it. Maybe Unity. Maybe Godot. Maybe even PhaserJS. Just keeping my options open.
I’ve got a small setup where resources tick up over time. Nothing fancy visually, but fun to watch it go.
Not sure if this turns into a full game or stays a side experiment, but it’s been a nice change of pace. Rails feels solid for managing the backend logic, and it’s fun seeing it do something outside the typical CRUD apps.