Skip to content

nickav/pix16

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pix16

A fantasy console written in C from scratch.

API

The functions provided to you are available here: ./src/game.h

For example code, see: ./src/user.cpp

Getting Started

Windows

Install cl.exe from Microsoft Visual Studio Community Edition (recommended version: 2019). Go through the install flow and install C++ compiler tools.

Then, in a Command Prompt run the following script:

"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x64

This will set up the environment variables to compile for x64 devices (for this session only).

Now you should be able to run build.bat in the project root.

MacOS

Install SDL2:

brew install sdl2

Building

Windows

To build the project run:

.\build.bat

This will create a debug build in the build directory.

MacOS

To build the project run:

./build.sh

This will create a debug build in the build directory.

Release Builds

Windows

To build the project for release, run:

dist.bat

This will create a release build in the build directory and a distributable pix16_win32.zip file.

Other Platforms

The project has only been set up for Windows and MacOS so far. Linux is in theory possible with the SDL2 backend, but some changes to the build script would need to happen.

TODO

  • have some way to load non-monospaced fonts

  • transparency

  • see if we need to blend transparency in linear rgb

  • more robust audio mixing (we only support 8 concurrent sounds at the moment)

  • async audio API

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published