20#import <CoreGraphics/CoreGraphics.h>
21#import <Foundation/Foundation.h>
22#import <UIKit/UIKit.h>
26NS_ASSUME_NONNULL_BEGIN
41#pragma mark - Lifecycle
56#pragma mark - Textures
68 artwork:(nullable UIImage *)artwork
69 index:(nullable UIImage *)index;
76- (void)loadRatingTex:(
short)rank;
82- (void)releaseTexture;
92- (void)setState:(
unsigned int)state;
94#pragma mark - Play lifecycle
126- (double)durationOfReadyGo;
136- (double)buttonAreaOffset;
143- (double)gameAreaOffset;
145#pragma mark - Buttons
151@property(nonatomic, readonly)
unsigned int endButtonID;
157@property(nonatomic, readonly)
unsigned int evaluateButtonID;
163@property(nonatomic, readonly)
unsigned int goodJobButtonID;
169@property(nonatomic, readonly) CGPoint goodJobPosition;
175@property(nonatomic, readonly)
unsigned int twitterSendButtonID;
181@property(nonatomic, readonly) CGPoint twitterBtnPosition;
187@property(nonatomic, readonly)
unsigned int storeMoveButtonID;
193@property(nonatomic, readonly) CGPoint storeMoveBtnPosition;
195#pragma mark - Drawing
210- (void)drawDebugText:(nullable const
char *)text pos:(CGPoint)pos alpha:(
float)alpha;
230- (void)renderMarkFrame:(CGPoint)point alpha:(
double)alpha;
237- (void)renderCombo:(
unsigned int)combo;
248- (void)renderUpdatedScore:(
unsigned int)score
249 atPoint:(CGPoint)point
252 boardY:(
float)boardY;
263- (void)renderScore:(
unsigned int)score
264 partnerScore:(
unsigned int)partnerScore
265 atPoint:(CGPoint)point
266 scaleH:(
double)scaleH
276- (void)renderBonus:(
unsigned int)bonus atPoint:(CGPoint)point alpha:(
double)alpha;
285- (void)renderMusicBar:(CGPoint)pos timeline:(BOOL)timeline alpha:(
double)alpha;
294- (void)renderTuneInfo:(CGPoint)pos artworkSize:(
double)artworkSize alpha:(
double)alpha;
302- (void)renderUpperBG:(
double)y height:(
double)height;
315- (void)renderButtons:(
double)offsetY;
321- (void)renderPreStart;
330- (void)renderCircle:(CGPoint)point size:(
double)size alpha:(
double)alpha;
336- (void)renderReadyGo;
342- (void)renderStartMark;
357- (BOOL)renderCleared:(
unsigned int)animFrame centerY:(
double)centerY;
366- (BOOL)renderFailed:(
unsigned int)animFrame centerY:(
double)centerY;
375#pragma mark - Textures
The base gameplay renderer and driver for a single play session.
The pad in-game renderer.
Definition MainGameRendererPad.h:34
Texture2D * texFront
The front atlas texture: the field, buttons, and lines.
Definition MainGameRendererPad.h:387
Texture2D * texClear1
The second cleared/failed result atlas texture.
Definition MainGameRendererPad.h:429
Texture2D * texMarker
The marker atlas texture.
Definition MainGameRendererPad.h:393
int markerDir[kMainGameGridPanelCount]
The random-mode marker direction per panel.
Definition MainGameRendererPad.h:38
unsigned int frame
The frames elapsed in the current render state.
Definition MainGameRendererPad.h:36
Texture2D * texReady
The ready/go and start-mark atlas texture.
Definition MainGameRendererPad.h:411
Texture2D * texDebugFont
The debug-font glyph sheet.
Definition MainGameRendererPad.h:441
Texture2D * texCombo
The combo-number atlas texture.
Definition MainGameRendererPad.h:399
unsigned int subStateChangeFrame
The frame the sub-state last changed on.
Definition MainGameRendererPad.h:37
Texture2D * texRating
The rank-rating (judgement) atlas texture.
Definition MainGameRendererPad.h:417
Texture2D * texClear0
The first cleared/failed result atlas texture.
Definition MainGameRendererPad.h:423
Texture2D * texBG
The background atlas texture.
Definition MainGameRendererPad.h:381
Texture2D * texHoldMarker
The hold-marker atlas texture.
Definition MainGameRendererPad.h:405
Texture2D * texClear2
The third cleared/failed result atlas texture.
Definition MainGameRendererPad.h:435
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