I’ve put some of my common code here, but you might be better served by an engine like Bevy or Fyrox.
cragwind
Creator of
Recent community posts
I've just released an initial web demo of Triverse, a game about building drones out of parts and battling them. You can build by placing various parts like cores, thrusters, hulls, or turrets in triangle grid cells to form functioning drones. Designing a drone involves tradeoffs in mobility, power, defense, etc.
I've thought about releasing parts of it as examples or libraries. In the meantime, if you hadn't seen them, you might check out the platformer demo or Garnet examples. For learning idiomatic F#, the roguelike example game logic might be a good start.
I added some sample projects using Veldrid and OpenTK.OpenAL here: https://github.com/bcarruthers/garnet/tree/master/samples
One makes use of ECS in a real-time simulation and the other is turn-based with idiomatic F# code and no ECS. There's also wrapper code over Veldrid to help with sprites and tiling.
They come to about 37 MB when publishing standalone trimmed.