Giter Club home page Giter Club logo

cruelu / gamecake Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xriss/gamecake

0.0 0.0 0.0 218.61 MB

GameCake is a single exe cross platform game engine, a command line build of Lua(JIT) with embedded libs.

Home Page: https://xriss.github.io/gamecake/

License: Other

Lua 2.50% Makefile 2.54% C 67.75% Java 0.05% Shell 3.80% HTML 4.82% CSS 0.06% C++ 13.16% Batchfile 0.09% Objective-C 0.35% Perl 1.87% GDB 0.01% XS 0.01% Assembly 1.47% Python 0.35% GLSL 0.71% Yacc 0.41% Lex 0.04% HLSL 0.01% PostScript 0.01%

gamecake's Introduction

CodeFresh : Codefresh build status

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.

If you want to build then you should clone and then run the git-pull script to make sure everything is up to date.

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/raspi/emscipten/windows) 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 luajit, luafilesystem 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 :joystick
sudo snap connect gamecake:alsa :alsa

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.

gamecake's People

Contributors

xriss avatar notshi 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.