22#import <CoreGraphics/CoreGraphics.h>
23#import <Foundation/Foundation.h>
24#import <UIKit/UIKit.h>
34NS_ASSUME_NONNULL_BEGIN
52#pragma mark - Lifecycle
68#pragma mark - Textures
80 artwork:(nullable UIImage *)artwork
81 index:(nullable UIImage *)index;
89- (void)loadResultTex:(
short)rank;
95- (void)releaseTexture;
105- (void)setState:(
unsigned int)state;
107#pragma mark - Play lifecycle
139- (double)durationOfReadyGo;
148- (double)buttonAreaOffset;
155- (double)gameAreaOffset;
157#pragma mark - Buttons
163@property(nonatomic, readonly)
unsigned int endButtonID;
169@property(nonatomic, readonly)
unsigned int evaluateButtonID;
175@property(nonatomic, readonly)
unsigned int goodJobButtonID;
181@property(nonatomic, readonly) CGPoint goodJobPosition;
187@property(nonatomic, readonly)
unsigned int twitterSendButtonID;
193@property(nonatomic, readonly) CGPoint twitterBtnPosition;
199@property(nonatomic, readonly)
unsigned int storeMoveButtonID;
205@property(nonatomic, readonly) CGPoint storeMoveBtnPosition;
207#pragma mark - Drawing
222- (void)drawDebugText:(nullable const
char *)text pos:(CGPoint)pos alpha:(
float)alpha;
229- (CGRect)getMusicBarRect;
241- (void)drawClip:(
int)clip
242 drawPosition:(CGPoint)drawPosition
243 drawArea:(CGRect)drawArea
252- (void)renderStartMark:(
float)alpha;
272- (void)renderShutter:(BOOL)animate;
280- (void)renderCombo:(
unsigned int)combo alpha:(
float)alpha;
289- (void)renderUpdatedScore:(
unsigned int)score atPoint:(CGPoint)point alpha:(
double)alpha;
298- (void)renderScore:(
unsigned int)score atPoint:(CGPoint)point alpha:(
double)alpha;
308- (void)renderPartnerScore:(
unsigned int)score
309 atPoint:(CGPoint)point
320- (void)renderMusicBar:(CGPoint)pos timeline:(BOOL)timeline alpha:(
double)alpha;
330- (void)renderTuneInfo:(CGPoint)pos artworkSize:(
double)artworkSize alpha:(
double)alpha;
338- (void)renderUpperBG:(BOOL)isResult;
351- (void)renderButtons;
358- (void)renderPreStart;
364- (void)renderReadyGo;
372- (void)renderFullcombo:(
int)animFrame isResult:(BOOL)isResult;
386- (BOOL)renderExcellent:(
unsigned int)animFrame;
393- (void)renderRating:(
unsigned int)animFrame;
401- (BOOL)renderCleared:(
unsigned int)animFrame;
409- (BOOL)renderFailed:(
unsigned int)animFrame;
418#pragma mark - Textures
484@property(nonatomic, strong, nullable) AVAudioPlayer *
sePlayerGo;
490@property(nonatomic, strong, nullable) NSMutableArray<Texture2D *> *
texWaveAr;
508@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 pad in-game renderer.
Definition MainGameRendererPadKnt.h:39
Texture2D * texCombo
The combo-number atlas texture.
Definition MainGameRendererPadKnt.h:454
NSMutableArray< EffectBgKnit * > * arrayBgEff
The live knit background effect sprites.
Definition MainGameRendererPadKnt.h:508
unsigned int frame
The frames elapsed in the current render state.
Definition MainGameRendererPadKnt.h:41
float lastHakuPhase
The beat phase as of the previous frame.
Definition MainGameRendererPadKnt.h:44
CGRect musicBarRect
The result-screen music-bar rectangle.
Definition MainGameRendererPadKnt.h:49
UpperBGKnit * upperBgKnt
The knit upper-background wave decoration.
Definition MainGameRendererPadKnt.h:496
Texture2D * texMarker
The marker atlas texture.
Definition MainGameRendererPadKnt.h:442
unsigned int subStateChangeFrame
The frame the interactive sub-state last changed on.
Definition MainGameRendererPadKnt.h:42
Texture2D * texResultBg
The result-screen background atlas texture.
Definition MainGameRendererPadKnt.h:466
unsigned int effFrame
The knit-effect scheduling frame counter.
Definition MainGameRendererPadKnt.h:46
unsigned int effSlot
The next knit-effect table slot to spawn.
Definition MainGameRendererPadKnt.h:47
Texture2D * texHoldMarker
The hold-marker atlas texture.
Definition MainGameRendererPadKnt.h:448
Texture2D * texResult
The result-screen atlas texture.
Definition MainGameRendererPadKnt.h:460
Texture2D * texReady1
The second ready/go atlas texture.
Definition MainGameRendererPadKnt.h:430
Texture2D * texReady0
The first ready/go atlas texture.
Definition MainGameRendererPadKnt.h:424
unsigned int startMarkFrame
The start-mark animation frame counter.
Definition MainGameRendererPadKnt.h:43
NSMutableArray< Texture2D * > * texWaveAr
The six knit wave-layer atlas textures.
Definition MainGameRendererPadKnt.h:490
Texture2D * texFront
The front atlas texture: the field, buttons, and lines.
Definition MainGameRendererPadKnt.h:436
int markerDir[kMainGameGridPanelCount]
The random-mode marker direction per panel.
Definition MainGameRendererPadKnt.h:48
float bounceEnergy
The accumulated knit-bounce energy.
Definition MainGameRendererPadKnt.h:45
Texture2D * texDebugFont
The debug-font glyph sheet.
Definition MainGameRendererPadKnt.h:478
Texture2D * texBeatBg
The knit beat-background atlas texture.
Definition MainGameRendererPadKnt.h:472
AVAudioPlayer * sePlayerGo
The pre-loaded "GO" voice player, prepared on entry to the ready-go state.
Definition MainGameRendererPadKnt.h:484
EffectBgKnit * effectBgKnt
A knit background effect sprite.
Definition MainGameRendererPadKnt.h:502
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