Another checkpoint. Compiling/building/running - Python API tests from in-engine REPL are not passing, though

This commit is contained in:
John McCardle 2023-03-01 21:37:42 -05:00
commit f23dfbe4ba
12 changed files with 127 additions and 22 deletions

View file

@ -5,6 +5,7 @@
#include "EntityManager.h"
#include "Scene.h"
#include "McRFPy_API.h"
#include "IndexTexture.h"
class GameEngine
{
@ -16,7 +17,6 @@ class GameEngine
bool paused = false;
int currentFrame = 0;
sf::View visible;
//McRFPy_API* api;
public:
GameEngine();
@ -30,4 +30,12 @@ public:
void sUserInput();
int getFrame() { return currentFrame; }
sf::View getView() { return visible; }
// global textures for scripts to access
std::vector<IndexTexture> textures;
// global audio storage
std::vector<sf::SoundBuffer> sfxbuffers;
sf::Music music;
sf::Sound sfx;
};