Goblin's Cube

From WiiBrew
Jump to: navigation, search
Goblin's Cube
GobliscubeLogo.png
General
Author(s)Sponters
TypePuzzle game
Version1.1.0
LicenceGNU General Public License v2.0
Links
Download
Source
Downloadable via the Homebrew Browser
Peripherals
Wiimote.svg Nunchuck alternative.svg Loads files from the Front SD slot Internet


Goblin's Cube is Rubik's Cube game that uses the wiimote's and nunchuk's accelerometers to control the cube.

Contents

Controls

The game's current version assumes that the wiimote will be held with the right hand and the nunchuk with the left hand.

Orientation

Cube

At any moment the cube has one face called the Front face, which is always visible on the screen. Using this face as reference, the game defines the other faces as: Top, Bottom, Left, Right and Back.

Hands

The wiimote's and the nunchuk's motion detection are used to move the hands around the cube. Each hand has only six possible positions available, depending on which axis (relative to the control) the gravity vector is pointing, as shown in the following table.

Wiimote.svg Axis Face
-Z Right
+X Top
+Z Left
-X Bottom
+Y Front
-Y Back
Nunchuck alternative.svg Axis Face
-Z Left
+X Bottom
+Z Right
-X Top
+Y Front
-Y Back
Coordinate system used by Wii Remote

Movement

Whole Cube

Once you place a hand at a desired position you can hold the cube with Wiimote A Button or Nunchuck C Button and move the hand to another position, thus causing the cube to turn and change its Front position. You can also use the shortcuts at Wiimote D-Pad to turn the cube.

Rotating faces

Once you place a hand at the desired face, hold Wiimote B Button or Nunchuck Z Button to grab the piece, then rotate the control as you would rotate that face. For the Front, Back, Left and Right position the rotation mimics the real movement; as for the Top and Bottom the control must be twisted around the Y axis. The best way to understand these instructions is to just try it and see how controls work.

Buttons

Right hand Left hand
Wiimote.svg Action
Wiimote D-Pad Shortcuts to turn the whole cube
Wiimote A Button Hold the cube (used to change the front face)
Wiimote B Button Hold the current piece (used to rotate a face)
Wiimote 1 Button Win the game button !!!
Wiimote 2 Button Restart game
Wiimote - Button Undo
Wiimote HOME Button Exit
Nunchuck alternative.svg Action
Nunchuck Control Stick Look around at the side faces of the cube
Nunchuck C Button Hold the cube (used to change the front face)
Nunchuck Z Button Hold the current piece (used to rotate a face)

Building

Libraries needed to build this game from source

  • FreeTypeGX by Armin Tamzarian for font rendering
  • Metaphrasis by Armin Tamzarian for font texture converting and instruction texture converting
  • Vorbis used to load ogg sound samples
  • Libpng used to load instructions texture

Downloading libraries

You can follow the above links and download these libraries individually, cross-compiling some of them before using.

Or you can download directly this package with all of them.

Changes

v1.1.0

  • Added instructions screen

v1.0

  • Added online highscore

v0.9.1

  • Removed debug information from highscore screen

v0.9

  • Added local highcore record

v0.8

  • Added support for ogg sound files

v0.7

  • Added sound
  • Fixed bug where a face of the cube would turn in the wrong axis

v0.6

  • Initial version

Credits

Libraries

  • FreeTypeGX by Armin Tamzarian for font rendering
    • Metaphrasis by Armin Tamzarian for font texture converting
    • Freetype ported by Tantric to load font images
  • Libogc's developers for allowing all this to work
  • Libpng used to load instructions texture
  • Vorbis used to load ogg sound samples

Game

  • Hand model, hand textures and sounds by Bruno
  • Cube texture and game logo by Bota
  • Online highscore hosting by NextIS
Personal tools
Resources
Community