Add basics for breakout game, separate tutorial code
This commit is contained in:
@@ -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
|
||||
@@ -15,6 +15,7 @@ class AssetManager
|
||||
{
|
||||
public:
|
||||
AssetManager();
|
||||
// TODO(doyle): Unload all resources in memory
|
||||
~AssetManager();
|
||||
|
||||
/* Texture */
|
||||
|
||||
Reference in New Issue
Block a user