luizdepra / tic80-lua-template

A template project to build TIC-80 games with Lua, using multi-files.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TIC-80 Lua Template

This is a template project to build TIC-80 games with Lua, using multi-files. Which means you can organize, develop and test your game with separed Lua files, and build it together to release a cartridge.

Requirements

To use this template you will need:

  • Linux or macOS (it probably works on Windows with MinGW or WSL)
  • GNU Make
  • TIC-80 PRO (consider buying the PRO version or sponsoring @nesbox)
  • Lua
    • luarocks
    • luacc

Using

Use the main.lua as your base cartridge file to add and edit assets.

You code files must go inside the src folder. Then, you need require them inside the main.lua file.

Notes:

  • It should not be necessary to add them in the luacc line inside the Makefile.
  • You may need to edit some varibles like PLATFORM and GAME_NAME inside the Makefile.

Runing

To run and test your game:

make run

Building

To build your game:

make build

Acknowledgment

About

A template project to build TIC-80 games with Lua, using multi-files.

License:MIT License


Languages

Language:Lua 74.9%Language:Makefile 25.1%