37 lines
465 B
C++
37 lines
465 B
C++
#include "Game.h"
|
|
using namespace GameLogic;
|
|
|
|
Game::Game(void)
|
|
{
|
|
|
|
}
|
|
|
|
|
|
Game::~Game(void)
|
|
{
|
|
//SAFE_DELETE(player);
|
|
if(player)
|
|
{
|
|
delete player;
|
|
player = NULL;
|
|
}
|
|
}
|
|
|
|
void Game::Init()
|
|
{
|
|
player = new Player();
|
|
}
|
|
void Game::StartGame()
|
|
{
|
|
|
|
}
|
|
void Game::Update(keyInput keyPressed)
|
|
{
|
|
player->Update(keyPressed);
|
|
}
|
|
void Game::Render()
|
|
{
|
|
Oyster::Graphics::Model::Model* model_Arr;
|
|
model_Arr = player->Render();
|
|
Oyster::Graphics::API::RenderScene(model_Arr, 1);
|
|
} |