Add basics for breakout game, separate tutorial code

This commit is contained in:
2016-06-05 17:54:41 +10:00
parent 17a89269f0
commit 864dca6f3d
8 changed files with 511 additions and 197 deletions
+37
View File
@@ -0,0 +1,37 @@
#ifndef BREAKOUT_GAME_H
#define BREAKOUT_GAME_H
#include <Dengine\OpenGL.h>
#include <Dengine\Common.h>
namespace Breakout
{
GLOBAL_VAR const i32 NUM_KEYS = 1024;
enum GameState
{
GAME_ACTIVE,
GAME_MENU,
GAME_WIN
};
class Game
{
public:
GameState mState;
GLboolean keys[NUM_KEYS];
i32 width, height;
Game(i32 width, i32 height);
~Game();
void init();
void processInput(f32 dt);
void update(f32 dt);
void render();
};
}
#endif
+1
View File
@@ -15,6 +15,7 @@ class AssetManager
{
public:
AssetManager();
// TODO(doyle): Unload all resources in memory
~AssetManager();
/* Texture */