mirror of
https://github.com/libretro/libretro-chailove.git
synced 2024-11-28 02:30:25 +00:00
❤️ 2D Game Framework with ChaiScript
chaigame | ||
test | ||
vendor | ||
.editorconfig | ||
.gitignore | ||
.gitmodules | ||
.travis.yml | ||
chaigame_libretro.info | ||
configure | ||
Game.cpp | ||
Game.h | ||
libretro.cpp | ||
LICENSE.md | ||
link.T | ||
main.chai | ||
Makefile | ||
README.md |
ChaiGame
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 compilationHAVE_TESTS=1
Enablestest/Test.cpp
for testing
make HAVE_CHAISCRIPT=0 HAVE_TESTS=1