Wii Remote Working with Mac Torque Game Engine
Hey, I’ve finally got something to blog about. So yeah, I got a Wii. You know, it’s for the kids! It’s not for me, honest, honey! I was talking to a friend about the Wii, and we came up with a great idea for a Wii game. But, how could we protoype such a thing?
Now, when we got the Wii, we also got some extra controllers. At the risk of lopsided doubles tennis, I swiped one and took it upstairs. And after following the progress of folks reverse-engineering and coding the Wii remote I decided to try to hack some Wii remote support into the Torque Game Engine. You know, for the kids.
So far: it’s working! And it’s fun. Click the picture above to look at the high-quality screen capture movie (9 MB QuickTime movie). Ignore the dead-tired looking dweeb in the corner (he’s actually having fun, that’s how he shows it) and focus on the Wii remote in his hand. You can also see some of the console debugging in the background.
Here’s another video. This one is crappier looking (YouTube) but it will hurt your bandwidth less:
(Say, if you need a way to save YouTube videos to your computer or iPod,
won’t you consider TubeSock?)
This video was taken after I improved the control — there’s now a greater “dead” area around the axes, so you don’t accidentally move the view as much. At the start, you can see me mash the “1″ and “2″ buttons, to turn on the bluetooth discovery (all four blue LEDs blink). Also, the “A” button now fires (sent into the game engine as a left mouse button click) and the “B” button walks forward (sent into the game engine as a “w” keypress).
Next step is to get a homemade IR sensor bar on the Mac. Then we’re ready to prototype Wii games on my Mac. See, I’m serious about TGE. Now, finally, for the love of god, won’t GarageGames let me join the Constructor beta?
Update: Sensor bar complete. New video and dead-simple sensor bar construction diagram coming soon. And a binary for anyone who wants to try it.
