persona-3-dual
A DS demake of Persona 3
Loading...
Searching...
No Matches
MainMenuView.hpp
Go to the documentation of this file.
1#pragma once
7#include "core/timer.hpp"
10#include "types/StateTypes.hpp"
11#include "views/BaseView.hpp"
12
13class MainMenuView : public BaseView
14{
15 private:
19 bool doorFadeIn = false;
20
22 int bg[3];
23
24 // for silhouette animation
25 int silhouetteX = -256;
26 int silhouetteY = 192;
28
29 // for bottom screen text animation
30 int brightness = 0;
31
32 // for fogBackground
33 bool displayFog = false;
34 int fogOpacity = 0;
35 // NOTE: we use u16 to allow overflow (and naturally reset values back to 0)
36 u16 waveAngle = 0;
38 int baseSpeed = 20;
39 int fluctuation = 50;
40
41 // text
42 std::string FONT_NAME = "cosmetica";
43 int FONT_SIZE = 12;
44
45 ae::Entity* mainMenu = nullptr;
48
49 MathManager& math = MathManager::getInstance();
50 UIManager& ui = UIManager::getInstance();
53
54 public:
55 void init() override;
56 ViewState update() override;
57 void cleanup() override;
58};
Orchestrates graphic loading and management.
Orchestrates music.
Orchestrates sfx.
ViewState
Definition StateTypes.hpp:4
TransitionPhase
Orchestrates rendering text from a bitmap.
Manager for hardware specific rendering functions related to the UI.
MainMenu * mainMenuCmpt
bool isSilhouetteStillMoving
TransitionPhase transitionPhase
void cleanup() override
void init() override
ViewState nextViewState
MathManager & math
UIManager & ui
TextComponent * textMenu
ae::Entity * mainMenu
MusicComponent * musicCmpt
std::string FONT_NAME
ViewState update() override
GraphicsComponent * graphics
SFXComponent * sfxCmpt
Timer util to track if a duration has passed.