18#import <CoreGraphics/CoreGraphics.h>
19#import <Foundation/Foundation.h>
20#import <UIKit/UIKit.h>
30NS_ASSUME_NONNULL_BEGIN
56#pragma mark - Textures
67 artwork:(nullable UIImage *)artwork
68 index:(nullable UIImage *)index;
75- (void)loadResultTex:(
short)rank;
81- (void)releaseTexture;
83#pragma mark - Play lifecycle
91- (void)setState:(
unsigned int)state;
110- (double)durationOfReadyGo;
112#pragma mark - Drawing
123- (void)drawClip:(
int)clip
124 drawPosition:(CGPoint)drawPosition
125 drawArea:(CGRect)drawArea
133- (void)renderStartMark:(
float)alpha;
152- (void)renderShutter:(BOOL)drive;
160- (void)renderCombo:(
unsigned int)combo alpha:(
float)alpha;
169- (void)renderUpdatedScore:(
unsigned int)score atPoint:(CGPoint)point alpha:(
double)alpha;
178- (void)renderScore:(
unsigned int)score atPoint:(CGPoint)point alpha:(
double)alpha;
188- (void)renderPartnerScore:(
unsigned int)score
189 atPoint:(CGPoint)point
200- (void)renderMusicBar:(CGPoint)pos timeline:(BOOL)timeline alpha:(
double)alpha;
209- (void)renderTuneInfo:(CGPoint)point artworkSize:(
double)artworkSize alpha:(
double)alpha;
216- (void)renderUpperBG:(BOOL)isResult;
228- (void)renderButtons;
234- (void)renderPreStart;
240- (void)renderReadyGo;
248- (void)renderFullcombo:(
int)animFrame isResult:(BOOL)isResult;
262- (BOOL)renderExcellent:(
unsigned int)animFrame;
269- (void)renderRating:(
unsigned int)animFrame;
277- (BOOL)renderCleared:(
unsigned int)animFrame;
285- (BOOL)renderFailed:(
unsigned int)animFrame;
306- (void)drawDebugText:(nullable const
char *)text pos:(CGPoint)pos alpha:(
float)alpha;
320#pragma mark - Layout override points
326@property(nonatomic, readonly)
double buttonAreaOffset;
332@property(nonatomic, readonly)
double gameAreaOffset;
334#pragma mark - Button override points
340@property(nonatomic, readonly)
unsigned int endButtonID;
346@property(nonatomic, readonly)
unsigned int evaluateButtonID;
352@property(nonatomic, readonly)
unsigned int goodJobButtonID;
358@property(nonatomic, readonly) CGPoint goodJobPosition;
364@property(nonatomic, readonly)
unsigned int twitterSendButtonID;
370@property(nonatomic, readonly) CGPoint twitterBtnPosition;
376@property(nonatomic, readonly)
unsigned int storeMoveButtonID;
382@property(nonatomic, readonly) CGPoint storeMoveBtnPosition;
384#pragma mark - Textures and knit decoration
426@property(nonatomic, strong, nullable) AVAudioPlayer *
sePlayerGo;
432@property(nonatomic, strong, nullable) NSMutableArray<Texture2D *> *
texWaveAr;
450@property(nonatomic, strong, nullable) NSMutableArray<EffectBgKnit *> *
arrayBgEff;
The base gameplay renderer and driver for a single play session.
A single animated decoration on the knit background.
Definition EffectBgKnit.h:25
The knit-theme phone-idiom concrete in-game renderer.
Definition MainGameRendererPhoneKnt.h:35
unsigned int effFrame
The background-effect spawn frame counter.
Definition MainGameRendererPhoneKnt.h:44
NSMutableArray< EffectBgKnit * > * arrayBgEff
The active knit background effect sprites.
Definition MainGameRendererPhoneKnt.h:450
Texture2D * texReady1
The second ready-countdown atlas.
Definition MainGameRendererPhoneKnt.h:396
float bounceEnergy
The smoothed knit-background bounce energy.
Definition MainGameRendererPhoneKnt.h:43
unsigned int subStateChangeFrame
The frame the sub-state last changed on.
Definition MainGameRendererPhoneKnt.h:40
Texture2D * texResult
The result-screen atlas.
Definition MainGameRendererPhoneKnt.h:402
Texture2D * texReady0
The first ready-countdown atlas.
Definition MainGameRendererPhoneKnt.h:390
float lastHakuPhase
The beat phase as of the previous frame.
Definition MainGameRendererPhoneKnt.h:42
BOOL is4Inch
Cached four-inch-aspect flag, sampled once at init.
Definition MainGameRendererPhoneKnt.h:38
BOOL isRetina
Cached phone-retina flag, sampled once at init.
Definition MainGameRendererPhoneKnt.h:37
Texture2D * texFront
The front atlas: chips, buttons, tune info, marks.
Definition MainGameRendererPhoneKnt.h:462
NSMutableArray< Texture2D * > * texWaveAr
The knit-wave texture layers.
Definition MainGameRendererPhoneKnt.h:432
unsigned int frame
The per-state frame counter, advanced each draw.
Definition MainGameRendererPhoneKnt.h:39
Texture2D * texResultBg
The result-screen background atlas.
Definition MainGameRendererPhoneKnt.h:408
Texture2D * texHoldMarker
The hold-marker atlas.
Definition MainGameRendererPhoneKnt.h:456
AVAudioPlayer * sePlayerGo
The "GO" countdown sound player.
Definition MainGameRendererPhoneKnt.h:426
unsigned int startMarkFrame
The start-mark animation frame counter.
Definition MainGameRendererPhoneKnt.h:41
Texture2D * texDebugFont
The debug-font atlas.
Definition MainGameRendererPhoneKnt.h:420
UpperBGKnit * upperBgKnt
The knit upper-background decoration.
Definition MainGameRendererPhoneKnt.h:438
int markerDir[kMainGameGridPanelCount]
Per-panel marker spin direction.
Definition MainGameRendererPhoneKnt.h:46
unsigned int effSlot
The next background-effect slot to spawn.
Definition MainGameRendererPhoneKnt.h:45
Texture2D * texMarker
The note-marker atlas.
Definition MainGameRendererPhoneKnt.h:468
EffectBgKnit * effectBgKnt
The current knit background effect sprite.
Definition MainGameRendererPhoneKnt.h:444
Texture2D * texBeatBg
The beat-background atlas.
Definition MainGameRendererPhoneKnt.h:414
Texture2D * texCombo
The combo-number and background atlas.
Definition MainGameRendererPhoneKnt.h:474
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
A four-line knit wave drawn across the upper background.
Definition UpperBGKnit.h:26