McRogueFace Python API (McRFPy_API) demo class
This commit is contained in:
parent
a6f59085eb
commit
6a2c3c6c36
7 changed files with 245 additions and 0 deletions
|
|
@ -2,6 +2,7 @@
|
|||
#include "MenuScene.h"
|
||||
#include "UITestScene.h"
|
||||
#include "ActionCode.h"
|
||||
#include "McRFPy_API.h"
|
||||
|
||||
GameEngine::GameEngine()
|
||||
{
|
||||
|
|
@ -14,6 +15,10 @@ GameEngine::GameEngine()
|
|||
scenes["menu"] = new MenuScene(this);
|
||||
//std::cout << "Constructed MenuScene" <<std::endl;
|
||||
scenes["play"] = new UITestScene(this);
|
||||
//api = new McRFPy_API(this);
|
||||
McRFPy_API::game = this;
|
||||
McRFPy_API::api_init();
|
||||
McRFPy_API::executePyString("import mcrfpy");
|
||||
}
|
||||
|
||||
Scene* GameEngine::currentScene() { return scenes[scene]; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue