GlovePIE:Warblade

From WiiLi

Jump to: navigation, search


I wrote two GlovePie scripts for Warblade.

The first one utilizes the Wiimote in classic controller style with the directional pad left and the 1 and 2 buttons right.

Pad: Left, Right, Up Down
2: fire weapon
1: fire missile

A: Pause
Home: Quit
B: Enter (to confirm quit)

/* Play Warblade in NES-style by using Wiimote in classic mode
   (direction-pad left, buttons right)
   pad to steer, button 2 to fire, 1 for missile, A to pause
   home then B on Wiimote to quit
   By Xanathon

   Get Warblade at http://www.warblade.as

   My first try at GlovePie scripting
   Have fun!
*/

Key.Left = Wiimote.Up
Key.Right = Wiimote.Down
Key.Up = Wiimote.Right
Key.Down = Wiimote.Left

Key.LeftControl = Wiimote.Two
Key.LeftAlt = Wiimote.One

Key.P = Wiimote.A
Key.Escape = Wiimote.Home
Key.Enter = Wiimote.B

The second script allows you to play Warblade with the Nunchuk.

Joystick: Left, Right, Up Down
Z: fire weapon
C: fire missile

A: Pause
Home: Quit
B: Enter (to confirm quit)

/* Play Warblade with the Nunchuk
   Joystick to steer, Z to fire, C for missiles, A on Wiimote to pause
   home then B on Wiimote to quit
   By Xanathon

   Get Warblade at http://www.warblade.as

   My first try at GlovePie scripting
   Have fun!
*/

Key.Up = Wiimote.Nunchuk.JoyY < -0.25
Key.Down = Wiimote.Nunchuk.JoyY > 0.25
Key.Left = Wiimote.Nunchuk.JoyX < -0.25
Key.Right = Wiimote.Nunchuk.JoyX > 0.25

Key.LeftControl = Wiimote.Nunchuk.ZButton
Key.LeftAlt = Wiimote.Nunchuk.CButton

Key.P = Wiimote.A
Key.Escape = Wiimote.Home
Key.Enter = Wiimote.B

Have fun, Xanathon 12:32, 12 February 2007 (EST)

Personal tools
Online Casino - best online casino reviews.
Facebook Developers - facebook applications, facebook developers, facebook development, social network application development and viral widget social media strategy