This template is based on the min-love2d-fennel repository with two differences:
- get rid of everything that is not absolutely necessary to avoid any clutter
- adapt the documentation for the usage with Neovim and Conjure (as this is what I use)
love2d needs to be installed and available on PATH
- you don't need Lua to be installed
- you don't need LuaRocks to be installed
- you don't need Fennel to be installed
Everything Lua related is handled by
love2d
Setup
- execute
:lua vim.g['conjure#client#fennel#stdio#command'] = "love ."
before opening the project - open
game.fnl
andlove
should start the game automatically
Reload
In order to hot reload changes made to the code use ConjureFnlEvalReload
The default keybinding is
<localleader>eF
Modify
You can edit the game's state with ease from the REPL:
(set state.x 50)
(tset state :y 100)
- love2d for making game development in Lua possible
- min-love2d-fennel for the inspiration and especially for
lib/stdio.fnl
- The Conjure plugin for the awesome editing experience in Neovim