19 lines
675 B
C++
19 lines
675 B
C++
#include "scene/StartMenuScene.hpp"
|
|
|
|
#include "scene/GameplayScene.hpp"
|
|
#include "scene/SceneManager.hpp"
|
|
|
|
void StartMenuScene::Update(float) {
|
|
if (IsKeyPressed(KEY_ENTER) || IsMouseButtonPressed(MOUSE_BUTTON_LEFT)) {
|
|
manager.QueueSceneChange<GameplayScene>();
|
|
}
|
|
}
|
|
|
|
void StartMenuScene::Draw() {
|
|
DrawSceneOutline();
|
|
DrawText("Gravity Surfing", 24, 28, 36, Color{230, 238, 255, 255});
|
|
DrawText("Click or press Enter to start", 24, 78, 22, Color{140, 198, 220, 255});
|
|
DrawText("Left mouse controls gravity well", 24, 130, 18, Color{170, 185, 205, 255});
|
|
DrawText("Collect stars and dodge hazards", 24, 156, 18, Color{170, 185, 205, 255});
|
|
}
|