Flipem: Difference between revisions

From WiiBrew
Jump to navigation Jump to search
PaceMaker (talk | contribs)
No edit summary
Yossi (talk | contribs)
No edit summary
Line 13: Line 13:
| peripherals = {{Wiimote1}}  
| peripherals = {{Wiimote1}}  
| hbc        = 1 <!-- Only if "Full" HBC Support (boot.elf/boot.dol,meta.xml, and icon.png) -->
| hbc        = 1 <!-- Only if "Full" HBC Support (boot.elf/boot.dol,meta.xml, and icon.png) -->
| hbb        = <!-- Only if downloadable via the Homebrew Browser -->
| hbb        = 1 <!-- Only if downloadable via the Homebrew Browser -->
| dangerous  =  <!-- For applications that have a strong potential for bricking Wiis -->
| dangerous  =  <!-- For applications that have a strong potential for bricking Wiis -->
| caution    =  <!-- For applications that may damage Wiis -->
| caution    =  <!-- For applications that may damage Wiis -->

Revision as of 04:26, 23 October 2008

FlipEm
General
Author(s)Yossi
TypeGame
Version0.1
LicenseHave fun with it :)
Links
[[Download|Download]]
[[Source|Source]]
Peripherals

Overview

FlipEm is a game where you try to get all the squares on the board to have an X in them. When a square is flipped, it gets an X if it was empty, or clears out the X if there was already one there. When you click a square, it and the four around it in a + shape get flipped. Squares off the edge of the board are ignored.

Controls

Wiimote
Button Action
Wii Remote Aim Move Pointer
Wiimote A Button Click/Choose Square
Wiimote B Button Clear Board/Start Over
Wiimote + Button Board Size ++
Wiimote - Button Board Size --
Wiimote HOME Button Exit to Loader

Issues

Random crash when you least expect it. I am unable to recreate it, but I have seen it happen several times. If you can look at the code and tell me what's wrong I'll give you credit. I think it has to do with the pointer but I don't know enough to be sure or know how to fix it.

Here's a thought on your crash: You are using the ir data without checking ir0.valid. I can't remember if I've seen this myself or not, but it seems possible that the ir data is outside the range you are expecting if the data isn't valid. See How_to_use_the_Wiimote for an example. Alternatively (or maybe Also) you can check that the values you are passing to Flip/Draw/etc are within the range you expect. I hope this helps. --PaceMaker 18:56, 20 October 2008 (UTC)