http://www.wiili.org/forum/
http://www.wiimoteproject.com/
http://nintendo-scene.com/831
Wiitrack方案的原始代码就是源自wiili.org;
其它还包括用wiimote玩FPS游戏的代码、做方向盘玩赛车游戏的代码、做网球拍的代码……等等诸如此类……
还有很多等待发掘啊
先贴一个:
Call of Duty 4
Crysis
script fps config ingame
4 script joystick
devil may cry 4 mode nero and dante
PPJoy.Digital5 = Wiimote1.B //High Profile
PPJoy.Digital0 = wiimote1.A //Leg Action
PPJoy.Digital2 = wiimote1.Home //Head Action
PPJoy.Digital11 = wiimote1.PLUS //Center Camera
PPJoy.Digital8 = wiimote1.one //Map
PPJoy.Digital9 = Wiimote1.two //Pause
PPJoy.Digital1 = Wiimote1.RawForceX >= 60 m per s //Weapon Hand Action (move wiimote at 60m/s)
PPJoy.Digital6 = wiimote.Nunchuk.CButton //Chase Camera
PPJoy.Digital4 = Wiimote1.Nunchuk.ZButton //Target Lock
PPJoy.Analog0 = Wiimote1.Nunchuk.JoyX //Left/Right
PPJoy.Analog1 = Wiimote1.Nunchuk.JoyY //Forward/Backward
*/
//This varible controlls the ammount of force you need to use when moving the
//wiimote or nunchuk, make it lower if you want to use less force when moving the
//wiimote or nunchuk
var.ForceSensitivity=15
//Joystick - Walk/Run
//Movement (You must assign your Nunchuk stick for movement in-game under gamepad options)
PPJoy.Analog2=wiimote.Nunchuk.JoyX
PPJoy.Analog3=wiimote.Nunchuk.JoyY
//endif
var.grabright= (Wiimote.nunchuk.RawAccx > var.ForceSensitivity, Wiimote.nunchuk.RawAccx < -var.ForceSensitivity) and wiimote.b=true
var.grableft = (Wiimote.nunchuk.RawAccx < -var.ForceSensitivity, Wiimote.nunchuk.RawAccx > var.ForceSensitivity) and wiimote.b=true
var.grabback =(Wiimote.nunchuk.RawAccy > var.ForceSensitivity, Wiimote.nunchuk.RawAccy < -var.ForceSensitivity) and wiimote.b=true
// Attack/Select/Armed Hand - BLUE
ppjoy.digital15=(Wiimote.RawAccX > var.ForceSensitivity or Wiimote.RawAccX < -var.ForceSensitivity) or (Wiimote.RawAccy > var.ForceSensitivity or Wiimote.RawAccy < -var.ForceSensitivity)
//Drop/Grab/Tackle
ppjoy.digital3=(Wiimote.nunchuk.RawAccx > var.ForceSensitivity or Wiimote.nunchuk.RawAccx < -var.ForceSensitivity) or (Wiimote.nunchuk.RawAccy > var.ForceSensitivity or Wiimote.nunchuk.RawAccy < -var.ForceSensitivity)
PPJoy.Digital3 = wiimote1.minus //Free Hand Action
endif
PPJoy.Digital16 = wiimote1.up //Hidden Blade
PPJoy.Digital17 = wiimote1.down //Fists
PPJoy.Digital19 = wiimote1.right //Short Blade and Throwing Knives
PPJoy.Digital18 = wiimote1.left //Sword
if wiimote.Nunchuk.CButton //camera = C + motion sensor wiimote
PPJoy.Analog2 = (Wiimote1.Roll - 6)/50
PPJoy.Analog3 = -(Wiimote1.Pitch + 6)/35
else
PPJoy.Analog2 = 0
PPJoy.Analog3 = 0
endif
If PPJoy.Digital1 = True Then
wiimote.rumble = True
Wait 300 ms
wiimote.rumble = False
End If |