Make and run TIC-80 games in Atom
Either run command:
apm install atom-tic80
Or:
atom-tic80
All commands can be ran via Command Palette. If you open it by pressing Ctrl+Shift+P
and type tic80
, you will see all the available commands.
Tic80: Run
command simply runs TIC-80. Although, it's not that simple because Atom needs to know how to run do it.
Try out the command: if it fails, go to the package settings and set proper path to your TIC-80 executable file.
Using Tic80: Run File
you can make your games right in Atom! Write some code, save it as .lua (or .js or whatever TIC-80 supports) and press Ctrl+R
(the command has a handy keybinding!).
The same command can also run .tic files. However, it's not recommended to edit them using Atom (or any other external text editor) because chances are this action will corrupt the files.
Sprites, tiles, music and other game assets, should be stored in a separate file with .tic extension that should be named the same way and moved into the same directory as your code file (e.g. dir/game.lua
and dir/game.tic
).
However, it's possible to have everything in one file (read).
As an additional feature, with Tic80: Create Project
you can create cart and code files in a preferred folder and start making games straight away!
Tic80: Create Project
commandnew [language]
if you want to use a language different from Lua (e.g. new js
)save <your-game>
Since 0.80.0, using TIC's PRO-version, you can save cart files as code files. If you want to keep both code and game assets in a single file, specify extension in step 5 (e.g. save <your-game>.lua
).
The package can print TIC-80 console output to a terminal within Atom. You can tweak its behavior and properties in the package settings.
The package also includes autocomplete feature for TIC's API and some handy snippets.
Changelog can be found in the CHANGELOG file.
This project is licensed under the terms of MIT license, See the LICENSE file for more info.
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.