24#import <CoreGraphics/CoreGraphics.h>
25#import <Foundation/Foundation.h>
26#import <UIKit/UIKit.h>
34NS_ASSUME_NONNULL_BEGIN
49#pragma mark - Lifecycle
65#pragma mark - Textures
78 artwork:(nullable UIImage *)artwork
79 index:(nullable UIImage *)index;
86- (void)loadResultTex:(
short)rank;
92- (void)releaseTexture;
103- (void)setState:(
unsigned int)state;
105#pragma mark - Play lifecycle
137- (double)durationOfReadyGo;
146- (double)buttonAreaOffset;
153- (double)gameAreaOffset;
155#pragma mark - Buttons
161@property(nonatomic, readonly)
unsigned int endButtonID;
167@property(nonatomic, readonly)
unsigned int evaluateButtonID;
173@property(nonatomic, readonly)
unsigned int goodJobButtonID;
179@property(nonatomic, readonly) CGPoint goodJobPosition;
185@property(nonatomic, readonly)
unsigned int twitterSendButtonID;
191@property(nonatomic, readonly) CGPoint twitterBtnPosition;
197@property(nonatomic, readonly)
unsigned int storeMoveButtonID;
203@property(nonatomic, readonly) CGPoint storeMoveBtnPosition;
205#pragma mark - Drawing
220- (void)drawDebugText:(nullable const
char *)text pos:(CGPoint)pos alpha:(
float)alpha;
235- (void)renderShutter:(BOOL)drive;
249- (void)renderStartMark:(
float)alpha;
257- (void)renderCombo:(
unsigned int)combo alpha:(
float)alpha;
266- (void)renderUpdatedScore:(
unsigned int)score atPoint:(CGPoint)point alpha:(
double)alpha;
275- (void)renderScore:(
unsigned int)score atPoint:(CGPoint)point alpha:(
double)alpha;
285- (void)renderPartnerScore:(
unsigned int)score
286 atPoint:(CGPoint)point
297- (void)renderMusicBar:(CGPoint)pos timeline:(BOOL)timeline alpha:(
double)alpha;
307- (void)renderTuneInfo:(CGPoint)pos artworkSize:(
double)artworkSize alpha:(
double)alpha;
315- (void)renderUpperBG:(BOOL)wipe;
328- (void)renderButtons;
335- (void)renderPreStart;
341- (void)renderReadyGo;
348- (void)renderFullcombo:(
int)animFrame;
363- (BOOL)renderExcellent:(
unsigned int)animFrame;
370- (void)renderRating:(
unsigned int)animFrame;
378- (BOOL)renderCleared:(
unsigned int)animFrame;
386- (BOOL)renderFailed:(
unsigned int)animFrame;
395#pragma mark - Textures
440@property(nonatomic, strong, nullable) AVAudioPlayer *
sePlayerGo;
445@property(nonatomic, strong, nullable) NSMutableArray *
arrayBgRip;
The base gameplay renderer and driver for a single play session.
The pad Ripples-theme in-game renderer.
Definition MainGameRendererPadRpl.h:39
AVAudioPlayer * sePlayerGo
The "GO" voice audio player, loaded lazily in the ready-go state.
Definition MainGameRendererPadRpl.h:440
unsigned int subStateChangeFrame
The frame the sub-state last changed on.
Definition MainGameRendererPadRpl.h:42
Texture2D * texCombo
The combo-number and background atlas texture.
Definition MainGameRendererPadRpl.h:425
NSMutableArray * arrayBgRip
The background ripple pool.
Definition MainGameRendererPadRpl.h:445
Texture2D * texFront
The front atlas texture: the field, buttons, lines, tune-info, and score glyphs.
Definition MainGameRendererPadRpl.h:410
int markerDir[kMainGameGridPanelCount]
The random-mode marker direction per panel.
Definition MainGameRendererPadRpl.h:46
Texture2D * texReady0
The first ready/go atlas texture.
Definition MainGameRendererPadRpl.h:400
NSMutableArray * arrayUpperBgRip
The upper-background bouncing-sprite ripple pool.
Definition MainGameRendererPadRpl.h:450
Texture2D * texDebugFont
The debug-font glyph sheet.
Definition MainGameRendererPadRpl.h:435
Texture2D * texHoldMarker
The hold-marker atlas texture.
Definition MainGameRendererPadRpl.h:420
float lastHakuPhase
The beat phase as of the last upper-BG update.
Definition MainGameRendererPadRpl.h:44
Texture2D * texReady1
The second ready/go atlas texture: the "GO" chips.
Definition MainGameRendererPadRpl.h:405
unsigned int frame
The frames elapsed in the current render state.
Definition MainGameRendererPadRpl.h:41
float bounceEnergy
The accumulated button-press bounce energy.
Definition MainGameRendererPadRpl.h:45
Texture2D * texResult
The result atlas texture: cleared/failed/excellent graphics and the rating glyphs.
Definition MainGameRendererPadRpl.h:430
unsigned int startMarkFrame
The start-mark animation frame counter.
Definition MainGameRendererPadRpl.h:43
Texture2D * texMarker
The marker atlas texture.
Definition MainGameRendererPadRpl.h:415
The abstract base renderer for a play session.
Definition MainGameRenderer.h:73
The marker, sound, and display settings the gameplay renderer draws a play session with.
Definition RendererConf.h:23
A texture that can draw any of the sprites packed into it.
Definition Texture2D.h:40