aboutsummaryrefslogtreecommitdiff
path: root/game/mainmenu/ShowStartScript.cpp
blob: 7179038cd2dce9603f1958d6b157b16f1b687ee5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "ShowStartScript.h"
#include "MainMenuConfig.h"
#include "api/Event.h"
#include "iostream"

using namespace crepe;
using namespace std;


void ShowStartScript::init(){
	cout << "script init" << endl;
}

void ShowStartScript::fixed_update(crepe::duration_t dt){
	if(this->get_key_state(Keycode::ENTER) && this->transition == false) this->transition = true;
}

const char* ShowStartScript::get_scene_name() const {
    // Provide the next scene defined in MainMenuConfig
    return MainMenuConfig::START_SCENE;
}