Main Menu and Game Play state switching.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#include "GameState.h"
|
||||
#include "Crawler.h"
|
||||
#include "Menu.h"
|
||||
|
||||
void State_MainMenu::OnStateChange(GameState*prevState){
|
||||
Menu::OpenMenu(MenuType::TEST);
|
||||
};
|
||||
void State_MainMenu::OnUserUpdate(Crawler*game){
|
||||
|
||||
if(game->GetKey(T).bPressed){
|
||||
GameState::ChangeState(States::GAME_RUN);
|
||||
}
|
||||
};
|
||||
void State_MainMenu::Draw(Crawler*game){
|
||||
game->DrawShadowStringDecal({0,0},"This will eventually be\nMain Menu stuff",BLACK,WHITE,{1,1},1);
|
||||
};
|
||||
Reference in New Issue
Block a user