18#import <CoreGraphics/CoreGraphics.h>
19#import <Foundation/Foundation.h>
20#import <UIKit/UIKit.h>
27NS_ASSUME_NONNULL_BEGIN
58#pragma mark - Textures
72 artwork:(nullable UIImage *)artwork
73 index:(nullable UIImage *)index;
80- (void)loadRatingTex:(
short)rank;
87- (void)releaseTexture;
89#pragma mark - Play lifecycle
98- (void)setState:(
unsigned int)state;
117- (double)durationOfReadyGo;
119#pragma mark - Drawing
140- (void)renderCombo:(
unsigned int)combo;
152- (void)renderUpdatedScore:(
unsigned int)score
153 atPoint:(CGPoint)point
156 boardY:(
float)boardY;
167- (void)renderScore:(
unsigned int)score
168 partnerScore:(
unsigned int)partnerScore
169 atPoint:(CGPoint)point
170 scaleH:(
double)scaleH
180- (void)renderBonus:(
unsigned int)bonus atPoint:(CGPoint)point alpha:(
double)alpha;
190- (void)renderMusicBar:(CGPoint)position timeline:(BOOL)timeline alpha:(
double)alpha;
199- (void)renderTuneInfo:(CGPoint)position artworkSize:(
double)artworkSize alpha:(
double)alpha;
207- (void)renderUpperBG:(
double)y;
220- (void)renderButtons:(
double)offset;
226- (void)renderPreStart;
235- (void)renderCircle:(CGPoint)center size:(
double)size alpha:(
double)alpha;
241- (void)renderReadyGo;
247- (void)renderStartMark;
262- (BOOL)renderCleared:(
unsigned int)rank centerY:(
double)centerY;
271- (BOOL)renderFailed:(
unsigned int)rank centerY:(
double)centerY;
295- (void)drawDebugText:(nullable const
char *)text pos:(CGPoint)pos alpha:(
float)alpha;
310#pragma mark - Layout override points
317@property(nonatomic, readonly)
double buttonAreaOffset;
323@property(nonatomic, readonly)
double gameAreaOffset;
325#pragma mark - Button override points
331@property(nonatomic, readonly)
unsigned int endButtonID;
337@property(nonatomic, readonly)
unsigned int evaluateButtonID;
343@property(nonatomic, readonly)
unsigned int goodJobButtonID;
349@property(nonatomic, readonly) CGPoint goodJobPosition;
355@property(nonatomic, readonly)
unsigned int twitterSendButtonID;
361@property(nonatomic, readonly) CGPoint twitterBtnPosition;
367@property(nonatomic, readonly)
unsigned int storeMoveButtonID;
373@property(nonatomic, readonly) CGPoint storeMoveBtnPosition;
The base gameplay renderer and driver for a single play session.
The phone-idiom concrete in-game renderer.
Definition MainGameRendererPhone.h:32
Texture2D * texClear2
The third cleared-screen atlas.
Definition MainGameRendererPhone.h:46
Texture2D * texCombo
The combo-number and background atlas.
Definition MainGameRendererPhone.h:41
unsigned int subStateChangeFrame
The frame the sub-state last changed on.
Definition MainGameRendererPhone.h:37
Texture2D * texClear1
The second cleared-screen atlas.
Definition MainGameRendererPhone.h:45
Texture2D * texClear0
The first cleared-screen atlas.
Definition MainGameRendererPhone.h:44
unsigned int frame
The per-state frame counter, advanced each draw.
Definition MainGameRendererPhone.h:36
Texture2D * texReady
The ready/go countdown atlas.
Definition MainGameRendererPhone.h:42
Texture2D * texFront
The front atlas: chips, buttons, tune info, marks.
Definition MainGameRendererPhone.h:38
Texture2D * texRating
The result-screen rating atlas.
Definition MainGameRendererPhone.h:43
Texture2D * texHoldMarker
The hold-marker atlas.
Definition MainGameRendererPhone.h:40
BOOL isRetina
Cached phone-retina flag, sampled once at init.
Definition MainGameRendererPhone.h:34
Texture2D * texMarker
The note-marker atlas, unzipped from the archive.
Definition MainGameRendererPhone.h:39
Texture2D * texDebugFont
The debug-font atlas.
Definition MainGameRendererPhone.h:47
BOOL is4Inch
Cached four-inch-aspect flag, sampled once at init.
Definition MainGameRendererPhone.h:35
int markerDir[kMainGameGridPanelCount]
Per-panel marker spin direction.
Definition MainGameRendererPhone.h:48
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