Codename Hamster - For olcCodeJam 2024
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hamster/src/HamsterGame.cpp

36 lines
513 B

#include "HamsterGame.h"
geom2d::rect<float>HamsterGame::SCREEN_FRAME{{96,0},{320,288}};
HamsterGame::HamsterGame()
{
sAppName = "Project Hamster";
}
bool HamsterGame::OnUserCreate(){
LoadAnimations();
return true;
}
bool HamsterGame::OnUserUpdate(float fElapsedTime){
DrawDecal({},
gameWindow.FillRectDecal({},{150.f,150.f},WHITE);
return true;
}
bool HamsterGame::OnUserDestroy(){
return true;
}
int main()
{
HamsterGame game;
if(game.Construct(512, 288, 2, 2))
game.Start();
return 0;
}