A small script that might be useful some games: a script that display the Start Screen.
For example, if your game starts directly skipping the Start Screen... maybe with an intro/cutscene made of screens & warps... At then end, if you want to display the Start Screen (end of timer/animation of an object), here's a script for that:
For example, if your game starts directly skipping the Start Screen... maybe with an intro/cutscene made of screens & warps... At then end, if you want to display the Start Screen (end of timer/animation of an object), here's a script for that:
Code:
goToStartScreen:
LDA #$00
STA update_screen_details ;; special screen
STA newScreen ;; start screen
STA textboxHandler
STA gameHandler
STA gameState
STA change_state
LDA #%11000000
STA update_screen
LDX player1_object
DeactivateCurrentObject
JSR DeactivateAllObjects
LDA #START_SCREEN_SONG
STA currentSong
PlaySong #START_SCREEN_SONG
RTS