22#ifndef HOLLYWOOD_MONSTERS_SCENES_INTRO_SCENE9120_H
23#define HOLLYWOOD_MONSTERS_SCENES_INTRO_SCENE9120_H
25#include "common/array.h"
26#include "common/random.h"
28#include "hollywood/monsters/music.h"
29#include "hollywood/monsters/scenes/presentation_scene.h"
42 bool loadResourceI12Assets();
44 void runTimedOverlayPhase();
45 void runHoldScrollAndIdlePhase();
46 void advanceActorBob();
47 void advanceSmallAnimation();
48 void restoreAndDrawResourceDescriptorFrame(
byte localChunkIndex,
byte descriptorCount,
byte descriptorIndex,
bool drawFrame);
49 byte getTimedOverlayChunk(uint tickIndex)
const;
51 void copyViewportToSavedFramebuffer();
52 void clearActiveViewport();
53 void drawTimedOverlayChunk(uint32 baseOffset);
54 void revealSavedViewportCurtainBand(uint sweepOffset,
byte bandWidth);
55 void clearViewportCurtainBand(uint sweepOffset,
byte bandWidth);
56 void copySavedRunToScene(
int sourceY,
int destinationY,
int x,
int width);
57 void clearSceneRun(
int destinationY,
int x,
int width);
59 uint presentRowOffset()
const override;
60 uint presentXOffset()
const override;
61 void stopAudio()
override;
64 kScene9120FramebufferSize = 0xeb000,
65 kI12RequiredChunkCount = 10,
66 kScene9120InitialYOffset = 0x1cc,
67 kScene9120TimedOverlayTicks = 0x181,
68 kScene9120OverlayInterval = 16,
69 kScene9120ScrollInterval = 50,
70 kScene9120ActorBobInterval = 60,
71 kScene9120SmallAnimInterval = 60,
72 kScene9120HoldMillis = 13000,
73 kScene9120ActorBobDescriptorCount = 10,
74 kScene9120SmallAnimDescriptorCount = 3
82 uint32 _overlayAccumulator;
83 uint32 _scrollAccumulator;
84 uint32 _actorBobAccumulator;
85 uint32 _smallAnimAccumulator;
88 byte _actorBobTicksRemaining;
89 byte _actorBobFramePhase;
91 byte _smallAnimSequenceState;
Definition: hollywood.h:47
Definition: graphics.h:74
Definition: presentation_scene.h:38
Definition: scene9120.h:35