Patch:Paddle war

From KeenWiki
Jump to: navigation, search

This page covers patches relating to the in-menu minigame Paddle War in Keen Galaxy. Related patches are Patch:Main menu. Paddle War can be accessed at any time from the main menu by selecting its option and can be played as long as the player wishes.


Disable

This patch disables Paddle War entirely; if the menu option is selected nothing happens.

Patch: Keen 4
#Disable Paddle War
%patch $1C241 $CB


Screen Setup

These patches relate to how the screen is set up to play Paddle War. The screen used is the main menu screen with a few additions. There are three things to consider, the sprites used to play, the text displayed and other things of note.


Menu bitmap

The Paddle War screen contains a bitmap at the top center of the Computerwrist screen.

Patch: Keen 4
#Paddle War menu bitmap
%patch $1C6E2 $0064W
#Image
%patch $1C6E6 $0030W
#Vertical position
%patch $1C6EA $0082W
#Horizontal position

Patch: Keen 5
#Paddle War menu bitmap
%patch $1D680 $004FW
#Image
%patch $1D684 $0030W
#Vertical position
%patch $1D688 $0082W
#Horizontal position

Patch: Keen 6
#Paddle War menu bitmap
%patch $1C352 $0017W
#Image
%patch $1C356 $0030W
#Vertical position
%patch $1C35A $0082W
#Horizontal position


Don't show bitmap

These patches stop the paddle War menu bitmap from appearing at all.

Patch: No Paddle War menu bitmap
#No Paddle War menu bitmap -Keen 4
%patch $1C6E1 $EB $12
#No Paddle War menu bitmap -Keen 5
%patch $1D67F $EB $12
#No Paddle War menu bitmap -Keen 6
%patch $1C351 $EB $12


Sprites

There are three sprites used in Paddle war, each of them is a sprite int he same sense the player of the main game is a sprite, complete with hitbox. The sprites are the player and computer paddle and the b all.

The player and computer paddles do not have to appear at the same place as their hitbox; there are two variables that set where on the screen the sprite appears as opposed to its hitbox. (Currently the location of the hitbox cannot be moved.)

The sprites are drawn over the main menu image and must erase their tracks with a 'background box' Thus if the main menu image is changed, it will be necessary to change the color of the background box. If the sprites are changed in size, it will also be necessary to change the BB's size, a too-small box will leave bits of the sprite trailing behind.

The ball's hitbox is square, changing its width will also change its height. The second values for its color and height+width are used when the ball is erased (When a point is scored.) and should match the first values.

Patch: Keen 4
#Ball
%patch $1C620 $007EW
#Ball sprite 1
%patch $1C625 $007DW
#Ball sprite 2
%patch $1C5FA $0008W
#B background color
%patch $1C5FE $0005W
#B BG box height AND width
%patch $1C350 $0008W
#B background color 2
%patch $1C354 $0005W
#B BG box height AND width 2
#Computer paddle
%patch $1C65A $007CW
#Computer Paddle sprite
%patch $1C635 $0008W
#CP background color
%patch $1C639 $0003W
#CP BG box height
%patch $1C63D $0010W
#CP BG box width
%patch $1C641 $0042W
#CP sprite v location 1
%patch $1C65E $0042W
#CP sprite v location 2
#Player Paddle
%patch $1C692 $007CW
#Player Paddle sprite
%patch $1C66D $0008W
#PP background color
%patch $1C671 $0003W
#PP BG box height
%patch $1C675 $0010W
#PP BG box width
%patch $1C679 $0087W
#CP sprite v location 1
%patch $1C696 $0087W
#CP sprite v location 2


Text

There are two types of text in the Paddle War, the first is the score bar; it contains two entries that keep score of Keen and the computer's score. Each entry is in its own box of specified height, width and color. (Changing the background color will change the text color.) While the boxes' h locations can be changed independently, they are always on the same vertical position.

The second set of text is contained in the winning\losing boxes and is currently mostly unalterable.

