aboutsummaryrefslogtreecommitdiff
path: root/game/menus/mainmenu/TransitionStartSubScript.cpp
blob: f737f7f2470bb2c08051c9325d410910242caeeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "TransitionStartSubScript.h"

#include "../MenusConfig.h"

using namespace crepe;
using namespace std;

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

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