GlovePIE:Mike Tyson: Punch-out!!!

From WiiLi

Jump to: navigation, search

The following script is an algorithm for The Emulator FCE Ultra written for GlovePIE. The control feature a two hands action gameplay for the NES Punch-out games. You need a nunchuk to use this script. Work for Right/Left handed.

Contents

[edit] Configuration

    "Var.Righthanded":  Defined in the glovePIE script if you are left/right handed.     
    Plug the nunchuk and hold the Wiimote in your strongest hand.

[edit] Controls

[edit] DPAD/thumbstick (nunchuk)

    UP : Up (combo high punch)
    DOWN : Down (block)
    LEFT : Left (dodge)
    RIGHT : Right (dodge)

[edit] HEALING (Intermission menu)

    Minus : Select

[edit] SPECIAL ATTACK

    Plus : Start
    nunchuk C : Start

[edit] PUNCHES

    Punch left Hand : B
    Punch right Hand : A
    one : B
    two : A
    Hold B or Z (nunchuk) : Up (combo High Punch)


[edit] GlovePIE script

// Punch-Out!!! (for FceUltra)
// Created by Marc-Andre Larouche
// marclar83@gmail.com
//
// Version 0.2
//
// *The Nunchuk is mandatory.
//
// Work for right/left handed
// Punch with the wiimote or nunchuk for a low punch
// Hold B or Z (nunchuk) and punch for an high punch
// Press A or C (nunchuk) for an uppercut
// DPAD/Thumbstick control Little Mac dodge/protect
//
// September 2007

/*********************************************/

// Player stance
Var.Righthanded = true;

// DPAD mapping
Key.Left = Wiimote.Left;
Key.Up = Wiimote.Up;
Key.Right = Wiimote.Right;
Key.Down = Wiimote.Down;

// High punch key
Key.Up = Wiimote.Nunchuk.ZButton;
Key.Up = Wiimote.B;

// Punch button for an easier "get up"
Key.Z = wiimote.One;
Key.X = wiimote.two;

// Emulator Throttle
Key.Console = Wiimote.Home;

// Start (Special attack)
Key.Enter = Wiimote.Plus;
Key.Enter = Wiimote.A;
Key.Enter = Wiimote.Nunchuk.CButton;
// Select (Healing)
Key.Tab = Wiimote.Minus;

// Punch motion (Wiimote)
if  Abs(wiimote.gx)+Abs(wiimote.gy)+Abs(wiimote.gz) > 2.5 then
      if Var.Righthanded == true then
         Key.X = true;
         wait 0.05;
         Key.X = false;
      else
         Key.Z = true;
         wait 0.05;
         Key.Z = false;
      end if
end if
// Punch motion (nunchuk)
if  Abs(wiimote.nunchuk.gx)+Abs(wiimote.nunchuk.gy)+Abs(wiimote.nunchuk.gz) > 2.5 then
      if Var.Righthanded == true then
         Key.Z = true;
         wait 0.05;
         Key.Z = false;
      else
         Key.X = true;
         wait 0.05;
         Key.X = false;
      end if
end if
// Wiimote LED

wiimote.LED1 = true;
wiimote.LED2 = false;
wiimote.LED3 = false;
wiimote.LED4 = false;

Key.left = Wiimote.Nunchuk.JoyX <= -25%
Key.right = Wiimote.Nunchuk.JoyX >= 25%
Key.up = Wiimote.Nunchuk.JoyY <= -25%
Key.down = Wiimote.Nunchuk.JoyY >= 25%

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