Dicebag GBA: Difference between revisions

From GameBrew
(Created page with "{{#seo: |title= (Other Apps) - GameBrew |title_mode=append |image=dicebaggba2.png |image_alt=Dicebag }} {{Infobox GBA Homebrews |title=Dicebag |image=dicebaggba2.png |descript...")
 
m (Text replacement - "Category:GBA homebrew applications" to "")
 
(3 intermediate revisions by the same user not shown)
Line 28: Line 28:


==Controls==
==Controls==
Up/Down - Change the currently selected die type (4, 6, 8, 10, 12, 20, 100, n) sided.
Up/Down - Change the currently selected die type (4, 6, 8, 10, 12, 20, 100, n) sided


Left/Right - Decrement/Increment the number of times the selected die type should be rolled
Left/Right - Decrement/Increment the number of times the selected die type should be rolled
Line 38: Line 38:
A - Rolls the selected die type and displays the final result
A - Rolls the selected die type and displays the final result


B - Displays each induvidual die roll, as well as the final result
B - Displays each individual die roll, as well as the final result


==Screenshots==
==Screenshots==
Line 50: Line 50:
==External links==
==External links==
* GBADev - https://www.gbadev.org/demos.php?showinfo=655
* GBADev - https://www.gbadev.org/demos.php?showinfo=655
[[Category:GBA homebrew applications]]
[[Category:Other GBA applications]]

Latest revision as of 09:34, 10 May 2024

Dicebag
Dicebaggba2.png
General
AuthorSean James (Mindlord)
TypeOther Apps
Version1.0
LicenseMixed
Last Updated2004/11/03
Links
Download
Website
Source

Dicebag is a simple dice rolling program for the Game Boy Advance.

Features

  • An example of using an array to store data about the state of the dice.
  • Examples of how to use the HAM library to initialize background modes 0 and 4.
  • Examples of interacting with a tiled map mode, and use of layered backgrounds. Text appears on bg layer 1, and the dice image appears on bg layer 0.
  • An example of the HEL library - specifically the hel_Splash function.
  • Monitoring user input in a controlled fashion to manipulate the dice variables. Specifically using a press/release action before processing input for most actions, and using a press and hold action for viewing roll details.

Controls

Up/Down - Change the currently selected die type (4, 6, 8, 10, 12, 20, 100, n) sided

Left/Right - Decrement/Increment the number of times the selected die type should be rolled

L/R- Decrement/Increment the modifier that should be applied to the final result

Start/Select - Decrement/Increment the number of sides on the (n) sided die

A - Rolls the selected die type and displays the final result

B - Displays each individual die roll, as well as the final result

Screenshots

dicebaggba3.png

Credits

Using the HAM development library with HEL extensions.

Random Number Generation Code for GCC compilers.

External links

Advertising: