Difference between revisions of "Gb.titleScreen"

From Gamebuino Wiki
Jump to: navigation, search
(Created page with "{{lowercase}} __NOTOC__ == Description == Displays the title screen. Should be called after the <code>gb.begin()</code> function to appear on startup. You should also allo...")
 
m (changed he to the user)
Line 2: Line 2:
 
__NOTOC__
 
__NOTOC__
 
== Description ==
 
== Description ==
Displays the title screen. Should be called after the <code>[[gb.begin]]()</code> function to appear on startup. You should also allow the user to get back to the title screen when he presses the "C" button to leave the game, as the title screens allows you to switch between games.
+
Displays the title screen. Should be called after the <code>[[gb.begin]]()</code> 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:
 
In the title screen, you can do the following:

Revision as of 2014-08-13T00:01:37

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 allow 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