29#import <CoreGraphics/CoreGraphics.h>
30#import <Foundation/Foundation.h>
31#import <UIKit/UIKit.h>
39NS_ASSUME_NONNULL_BEGIN
56#pragma mark - Lifecycle
72#pragma mark - Textures
86 artwork:(nullable UIImage *)artwork
87 index:(nullable UIImage *)index;
94- (void)loadResultTex:(
short)rank;
100- (void)releaseTexture;
110- (void)setState:(
unsigned int)state;
112#pragma mark - Play lifecycle
144- (double)durationOfReadyGo;
153@property(nonatomic, readonly)
double buttonAreaOffset;
159@property(nonatomic, readonly)
double gameAreaOffset;
161#pragma mark - Buttons
167@property(nonatomic, readonly)
unsigned int endButtonID;
173@property(nonatomic, readonly)
unsigned int evaluateButtonID;
179@property(nonatomic, readonly)
unsigned int goodJobButtonID;
185@property(nonatomic, readonly) CGPoint goodJobPosition;
191@property(nonatomic, readonly)
unsigned int twitterSendButtonID;
197@property(nonatomic, readonly) CGPoint twitterBtnPosition;
203@property(nonatomic, readonly)
unsigned int storeMoveButtonID;
209@property(nonatomic, readonly) CGPoint storeMoveBtnPosition;
211#pragma mark - Drawing
218- (void)renderStartMark:(
float)alpha;
240- (void)renderShutter:(BOOL)drive;
248- (void)renderCombo:(
unsigned int)combo alpha:(
float)alpha;
257- (void)renderUpdatedScore:(
unsigned int)score atPoint:(CGPoint)point alpha:(
double)alpha;
266- (void)renderScore:(
unsigned int)score atPoint:(CGPoint)point alpha:(
double)alpha;
276- (void)renderPartnerScore:(
unsigned int)score
277 atPoint:(CGPoint)point
288- (void)renderMusicBar:(CGPoint)pos timeline:(BOOL)timeline alpha:(
double)alpha;
298- (void)renderTuneInfo:(CGPoint)pos artworkSize:(
double)artworkSize alpha:(
double)alpha;
306- (void)renderUpperBG:(BOOL)wipe;
320- (void)renderButtons;
327- (void)renderPreStart;
333- (void)renderReadyGo;
340- (void)renderFullcombo:(
int)animFrame;
355- (BOOL)renderExcellent:(
unsigned int)animFrame;
362- (void)renderRating:(
unsigned int)animFrame;
370- (BOOL)renderCleared:(
unsigned int)animFrame;
378- (BOOL)renderFailed:(
unsigned int)animFrame;
400- (void)drawDebugText:(nullable const
char *)text pos:(CGPoint)pos alpha:(
float)alpha;
402#pragma mark - Textures
450@property(nonatomic, strong, nullable) AVAudioPlayer *
sePlayerGo;
456@property(nonatomic, strong, nullable) NSMutableArray *
arrayBgRip;
The base gameplay renderer and driver for a single play session.
The phone Ripples-theme in-game renderer.
Definition MainGameRendererPhoneRpl.h:44
Texture2D * texDebugFont
The debug-font glyph sheet.
Definition MainGameRendererPhoneRpl.h:444
Texture2D * texReady1
The second ready/go atlas texture: the "GO" chips.
Definition MainGameRendererPhoneRpl.h:414
NSMutableArray * arrayUpperBgRip
The upper-background drifting-sprite ripple pool.
Definition MainGameRendererPhoneRpl.h:462
Texture2D * texMarker
The marker atlas texture.
Definition MainGameRendererPhoneRpl.h:426
unsigned int startMarkFrame
The start-mark animation frame counter.
Definition MainGameRendererPhoneRpl.h:50
unsigned int subStateChangeFrame
The frame the sub-state last changed on.
Definition MainGameRendererPhoneRpl.h:49
unsigned int frame
The frames elapsed in the current render state.
Definition MainGameRendererPhoneRpl.h:48
Texture2D * texReady0
The first ready/go atlas texture: the "READY" disc and letters.
Definition MainGameRendererPhoneRpl.h:408
float lastHakuPhase
The beat phase as of the last background update.
Definition MainGameRendererPhoneRpl.h:51
NSMutableArray * arrayBgRip
The background ripple pool.
Definition MainGameRendererPhoneRpl.h:456
BOOL is4Inch
Cached four-inch-aspect flag, sampled once at init.
Definition MainGameRendererPhoneRpl.h:47
AVAudioPlayer * sePlayerGo
The "GO" voice audio player, loaded lazily in the ready-go state.
Definition MainGameRendererPhoneRpl.h:450
Texture2D * texCombo
The combo-number and background atlas texture.
Definition MainGameRendererPhoneRpl.h:438
Texture2D * texHoldMarker
The hold-marker atlas texture.
Definition MainGameRendererPhoneRpl.h:432
BOOL isRetina
Cached phone-retina flag, sampled once at init.
Definition MainGameRendererPhoneRpl.h:46
int markerDir[kMainGameGridPanelCount]
The random-mode marker direction per panel.
Definition MainGameRendererPhoneRpl.h:53
Texture2D * texFront
The front atlas texture: the field, buttons, tune-info, score glyphs, and result graphics.
Definition MainGameRendererPhoneRpl.h:420
float bounceEnergy
The accumulated button-press bounce energy.
Definition MainGameRendererPhoneRpl.h:52
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