Game Console

Game Console

Game console is a real-time console, that can be used to call methods or change variables with instant results, without the need to recompile and run the application again.

It can be used for many things, like adjusting visual components, debugging, logging etc..

More information and examples at:
https://github.com/ProG4mr/gameconsole

Haxelib:
http://lib.haxe.org/p/gameconsole

Targets


Haxe flash and neko, also cpp targets via nme + hxcpp.

Install:

haxelib install gameconsole

How to use it:

The first step is to initialize the console and register variables and functions to be accessed in real-time.

import pgr.gconsole.GameConsole;

GameConsole.init();
GameConsole.log("This text will be logged.");
GameConsole.registerVariable(object, "variable name", "variable alias");
GameConsole.registerFunction(object, "function name", "function alias");

Then, running the application, press TAB to bring up the console, type help and press ENTER and follow from there.

ScreenShot

version #19558, modified 2013-06-30 23:09:19 by ProG4mr