|
| (instancetype) | - init |
| | Initialises the renderer, chaining to the superclass and building the background and upper-background ripple pools.
|
| (void) | - dealloc |
| | Releases the session textures, then chains to the superclass deallocation.
|
| (void) | - loadTexure:artwork:index: |
| | Loads the pad Ripples-theme session atlases: the two ready textures, front, combo, marker, hold-marker, and debug-font textures, and builds the hold-marker sub-renderer and the upper-background ripple pool.
|
| (void) | - loadResultTex: |
| | Loads the result atlas and the rating (rank judgement) texture for a rank tier.
|
| (void) | - releaseTexture |
| | Releases the front, ready, result, and debug-font session textures.
|
| (void) | - setState: |
| | Sets the render state, resetting per-state counters and, in the ready-go state, loading the "GO" voice player, and in the result state loading the result atlas and starting the result BGM.
|
| (void) | - startPlay |
| | Begins playback: moves to the play state and clears the "GO" voice player.
|
| (void) | - endResult |
| | Ends the result screen: in the result state sets the finished sub-state.
|
| (void) | - replaySelect |
| | Selects a replay: for a downloaded custom tune with music, arms the replay and fades the good-job overlay out.
|
| (void) | - replayEnd |
| | Ends a replay, clearing the replay-playing flag.
|
| (double) | - durationOfReadyGo |
| | The ready-go countdown duration, in seconds.
|
| (double) | - buttonAreaOffset |
| | The vertical offset of the button area, in points.
|
| (double) | - gameAreaOffset |
| | The vertical offset of the game area, in points.
|
| (void) | - draw |
| | Draws one frame, dispatching on the render state and flushing every atlas.
|
| (void) | - drawDebugText:pos:alpha: |
| | Draws debug text glyph-by-glyph from the debug-font sheet.
|
| (void) | - renderBG |
| | Draws the rippling background: the base plate, the bouncing background ripples, and (in a beat frame) a spawn of a new ripple driven by the tension tier.
|
| (void) | - renderShutter: |
| | Draws the two scrolling shutter bars and their caps, optionally driving the shutter open amount from the tension and beat.
|
| (void) | - renderMarker |
| | Draws the 4x4 marker grid, the marker hit frames, and the hold markers, then the start mark once the first marker approaches.
|
| (void) | - renderStartMark: |
| | Draws the start-mark intro animation over the first-marker panels.
|
| (void) | - renderCombo:alpha: |
| | Draws the combo counter and its cut-in burst.
|
| (void) | - renderUpdatedScore:atPoint:alpha: |
| | Draws the score digits animating up from a previous value into a growing record banner.
|
| (void) | - renderScore:atPoint:alpha: |
| | Draws the running score, its label, and the six-figure rollup.
|
| (void) | - renderPartnerScore:atPoint:scale:alpha: |
| | Draws the partner's score, at 0.7 scale, half-alpha when disconnected.
|
| (void) | - renderMusicBar:timeline:alpha: |
| | Draws the result-screen music bar and its per-note markers.
|
| (void) | - renderTuneInfo:artworkSize:alpha: |
| | Draws the tune-info panel: the jacket artwork, the tune name, the difficulty word, and the level word.
|
| (void) | - renderUpperBG: |
| | Draws the upper background: the tiled upper plate, and (when told to) the beam wipe, and steps and renders the upper-background ripple pool.
|
| (void) | - renderUpper |
| | Draws the upper region: the tune-info panel, the music bar, the score, and the partner score.
|
| (void) | - renderButtons |
| | Draws the 4x4 on-screen button grid, lighting pressed buttons.
|
| (void) | - renderPreStart |
| | Draws the pre-start intro: the field, shutter, upper region, and buttons cued in over frames.
|
| (void) | - renderReadyGo |
| | Draws the ready/go countdown.
|
| (void) | - renderFullcombo: |
| | Draws the full-combo flourish over the four grid corners and the corner glyphs.
|
| (void) | - renderFinish |
| | Draws the finish banner: the full-combo flourish when a full combo, and advances the finish sub-state.
|
| (BOOL) | - renderExcellent: |
| | Draws the excellent flourish, its beam, its ring of chips, and the "EXCELLENT" wipe.
|
| (void) | - renderRating: |
| | Draws the rank rating (judgement) graphic, sliding and scaling in.
|
| (BOOL) | - renderCleared: |
| | Draws the cleared result graphic and its rating.
|
| (BOOL) | - renderFailed: |
| | Draws the failed result graphic and its rating.
|
| (void) | - renderResult |
| | Draws the result screen: the cleared/failed/excellent graphic, the score, the rating, the new-record banner, and the action marks.
|
| Instance Methods inherited from MainGameRenderer |
| (CGRect) | - getMusicBarRect |
| | The rectangle of the result-screen music bar.
|
| (void) | - backupScoreData |
| | Snapshots the sequence's current score into replayBackupScore for replay, and marks the score backed up.
|
|
|
unsigned int | frame |
| | The frames elapsed in the current render state.
|
|
unsigned int | subStateChangeFrame |
| | The frame the sub-state last changed on.
|
|
unsigned int | startMarkFrame |
| | The start-mark animation frame counter.
|
|
float | lastHakuPhase |
| | The beat phase as of the last upper-BG update.
|
|
float | bounceEnergy |
| | The accumulated button-press bounce energy.
|
|
int | markerDir [kMainGameGridPanelCount] |
| | The random-mode marker direction per panel.
|
| Protected Attributes inherited from MainGameRenderer |
|
float | shutterOpen |
| | The shutter-open animation progress.
|
|
unsigned int | lastCombo |
| | The combo count as of the last frame.
|
|
unsigned int | comboEffectFrame |
| | The combo burst animation frame.
|
|
unsigned int | comboCutFrame |
| | The combo cut-in animation frame.
|
|
unsigned int | scoreDisplay |
| | The score currently shown, tweened up.
|
|
unsigned int | partnerScoreDisplay |
| | The partner's shown score, tweened up.
|
|
int | markerState [kMainGameGridPanelCount] |
| | Per-panel marker animation state.
|
|
MainGameHoldState | holdState [kMainGameGridPanelCount] |
| | Per-panel hold-marker state.
|
|
HoldMarkerRender * | holdMarkerRender |
| | The hold-marker sub-renderer.
|
|
unsigned int | _state |
| | The high-level render state.
|
|
| unsigned int | endButtonID |
| | The button identifier for the end action.
|
| unsigned int | evaluateButtonID |
| | The button identifier for the evaluate action.
|
| unsigned int | goodJobButtonID |
| | The button identifier for the good-job action.
|
| CGPoint | goodJobPosition |
| | The centre position of the good-job overlay, derived from goodJobButtonID .
|
| unsigned int | twitterSendButtonID |
| | The button identifier for the tweet-send action.
|
| CGPoint | twitterBtnPosition |
| | The position of the tweet-send button, derived from twitterSendButtonID .
|
| unsigned int | storeMoveButtonID |
| | The button identifier for the store-move action.
|
| CGPoint | storeMoveBtnPosition |
| | The position of the store-move button, derived from storeMoveButtonID .
|
|
Texture2D * | texReady0 |
| | The first ready/go atlas texture.
|
|
Texture2D * | texReady1 |
| | The second ready/go atlas texture: the "GO" chips.
|
|
Texture2D * | texFront |
| | The front atlas texture: the field, buttons, lines, tune-info, and score glyphs.
|
|
Texture2D * | texMarker |
| | The marker atlas texture.
|
|
Texture2D * | texHoldMarker |
| | The hold-marker atlas texture.
|
|
Texture2D * | texCombo |
| | The combo-number and background atlas texture.
|
|
Texture2D * | texResult |
| | The result atlas texture: cleared/failed/excellent graphics and the rating glyphs.
|
|
Texture2D * | texDebugFont |
| | The debug-font glyph sheet.
|
|
AVAudioPlayer * | sePlayerGo |
| | The "GO" voice audio player, loaded lazily in the ready-go state.
|
|
NSMutableArray * | arrayBgRip |
| | The background ripple pool.
|
|
NSMutableArray * | arrayUpperBgRip |
| | The upper-background bouncing-sprite ripple pool.
|
| Properties inherited from MainGameRenderer |
| RendererConf * | rendererConf |
| | The renderer configuration for the current session.
|
| unsigned int | state |
| | The high-level render state.
|
| unsigned int | subState |
| | The render sub-state within the current state .
|
| BOOL | showCombo |
| | Whether the combo counter is shown.
|
| BOOL | isNewRecord |
| | Whether the session set a new record.
|
| unsigned int | scoreRecord |
| | The previous best score record for this tune.
|
| int | btnPress |
| | The currently pressed button bitmask.
|
| int | btnDown |
| | The currently held-down button bitmask.
|
| BOOL | partnerFinished |
| | Whether the session partner has finished.
|
| unsigned int | partnerScore |
| | The partner's current score.
|
| unsigned int | partnerFinalBonus |
| | The partner's final bonus.
|
| BOOL | partnerFullcombo |
| | Whether the partner achieved a full combo.
|
| Sequence * | sequence |
| | The note sequence being played.
|
| EAGLView * | eaglView |
| | The GL view this renderer draws into.
|
| int | ghostPress |
| | The ghost-play button bitmask.
|
| UIImageView * | goodJobImage |
| | The good-job overlay image view.
|
| float | goodJobAlphaMax |
| | The peak opacity of the good-job overlay.
|
| BOOL | isSession |
| | Whether this is a session (versus) play.
|
| BOOL | isConnected |
| | Whether the session partner is connected.
|
| BOOL | isCustom |
| | Whether this is a custom (edit) sequence.
|
| BOOL | isDownload |
| | Whether the tune was downloaded.
|
| BOOL | isTextureChange |
| | Whether a texture change is pending.
|
| BOOL | hasMusic |
| | Whether the session has music.
|
| BOOL | replayPlaying |
| | Whether a replay is playing.
|
| BOOL | scoreBackup |
| | Whether the score has been backed up for replay.
|
| BOOL | isEndState |
| | Whether the session has reached its end sub-state.
|
| unsigned int | endButtonID |
| | The button identifier for the end action.
|
| unsigned int | evaluateButtonID |
| | The button identifier for the evaluate action.
|
| unsigned int | goodJobButtonID |
| | The button identifier for the good-job action.
|
| CGPoint | goodJobPosition |
| | The position of the good-job overlay.
|
| int | buttonMarginForScreen40 |
| | The default button margin used by the 480-point-tall phone layout.
|
| int | upperBgHeight40 |
| | The default upper-background height used by the 480-point-tall phone layout.
|
| unsigned int | twitterSendButtonID |
| | The button identifier for the tweet-send action.
|
| CGPoint | twitterBtnPosition |
| | The position of the tweet-send button.
|
| unsigned int | storeMoveButtonID |
| | The button identifier for the store-move action.
|
| CGPoint | storeMoveBtnPosition |
| | The position of the store-move button.
|
| ScoreData | replayBackupScore |
| | The score snapshot captured for replay by -backupScoreData .
|
The pad Ripples-theme in-game renderer.