Migrate game code into game.c
Separate the game code from the engine code
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
#ifndef BREAKOUT_GAME_H
|
||||
#define BREAKOUT_GAME_H
|
||||
|
||||
#include <Dengine\OpenGL.h>
|
||||
#include <Dengine\Common.h>
|
||||
#include <Dengine/OpenGL.h>
|
||||
#include <Dengine/Common.h>
|
||||
#include <Dengine/Sprite.h>
|
||||
#include <Dengine/Shader.h>
|
||||
#include <Dengine/AssetManager.h>
|
||||
|
||||
namespace Breakout
|
||||
{
|
||||
@@ -19,18 +22,21 @@ enum GameState
|
||||
class Game
|
||||
{
|
||||
public:
|
||||
GameState mState;
|
||||
GameState state;
|
||||
GLboolean keys[NUM_KEYS];
|
||||
i32 width, height;
|
||||
|
||||
Game(i32 width, i32 height);
|
||||
~Game();
|
||||
|
||||
void init();
|
||||
void init(Dengine::AssetManager *assetManager);
|
||||
|
||||
void processInput(f32 dt);
|
||||
void update(f32 dt);
|
||||
void render();
|
||||
private:
|
||||
Dengine::Shader *shader;
|
||||
Dengine::Sprite player;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user