A fully configured VSCode template for LOVE
- π Rich Lua language features with Lua Language Server
- π§ Debugging with Local Lua Debugger
- π’ Automatic builds with Makelove
- π¨βπ» Consistent coding styles with Editorconfig
- πββοΈ Running scripts with NPM Scripts
- ποΈ Organized with Workspaces
- π Extensible and configurable for your needs
- Visual Studio Code
- LΓVE 11.4
- Makelove
- NPM (Optional)
LΓVE and Makelove should be in your PATH environment variable.
1 - Use this template to create a new repository for your game, then clone that repository locally.
2 - Open the Workspace.code-workspace
file with Visual Studio Code.
You will be prompted that there are recommended extensions and if you want to install these. Click 'Install'.
3 - Configure the Game/conf.lua
and Tools/build/makelove.toml
with the settings specific for your game.
4 - Configure the Root/.editorconfig
to your liking for code styles.
5 - Change the Root/LICENSE
file to a swap out my name for your name, or change it to a license of your liking.
Press F5
to launch the game in 'Debug mode'. In debug mode you can use breakpoints and inspect variables. This does have some performance impact though.
You can switch to 'Release mode' in the 'Run and Debug' tab (Ctrl+Shift+D
).
Alternatively, you can run lovec game
in the terminal.
βββ /Game
β βββ /assets Contains the game's assets
β βββ /lib Contains external libraries
β βββ /src Contains the game's source code
β
βββ Tools
β βββ /build Contains the makelove.toml
β βββ package.json Contains all scripts to use with NPM Scripts
β
βββ Resources Contains resources for you game that should not be shipped, like raw audio
β
βββ Builds Contains the builds of your game made with makelove
β
βββ Root Root access to the workspace