PsyberGoth
Joined: 21 Jul 2008 Posts: 2
Digg It |
Posted: Mon Jul 21, 2008 10:15 am Post subject: 2 New Scripts for Platformers, using Nunchuck/Wiimote Combo |
|
|
Hi guys. these are my first attempts at coding for GlovePIE. they worked really well on my PC, but i would like some feedback as to how the work on yours. Thanks. Any constructive feedback would be appreciated.
Cya.
PsyberGoth
PsyberGoth's MegaMan X8 Wiimote/Nunchuck Controls
| Quote: |
// Mega Man X8 Wiimote/Nunchuck Control
// By PsyberGoth
// Version 1.1 Beta
// Enjoy
// Comments to: ceadi5@eq.edu.au
// Please, no Curse Words, it auto-blocks any messages with 'em
//
// Script for Using the Wiimote an Nunchuck to play MegaMan X8
// Setup your MegaMan X8 Controls as Follows:
// Dash = X, Jump = Z, Normal Attack = A,
// Special Attack = S, Change Character = F, Change Weapon = C and V,
// Double Attack = Q.
// The Controls on the Wiimote+Nunchuck Will be:
// Nunchuck Joystick = Movement (Up, Down, Left, Right)
// A = Normal Attack, B = Special Attack, Home = Answer Navi
// Plus and Minus = Change Weapons, 1 = Menu, Skip Dialog, Etc.,
// 2 = Change Characters, D-Pad Up = Double Attack, D-Pad Down = Cancel, Esc.
//Nunchuck Movement (Edit if you want)
// Nunchuck Directional - (c) CarlKenner
Up = Wiimote.Nunchuk.JoyY < -20%
Down = Wiimote.Nunchuk.JoyY > 20%
Left = Wiimote.Nunchuk.JoyX < -20%
Right = Wiimote.Nunchuk.JoyX > 20%
//Wiimote/Nunchuck Key Mapping
//Edit if you really want to rearrange the setup
Key.X = Wiimote1.Nunchuk.ZButton
Key.Z = Wiimote1.Nunchuk.CButton
Key.S = Wiimote1.B
Key.A = Wiimote1.A
Key.V = Wiimote1.Plus
Key.C = Wiimote1.Minus
Key.Space = Wiimote1.Home
Key.Enter = Wiimote1.One
Key.F = Wiimote1.Two
Key.Q = Wiimote1.Up
Key.Escape = Wiimote1.Down
|
PsyberGoth's LEGO Platformer Code
| Quote: |
// LEGO - LucasArts Games Wiimote/Nunchuck Controls - Multiplayer Edition
// By PsyberGoth
// Version 1.7 Beta
// Enjoy
// Comments to: ceadi5@eq.edu.au
// Please, no Curse Words, it auto-blocks any messages with 'em
//
// NOW WITHOUT COMPULSORY NUNCHUCK, AND WITH SHAKE CONTROLS AND REAL BUTTONS!
//
// Go into settings, select controller setup, and map your Wiimote/Nunchuck Buttons
//Nunchuck Movement (Player 1)
// Nunchuck Directional - (c) CarlKenner
Up = Wiimote1.Nunchuk.JoyY < -20%
Down = Wiimote1.Nunchuk.JoyY > 20%
Left = Wiimote1.Nunchuk.JoyX < -20%
Right = Wiimote1.Nunchuk.JoyX > 20%
//Nunchuck Movement (Edit if you want)
i = Wiimote2.Nunchuk.JoyY < -20%
k = Wiimote2.Nunchuk.JoyY > 20%
j = Wiimote2.Nunchuk.JoyX < -20%
l = Wiimote2.Nunchuk.JoyX > 20%
//Player 1 Key Mapping
//Edit if you really want to rearrange the setup
if (wiimote1.RelAccX > 15) or (wiimote1.RelAccY > 15) or (wiimote1.RelAccZ > 15) then
Key.B = true
wiimote1.Rumble = true
wait 60 ms
Key.B = false
wait 100 ms
wiimote1.Rumble = false
endif
if (wiimote1.Nunchuk.RawAccX > 15) or (wiimote1.Nunchuk.RawAccY > 15) or (wiimote1.Nunchuk.RawAccZ > 15) then
Key.Z = true
wiimote1.Rumble = true
wait 60 ms
Key.Z = false
wait 100 ms
wiimote1.Rumble = false
endif
Key.Z = Wiimote1.Nunchuk.ZButton
Key.C = Wiimote1.Nunchuk.CButton
Key.B = Wiimote1.B
Key.A = Wiimote1.A
Key.Equals = Wiimote1.Plus
Key.Minus = Wiimote1.Minus
Key.Enter = Wiimote1.Home
Key.1 = Wiimote1.One
Key.2 = Wiimote1.Two
Key.Up = Wiimote1.Right
Key.Down = Wiimote1.Left
Key.Left = Wiimote1.Up
Key.Right = Wiimote1.Down
//Player 2 Key Mapping
Key.7 = Wiimote2.Nunchuk.ZButton
if (wiimote2.RelAccX > 15) or (wiimote2.RelAccY > 15) or (wiimote2.RelAccZ > 15) then
Key.8 = true
wiimote2.Rumble = true
wait 60 ms
Key.8 = false
wait 100 ms
wiimote2.Rumble = false
endif
if (wiimote2.Nunchuk.RawAccX > 15) or (wiimote2.Nunchuk.RawAccY > 15) or (wiimote2.Nunchuk.RawAccZ > 15) then
Key.7 = true
wiimote2.Rumble = true
wait 60 ms
Key.7 = false
wait 100 ms
wiimote2.Rumble = false
endif
Key.3 = Wiimote2.Nunchuk.CButton
Key.8 = Wiimote2.B
Key.4 = Wiimote2.A
Key.p = Wiimote2.Plus
Key.m = Wiimote2.Minus
Key.Home = Wiimote2.Home
Key.o = Wiimote2.One
Key.t = Wiimote2.Two
Key.i = Wiimote2.Right
Key.k = Wiimote2.Left
Key.j = Wiimote2.Up
Key.l = Wiimote2.Down
|
NOW WITH MULTIPLAYER AND MOTION SENSING!
Enjoy  |
|