aboutsummaryrefslogtreecommitdiff
path: root/game/menus/mainmenu/TransitionStartScript.cpp
blob: d03adf0400a3ef0a665a520e082e13b8b97bb0fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "TransitionStartScript.h"
#include "../MenusConfig.h"
#include "iostream"

using namespace crepe;
using namespace std;


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

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

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