__________ .__ .___________ \______ \____ ______ |__| __| _/ _____/_____ _____ ____ | _|__ \ \____ \| |/ __ / \ ___\__ \ / \_/ __ \ | | \/ __ \| |_> > / /_/ \ \_\ \/ __ \| Y Y \ ___/ |____|_ (____ / __/|__\____ |\______ (____ /__|_| /\___ > \/ \/|__| \/ \/ \/ \/ \/
RapidGame is a commandline tool for Mac and Windows (Linux support is planned) which:
A game project templating system for creating cross-platform games for a variety of game engines, including cocos2d-x, Unity, Corona and Appcelerator Titanium. The default game template creates a simple Breakout clone with a menu and game scene.
Prefer somebody explaining and showing it? Check out the overview video.
There's no need to clone this repo, just install RapidGame:
sudo npm install rapidgame -g
Or, on Windows leave off the
sudo and ensure that
git is a part of your PATH:
npm install rapidgame -g
And, create a cocos2d-x game named "HeckYeah" (run this as administrator on Windows):
rapidgame create cocos2dx "HeckYeah" org.myorg.heckyeah
Or, a Unity game named "ZombieMatrix":
rapidgame create unity "ZombieMatrix" com.mycompany.zombiematrix
For usage instructions:
New to the cocos2d family of game engines? In general, cocos2d-x (
rapidgame create cocos2dx) is C++ and cocos2d-js (
Linux: support is planned.
The templates have:
The project creator makes a copy of one of the templates, does a search and replace on the game title & package name, then installs any required modules. Viola. Your own rapidly-created game ready to go. Here is some example output from running the project creator:
$ rapidgame create Corona "SwordBall" org.myorg.swordball Rapidly creating a game Engine: Corona Template: TwoScene Copying project files Setting project name: Sword Ball Setting package name: org.myorg.swordball Done Congratulations on creating a Corona game! Run it by opening the `main.lua` file in the Corona Simulator. Ready to code? Start with the `main.lua` file.
The library prebuilder creates static libraries that virtually eliminate build times for the cocos2d-x engine. With hundreds of source files to be compiled, building cocos2d-x for just one platform can take at least five minutes. This can be a real time sink, especially when switching from the simulator to device triggers a rebuild.
The prebuilder automatically downloads cocos2d-x, patches it to ensure that it can be built from the commandline, then prebuilds cocos2d-x for all possible platforms, configurations and architectures. It is then possible to compile and link native cocos2d-x games in seconds. Even better, the project creator will absolutely symlink to the location of the prebuilt libraries so your game projects stay lightweight and can be moved easily. A regular cocos2d-x game project directory can be half a gigabyte or more. A RapidGame project is around two megabytes.