Giter Site home page Giter Site logo

tic80-build-tutorial's Introduction

TIC-80 Build Tutorial

This is a tutorial to build the open source fantasy console TIC-80

Tools you'll need

You'll have to have these tools installed:

  • MinGW32 (32 bits version is a must)
  • EMScripten Compiler

Installing Mingw32

Download the installer from its donwload page. Once you have MinGW Installation Manager running (search for mingw-get.exe if you don't), select "All Packages > MinGW > MinGW Base System" on the left column. On the main panel, mark for installation ming32-base and check "Installation > Apply Changes".

After you finished the setup, open a command prompt and type in

gcc --version

and make sure you have both gcc and mingw32-make on path. If you don't, you add them manually. These tools are usually located under C:/MinGW/bin.

Installing EMScripten Compiler

Just follow the instructions on this page.

Cloning TIC-80

Clone TIC from github. From TIC's official README:

mkdir tic
cd tic
git clone https://github.com/nesbox/3rd-party
git clone https://github.com/nesbox/TIC-80

Building TIC-80

The first time you build TIC, you'll need to run these commands:

cd TIC-80
cd tools/bin2txt
mingw32-make
cd ../..
mingw32-make emscripten
mingw32-make mingw

You should now be able to run the bin\tic.exe executable.

Further TIC builds should be done with

mingw32-make mingw

inside the TIC-80 folder.

Note

If you still get errors from building TIC, try opening the makefile in the TIC-80 folder and change the first line from

CC=gcc

to

CC=mingw32-gcc -m32

Then proceed to delete all *.o, *.dll and *.exe files inside the bin folder

Another Note

You may have to copy SDL2.dll into the bin folder. You can find it by downloading a windows TIC build from its website.

That's all!

tic80-build-tutorial's People

Stargazers

 avatar

Watchers

 avatar  avatar

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.