Add example love2d setup #23
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Im not sure if this would be welcome or not so feel free to just close the PR.
I was just playing with the project and made a little test with the love2d game framework so I thought I might offer it as an example in case it could help to showcase how having a nice language like SML compile to Lua could come in handy, especially considering functional programming offerings for game development are quite limited.
The example is just a very naive MVU implementation to update the game state and bindings for a minimal part of the API, just enough to get a something on screen and update it so it shouldn't need too much maintenance.
The code is surely not all that good since im fairly new to SML so if need be I would have no problem to flesh it out or clean it up a bit.