TIC80 - External Editor
To get a better experience to edit the sprites and maps while also editing the code in an external editor we can use
How to require a file
require does not work the way as expected in TIC-80. We need to add the package path.
package.path = package.path .. ";/Users/youruser/Library/Application Support/com.nesbox.tic/TIC-80/?.lua" require "game"