Java Programming for the Nintendo Wii

There is a great article over at Ajaxian on programming for the Nintendo Wii. I bought a Wii myself a few weeks back and have been having great fun with Tiger Woods golf. (It is actually my first game console) Up until down the idea of playing a game console alone did not appeal to me but the Nintendo Wii experience is amazing.

The Wii console connects to the controller or Wiimote via bluethooth and uses an accelerometer built into the wiimote to detect the location of the wiimote as well as it’s acceleration. This leads to a really interactive experience for the user.

I have been amazed by responsiveness of the Wiimote and now Dion Almaer and Ben Galbraith over at Ajaxian have developed an Ajax app that uses Wiiusej to interact with the Wiimote. The Wiiusej API is a java wrapper for the C based Wiiuse library.

We then wrote a Java class that acts as a state machine for what the remote is doing. It understands the movements, which buttons are pushed, how fast you are moving the device. With this data we could build a simple darts game. With the state machine Java code, and an Applet wrapper that exposed the information, we were ready to get to the Ajax side of the house.

Checkout the video below of the guys in action:

Wii Darts in Ajax from Dion Almaer on Vimeo.

You can find the article here.

  1. #1 by Dion Almaer on May 9, 2008 - 7:06 am

    Hi Stephen,

    It has been a lot of fun playing with the Wii. Ben took the same code and developed a wack-a-Chet game for one of his Swing sessions. What fun! 🙂


  2. #2 by Stephen Downey on May 9, 2008 - 9:30 am

    Hi Dion,

    Thanks for stopping by!

    I think the possibilities with Wiimote technology are endless.
    I can see people interacting with computers using a accelerometer based device rather than a mouse in the next few years.

    Keep up the great work….


(will not be published)