Simple Game Framework
Simple Game Framework, or
based API to develop, well, simple 2D shape and sprite based games. It's
a "specification", if you will... The idea is that the game developer (you)
SGF API. That code base can then be deployed to any number of SGF game
This repository contains the "specification" itself, not any implementation:
- Contains the Markdown files that define the SGF "specification".
- Contains helper scripts to generate the spec into "html" and "roff" (man) formats.
- Contains the www.simplegameframework.com HTML files.
examplegames written using the SGF API, that can be used to try out SGF itself, or when creating an SGF engine implementation, etc.
C or C++ Based Engine: For a pure speed solution, there could be a SGF game engine written in C++. It could use V8 to interpret game code, SDL to implement the SGF APIs, and GTK+ to use as a GUI. This would be the fastest version of an SGF game engine, by far.
Android Engine: Native Android apps can also contain a WebKit instance, which would execute game code, and render to the device screen through OpenGL ES and Dalvik. In principal, the Android engine would be very similar to the iOS engine.
A good supply of example games ranging from really simple, to show the basics
API itself can be found in the
An SGF game starts with a folder with a
main.js file inside.
the first file loaded when your game starts. That is the only requirement to
create an SGF game.
Additional game resources like additional
*.js files, images and sound files
can be placed inside that same folder, or any number of folders inside your
root game folder (the folder where
main.js is located).
You can view the full Simple Game Framework API Docs to learn it all!