WiiLi Wiki frontpage Include your post in the News Get links Hoteles Quito
WiiLi.org Forum Index WiiLi.org
a new revolution
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The BEST Super Punch Out script for SNES! Like Wii Sports!!!

 
Post new topic   Reply to topic    WiiLi.org Forum Index -> Wii Scripts
View previous topic :: View next topic  
Author Message
thagerty



Joined: 01 Feb 2007
Posts: 35

Digg It
PostPosted: Sat Feb 10, 2007 2:54 am    Post subject: The BEST Super Punch Out script for SNES! Like Wii Sports!!!

Here is my first complete script for Super Punch Out for SNES Emulators. It plays just like Wii Sports except for the dodging... I found the Wii controls couldn't respond fast or consistant enough for that...

Have fun. Instructions are in the script...

Code:


/*     SUPER PUNCH OUT SNES SCRIPT - BY TERRY HAGERTY

This script is meant to be played with Super Punch Out for the SNES on an Emulator.
The controls are similar to that of Wii Sports Boxing except for the dodging. You dodge
left and right and down with the Nunchuk Stick.

To punch at the face just hold your Wii-remote or Nunchuck upright and Punch forward.
If you want to do BODY BLOWS, lower BOTH of them or HOLD down the B button and punch forward.

To do a right Hook you hold the Z button and punch with your right hand TO THE FACE.
HOLD Z and B and punch with your right or left hand to do a left hook.


All you need to do is setup your SNES Emulator with the following keys...

 SNES                 EMULATOR(KEYBOARD)
===========================================
 DPAD UP                  UP
 DPAD DOWN                DOWN
 DPAD LEFT                LEFT
 DPAD RIGHT               RIGHT
 B                        B
 Y                        Y
 A                        A
 X                        X
 START                    S
 SELECT                   D
 L                        L
 R                        R


 Keep in mind that you want to keep your remote and Nunchuck level until you start fighting.
 The menus could get a bit tricky otherwise....
 */



//This varible controls 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

// Assigning the various buttons

key.s = Wiimote.Plus
key.d = Wiimote.Home
key.x = Wiimote.Up
key.a = Wiimote.Right
key.l = wiimote.Nunchuk.CButton
key.r = Wiimote.Minus
Key.y = Wiimote.Nunchuk.RawAccy > var.ForceSensitivity or Wiimote.Left
Key.b = Wiimote.RawAccy > var.ForceSensitivity or Wiimote.Down

key.up = wiimote.Nunchuk.JoyY < -0.5
key.down = wiimote.Nunchuk.JoyY > 0.5
key.left = wiimote.Nunchuk.JoyX < -0.5
key.right = wiimote.Nunchuk.JoyX > 0.5




// GLOVES HELD UP TO PUNCH THE FACE.
// This tells the game that if you hold your Wii-remote or Nunchuck upright, it will keep "UP" on the SNES D-pad
// pressed down. If you want to do BODY BLOWS, lower BOTH of them or HOLD the B button (on Wii remote) to release
// "UP" on SNES D-pad and then punch forward.

if (wiimote.nunchuk.Pitch > 30 or wiimote.Pitch > 30) and wiimote.Nunchuk.JoyY < 0.5 and Wiimote.B != true then
press(key.up);
else
release(key.up);
endif



// RIGHT HOOK and LEFT HOOK
// This tells the game that if you hold the Z button and punch with your right hand TO THE FACE,
// to press "A" on SNES controller in order to do a right hook. This will only work if you have
// enough PUNCH energy in the game...
// HOLD Z and B and punch with your right or left hand to do a left hook)


if (wiimote.Nunchuk.ZButton = true and  Wiimote.RawAccy > var.ForceSensitivity) or (wiimote.Nunchuk.ZButton = true and wiimote.B=true and Wiimote.Nunchuk.RawAccy > var.ForceSensitivity) then
press(key.a)
else
release(key.a)
endif




//debug =Wiimote.Nunchuk.RawAccy + "   " + Wiimote.Nunchuk.RawAccx

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    WiiLi.org Forum Index -> Wii Scripts All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group