Patch: Keen 4
#Score bar vertical position:
%patch $1C1B3 $0034W
#Keen:
%patch $1C1BF $0050W
#H location
%patch $1C1C2 $0008W
#Background color
%patch $1C1C6 $0006W
#Height
%patch $1C1CA $002AW
#Width
%patch $1C1DF $4DCEW
#Text called from
%patch $33C3E "KEEN:" $00
#Comp
%patch $1C201 $00B6W
#H location
%patch $1C204 $0008W
#Background color
%patch $1C208 $0006W
#Height
%patch $1C20C $0032W
#Width
%patch $1C221 $4DD4W
#Text called from
%patch $33C44 "COMP:" $00


Patch: Paddle war text Keen 4
#Other text:
%patch $33C4A "You lost!" $00 %patch $33C54 "Press any Key" $00 %patch $33C62 "You won!" $00 %patch $33C6B "Press any Key" $00

Patch: Paddle war text Keen 5
%patch $3463A "KEEN:" $00
              "COMP:" $00
              "You lost!" $00
              "Press any Key" $00
              "You won!" $00
              "Press any Key" $00

Patch: Paddle war text Keen 6
%patch $35578 "KEEN:" $00
              "COMP:" $00
              "You lost!" $00
              "Press any Key" $00
              "You won!" $00
              "Press any Key" $00


Misc

There are three other things of note in the PW screen. The first two are the top and bottom bars that indicate the size of the playing field; if you change the playing sprites (and especially their background squares to be bigger.) then you will likely need to move the bars further apart. Notice that the lines are identical in format to those of the main menu.

Patch: Keen 4
#War bottom line
%patch $1C70E $000AW
#Color
%patch $1C712 $008FW
#Vertical location
%patch $1C716 $00E7W
#H start
%patch $1C71A $004DW
#H end
#War top line
%patch $1C6F6 $000AW
#Color
%patch $1C6FA $003CW
#Vertical location
%patch $1C6FE $00E7W
#H start
%patch $1C702 $004DW
#H end


Sounds

These are the sounds played during Paddle War. It is an unusually vocal part of Keen. It is possible to remove all sounds.

Patch: Keen 4
#Paddle war sounds
%patch $1C430 $30
#Ball hits sides paddle war beep
%patch $1C465 $32
#Player lose paddle war beep
%patch $1C4BB $33
#Computer loses paddle war beep
%patch $1C542 $31
#Computer hit ball beep
%patch $1C59C $2F
#Player hit ball beep
#Don't play Paddle war sounds
%patch $1C42F $EB $0A
#Ball hits sides paddle war beep
%patch $1C464 $EB $0A
#Player lose paddle war beep
%patch $1C4BA $EB $0A
#Computer loses paddle war beep
%patch $1C541 $EB $0A
#Computer hit ball beep
%patch $1C59B $EB $0A
#Player hit ball beep

Patch: Keen 5
#Paddle war sounds
%patch $1D3CE $2F
#Ball hits sides paddle war beep
%patch $1D403 $31
#Player lose paddle war beep
%patch $1D459 $32
#Computer loses paddle war beep
%patch $1D4E0 $30
#Computer hit ball beep
%patch $1D53A $2E
#Player hit ball beep
#Don't play Paddle war sounds
%patch $1D3CD $EB $0A
#Ball hits sides paddle war beep
%patch $1D402 $EB $0A
#Player lose paddle war beep
%patch $1D458 $EB $0A
#Computer loses paddle war beep
%patch $1D4DF $EB $0A
#Computer hit ball beep
%patch $1D539 $EB $0A
#Player hit ball beep

Patch: Keen 6
#Paddle war sounds
%patch $1C0A0 $2F
#Ball hits sides paddle war beep
%patch $1C0D5 $31
#Player lose paddle war beep
%patch $1C12B $32
#Computer loses paddle war beep
%patch $1C1B2 $30
#Computer hit ball beep
%patch $1C20C $2E
#Player hit ball beep
#Don't play Paddle war sounds
%patch $1C09F $EB $0A
#Ball hits sides paddle war beep
%patch $1C0D4 $EB $0A
#Player lose paddle war beep
%patch $1C12A $EB $0A
#Computer loses paddle war beep
%patch $1C1B1 $EB $0A
#Computer hit ball beep
%patch $1C20B $EB $0A
#Player hit ball beep