Difference between revisions of "Gb.titleScreen"

From Gamebuino Wiki
Jump to: navigation, search
m (changed he to the user)
m (grammar)
Line 7: Line 7:
 
* Button A: Leaves the title screen (so it gets back to the game)
 
* Button A: Leaves the title screen (so it gets back to the game)
 
* Button B: Toggle sound (muted/unmuted). If you hold down B while you start up your Gamebuino, it will be muted and won't play the start-up sound.
 
* Button B: Toggle sound (muted/unmuted). If you hold down B while you start up your Gamebuino, it will be muted and won't play the start-up sound.
* Button C: Loads LOADER.HEX, which backs up the EEPROM on the micro SD card and allow to load another game.
+
* Button C: Loads LOADER.HEX, which backs up the EEPROM on the micro SD card and allows you to load another game.
  
 
== Syntax ==
 
== Syntax ==

Revision as of 2014-08-12T23:02:41

Description

Displays the title screen. Should be called after the gb.begin() function to appear on startup. You should also allow the user to get back to the title screen when the user presses the "C" button to leave the game, as the title screens allows you to switch between games.

In the title screen, you can do the following:

  • Button A: Leaves the title screen (so it gets back to the game)
  • Button B: Toggle sound (muted/unmuted). If you hold down B while you start up your Gamebuino, it will be muted and won't play the start-up sound.
  • Button C: Loads LOADER.HEX, which backs up the EEPROM on the micro SD card and allows you to load another game.

Syntax

gb.titleScreen(F("name"), logo);

Parameters

  • F("name") (optional): Replace "name" with the name of your game (but keep the " "). Will be displayed in the start menu.
  • logo (optional): The logo of your game. Any size from 8*8px up to 64*30px.

Returns

none

Example

See also