Giter VIP home page Giter VIP logo

tic80-boilerplate's Introduction

TIC-80 boilerplate


This project contains:

  • a very basic Entity Component System: libs/ecs.lua
  • a messaging system: libs/bus.lua
  • a state manager: libs/state.lua

Look at the spec directory for more details or look at the demo project there: https://github.com/pcornier/tic80-mini-platformer

Setup


First, edit Makefile and adjust these 3 parameters:

  • CART: the name of you cartridge
  • LINUX: the path to the TIC-80 directory if you are using Linux
  • ANDROID: the path to the TIC-80 directory if you are using Android

There's no WINDOWS parameter currently but feel free to fork the repo!

Then

  • run make data to extract data from the TIC-80 cartridge. You will need to install csplit, which is part of coreutils package.
  • run make to generate the cartridge with data. The generated cartridge will be copied to the TIC-80 directory.

On Android, I recommend the two apps Termux and DroidEdit. Termux will provide you with the two linux commands makeand csplit. DroidEdit is a nice little code editor that can connect Termux through ssh in order to trigger the make command remotely!

tic80-boilerplate's People

Contributors

pcornier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

tic80-boilerplate's Issues

Create a sort of `makefile` for Windows

@ECHO OFF

IF "%~1" == "data" GOTO data

SET CART="cart.lua"
SET META="src\_meta.lua"
SET LIBS="src\libs\*.lua"
SET OBJS="src\objs\*.lua"
SET MAIN="src\main.lua"
SET TICPATH = %APPDATA%\com.nesbox.tic\TIC-80

IF EXIST %CART% DEL %CART%

FOR /f %%i IN ('dir /s/b %META%') DO @type "%%i" >> %CART%
FOR /f %%i IN ('dir /s/b %LIBS%') DO @type "%%i" >> %CART%
FOR /f %%i IN ('dir /s/b %OBJS%') DO @type "%%i" >> %CART%
@type %MAIN% >> %CART%
IF EXIST "xx01" @type "xx01" >> %CART%

GOTO end

:data:
#TODO

:end:
ECHO "DONE"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.