finished demo intro

This commit is contained in:
h4570
2022-07-31 00:49:42 +02:00
parent bc1ac1b4a3
commit 347fdb240b
3 changed files with 110 additions and 5 deletions
@@ -39,12 +39,19 @@ class IntroPressKeyState : public State<IntroStateType> {
IntroStateType onFinish();
private:
void renderFiller();
void updateMap();
IntroStateType state;
bool _wantFinish;
bool initialized;
bool mapFadeIn;
bool fillerFadeIn;
bool showPressKey;
bool pressKeyAlphaToggle;
u8 pressKeyAlphaDelayer;
float fillersOffset;
constexpr static float textureWidthHeight = 512.0F;
const static u8 mapRows = 3;
const static u8 mapCols = 3;
@@ -52,6 +59,15 @@ class IntroPressKeyState : public State<IntroStateType> {
Vec2 mapPosition;
u8 mapDirection;
Texture* fillerTexture;
Sprite* fillerSprite;
Texture* logoTexture;
Sprite* logoSprite;
Texture* pressKeyTexture;
Sprite* pressKeySprite;
Texture* mapTextures[mapRows][mapCols];
Sprite* mapSprites[mapRows][mapCols];
};