Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs

F# Game examples

A topic by vorotato created Jun 16, 2021 Views: 255 Replies: 6
Viewing posts 1 to 6
Host (1 edit) (+1)

7Sharp9: F# Monogame Tutorial Series

JWosty:   Monogame Circus Maximus

tpetricek:  Fable Mario


Please reply with any of your own you might have.

(1 edit) (+2)

https://github.com/ChrisPritchard/Xelmish - contains multiple examples including Tetris and Space Invaders

(Probably needs a bit of a refresh in terms of dotnet core version)

Also have an older platformer here: https://github.com/ChrisPritchard/MiniKnight
And a sort of top down, diablo-esque PoC here: https://github.com/ChrisPritchard/DungeonRaider
And finally, a wolfenstein 3D sort of thing here (using F# plus SDL): https://github.com/ChrisPritchard/tiny-ray-caster

Host

Thanks! very cool to see a ray caster example. Thanks so much Chris!

Submitted

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.

Can we use any library we want, like raylib? Or are we trying to stick more towards good functional F# programming?

Host

I think it's up to you and what you think is best for your game.

Another sample of a (clone) game I threw together a while ago - SuperHexagon - https://github.com/jwosty/SuperHexagon - built with SDL2-CS and OpenGL.