❤️ 2D Game Framework with ChaiScript
Go to file
2017-07-15 16:47:48 -04:00
chaigame Fix compilation warnings 2017-07-15 14:34:50 -04:00
test Fix __HAVE_TESTS__ 2017-07-15 10:06:57 -04:00
vendor Update sdl-libretro 2017-07-14 23:47:20 -04:00
.editorconfig Initial commit 2017-06-19 15:30:00 -04:00
.gitignore Initial commit 2017-06-19 15:30:00 -04:00
.gitmodules Update logging system 2017-07-14 22:39:28 -04:00
.travis.yml Add caching and fix Makefile commands 2017-07-15 11:11:53 -04:00
chaigame_libretro.info Fix includes 2017-07-14 23:41:53 -04:00
configure Add ./configure 2017-07-15 10:35:01 -04:00
Game.cpp Rename Application to Chame 2017-07-15 09:52:17 -04:00
Game.h Update header constants 2017-07-15 10:02:15 -04:00
libretro.cpp Update header constants 2017-07-15 10:02:15 -04:00
LICENSE.md Update LICENSE.md 2017-07-15 01:30:38 -04:00
link.T Add ChaiScript 2017-06-19 23:03:52 -04:00
main.chai Add event.quit() 2017-07-12 16:31:14 -04:00
Makefile Add install step 2017-07-15 16:47:48 -04:00
README.md Add Travis badge 2017-07-15 11:43:44 -04:00

ChaiGame

Build Status

Framework to make 2D games with ChaiScript and libretro/RetroArch.

Usage

ChaiGame is roughly inspired by the LÖVE API. The following main.chai is a Hello World sample application:

def draw() {
    graphics.print("Hello World!", 400, 300)
}

To run it, execute the following:

retroarch -L chaigame_libretro.so main.chai

Development

Building ChaiGame takes some time, so have patience. Use the following command to compile the core:

make

Testing

To compile and run the testing framework, use:

make examples

Flags

There are a few flags you can enable to change how Chai is compiled and used.

  • HAVE_CHAISCRIPT=0 Remove the scripting environment for fast compilation
  • HAVE_TESTS=1 Enables test/Test.cpp for testing
make HAVE_CHAISCRIPT=0 HAVE_TESTS=1