GameCake is a single exe cross platform game engine, a command line build of Lua(JIT) with embedded libs.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
build
dbg
docs @ b606537
exe @ 69acd4a
exe_gamecake
lib_duktape
lib_freetype
lib_gif
lib_hacks
lib_hidapi
lib_jpeg
lib_lua
lib_ogg
lib_openal
lib_openssl
lib_opus
lib_pcre
lib_pepperjs
lib_png
lib_polarssl
lib_pq
lib_speexdsp
lib_sqlite
lib_vorbis
lib_vpx
lib_wet
lib_z
lib_zip
lib_zzip
lua
lua_al
lua_bins
lua_bit
lua_brimworkszip
lua_chipmunk
lua_cmsgpack
lua_freetype
lua_gamecake
lua_gles
lua_glslang
lua_grd
lua_grdmap
lua_hid
lua_kissfft
lua_lanes
lua_lash
lua_lfs
lua_linenoise
lua_ogg
lua_opus
lua_pack
lua_periphery
lua_pgsql
lua_polarssl
lua_posix
lua_profiler
lua_raspi_unicornhat
lua_rex
lua_sdl2
lua_sec
lua_socket
lua_sod
lua_speak
lua_sqlite
lua_sys
lua_tardis
lua_utf8
lua_v4l2
lua_win
lua_win_emcc
lua_zip
lua_zlib
mods
nginx
oldcode
plated
rocks
snap
test
vbox_1604_32
vbox_1604_64
vbox_android
vbox_arm
vbox_emcc
vbox_mingw
vbox_osx
vbox_win10
.editorconfig
.gitignore
.gitmodules
LICENSE
apt-gets
clean
create-file-links
git-pull
install
make
premake4.lua
readme.md
unit-tests
vbox-init
yum-gets

readme.md

CircleCI : CircleCI

SnapCraft : Snap Status

Autogenerated code documentation can be found at https://xriss.github.io/gamecake/ so go there if that is what you are interested in, the rest of this readme concerns the process of building gamecake from source.

Be sure to clone this repo with submodules as the engine binaries live in a permanently orphaned branch. The following is the optimal way to git clone so that the submodule references master rather than (slowly) downloading the repo twice.

git clone https://github.com/xriss/gamecake.git
cd gamecake
./git-pull

It is best to always use this script to git pull the latest everything so that git is less likely to get its knickers in a twist.

./git-pull

Releases are compiled inside the vbox_* directories (linux32/linux64/osx64/raspi/etc) which contain vagrant or qemu boxes setup to build the code in a controlled environment via a ./make script. The latest code built this way can be found in the exe branch and a zip of them all can be downloaded from https://github.com/xriss/gamecake/archive/exe.zip

For a linuxy build, the big required build/lib dependencies are premake4, luajit and SDL2. You have two choices either install via a package manager, the following script should do that using apt.

./apt-gets

Or build them and install them from source which the following script will try to do.

build/install

Then you may use these scripts to make and install.

./make
sudo ./install

For some more options when building (eg use clang) see the output of

./make --help

Alternatively any vbox_* directory can build a specific executable. For instance vbox_1604_64 can be used to build a 64bit executable inside an ubuntu 16.04 vagrant box. See readme files inside these directories for more information.

Once built the engine lives in one single fat binary that includes many lua libraries. For convenience gamecake is a command line compatible replacement for lua. The only diference is we have C libraries and Lua libraries from this repository embedded and ready to be required by your lua code.

We are also setup to auto build snaps via https://code.launchpad.net/~xriss/+snap/gamecake the following should get you a snap install of gamecake.

sudo snap install gamecake
sudo snap connect gamecake:joystick

Gamecake is now slowly becoming fully available as a luarock, all our custom libraries can be installed at once with.

sudo luarocks install gamecake

This is still under development but is already the replacement for the older webserver pagecake builds. I now use a generic openresty combined with a luarocks gamecake install.

This is a bit of a hassle to setup, as all server things are, but basically it means install openresty and then do something like https://openresty.org/en/using-luarocks.html to install luarocks that openresty can see and then use that luarocks to install gamecake which will get us all the gamecake libs inside an nginx lua environment.