Jump to content

Photo

Kung Fu Combat (2600) w/ AI ( 1 or 2 players)


30 replies to this topic

#1 easmith OFFLINE  

easmith

    Chopper Commander

  • 196 posts
  • Location:Alexandria, VA

Posted Thu Jan 24, 2019 12:52 PM

 
Game option selected by Select Switch .  left score shows # players , right score shows game option .  Press button to start selected game.
 
Game 1  =   1 player , players do not  reset to starting position after score
Game 2  =   1 player , players t reset to starting position after score and keep fighting

 

Games 1 and 2 

3 levels:  

1:  computer opponent

2:  Skill Level -- must punch or kick 20 flying missiles before being hit by 3

3:  computer  opponent

 

Game 3  =   2 players , players do not reset to starting position after score
Game 4  =   2 players , players  reset to starting position after score and keep fighting
 
 Game 5 = mini game of skills test against flying missiles ( how many of the 99 can you punch or kick?)

Controls : 

reset switch will reset game back to game select screen 

button will reset ended game to game option 1

 To start game press either button
 
jump up                                                           up
jump forward ( in direction facing only)           diagonal UP  ( in direction facing)
punch                                                              button +forward
high kick                                                          button + diagonal UP (in direction facing)
low kick                                                           button + diagonal down ( in direction facing)
walk left                                                          left
walk right                                                        right
change facing direction                                   down    ( can only punch,kick or jump in direction facing)
 
scoring  :   punch = 3 , high kick or jump kick = 1, low kick = 2

 

during game select switch will change background color
 

3 levels:  

1:  easier opponent

2:  Skill Level -- must punch or kick flying missiles

3:  tougher opponent

Attached Files


Edited by easmith, Yesterday, 9:40 PM.


#2 easmith OFFLINE  

easmith

    Chopper Commander

  • Topic Starter
  • 196 posts
  • Location:Alexandria, VA

Posted Fri Jan 25, 2019 10:13 AM

here is a crude video of me playing ( orange) vs. AI  ( white) 

 



#3 easmith OFFLINE  

easmith

    Chopper Commander

  • Topic Starter
  • 196 posts
  • Location:Alexandria, VA

Posted Sat Jan 26, 2019 12:13 PM

I think I am finally happy with the AI for the computer opponent.  I would be interested if anyone can find a flaw where you can always beat the computer . 

 

This final version has moved the game selection to the game select switch , and this is shown in the start up screen.

 

Left score shows # players , right score shows game option .

 

Game 1  =   1 player , players reset to starting position after score

Game 2  =   1 player , players do not reset to starting position after score and keep fighting

Game 3  =   2 players , players reset to starting position after score

Game 4  =   2 players , players do not reset to starting position after score and keep fighting

 

 I also took away the ability to score with just jumping up--  only forward jump kick can score.

 

Also made a PAL version.  Jump  is a bit different , but still seems ok.

 

 

This will probably be final unless someone catches a bug.  


Edited by easmith, Tue Jan 29, 2019 12:46 AM.


#4 Dionoid OFFLINE  

Dionoid

    Chopper Commander

  • 127 posts
  • Location:Leiden, Netherlands

Posted Sun Jan 27, 2019 3:52 AM

This game is evolving very well! I love the AI you added!

 

Some suggestions:

  • Make the colors for the PAL version more bright; PAL usually is a bit darker than NTSC when using the same color luminance value.
  • Try switching around the sound effects for hits and misses. I'm not sure, but maybe the muffled sound better suits a 'miss'.
  • Don't allow players to leave the screen and enter from the other side. This makes it more realistic IMO.
  • Add an intro screen :-)

Edited by Dionoid, Sun Jan 27, 2019 3:52 AM.


#5 easmith OFFLINE  

easmith

    Chopper Commander

  • Topic Starter
  • 196 posts
  • Location:Alexandria, VA

Posted Tue Jan 29, 2019 12:43 AM

 

This game is evolving very well! I love the AI you added!

 

Some suggestions:

  • Make the colors for the PAL version more bright; PAL usually is a bit darker than NTSC when using the same color luminance value.
  • Try switching around the sound effects for hits and misses. I'm not sure, but maybe the muffled sound better suits a 'miss'.
  • Don't allow players to leave the screen and enter from the other side. This makes it more realistic IMO.
  • Add an intro screen :-)

 

 

I decided to go ahead and ramp up the game to 8K after some feedback

 

 Additions/ Changes so far:

 

1.   I added a Title Screen for the game selection.    Left number is No players , right is game option ( see above).  Once game is selected press fire to start.

2.  Changed the color scheme a bit and changed setting Sun to mountain  ( like mt Fuji or something)

3.  I  enhanced the computer AI ( I had detected some vulnerabilities that you could exploit after much testing ) .  This is much tougher to beat -  getting pretty close to just right.  rather it be hard but not impossible than too easy

4.  I added a feature where during  game mode ( not title screen) , select switch will change the background color !

 

 

5.  I Will add a difficulty setting where player cannot exit screen  ( I think it is more interesting when they can--less confining)

 

I might have room for some kind of win screen or progressively harder opponents / rescue your significant other type feature, but not sure. :)

 

 

 

KFCtitle.jpg


Edited by easmith, Wed Jan 30, 2019 10:49 AM.


#6 easmith OFFLINE  

easmith

    Chopper Commander

  • Topic Starter
  • 196 posts
  • Location:Alexandria, VA

Posted Wed Jan 30, 2019 10:53 AM

I have polished it up  quite a bit:

 

Now the 1 player option has 3 levels:

 

Level 1 : Fight computer to 20

 

Level 2: Skill Level-- Missiles will come at you from either side  at three different heights.  Yo must kick or punch 20 and not be hit by 3.

 

 

Level 3:  fight more difficult opponent to 20

 

If you can complete all 3 levels you see a Trophy, and you win the game

 

 


Edited by easmith, Thu Jan 31, 2019 9:20 PM.


#7 easmith OFFLINE  

easmith

    Chopper Commander

  • Topic Starter
  • 196 posts
  • Location:Alexandria, VA

Posted Thu Jan 31, 2019 9:27 PM

I added the following:

 

game option 5 is a mini game of just the skills test, where you must kick or punch flying missiles.

 

99 missiles will come at you at  3 diifferent heights from either side at random.  You can jump and avoid but cannot move laterally. Gets faster after the 10th one.

 

Also shored up the computer AI to where I am pretty sure no attack will work every time.  Pretty challenging to defeat the AI .  A little easier on game 2.

 

If you defeat all levels a trophy appears in the score area and the game is over.

 

I think it is pretty bug free at this point. I hope some folks will give it some play time , especially the mini game option #5.

 

 

 

 

 


Edited by easmith, Fri Feb 1, 2019 9:45 AM.


#8 easmith OFFLINE  

easmith

    Chopper Commander

  • Topic Starter
  • 196 posts
  • Location:Alexandria, VA

Posted Fri Feb 1, 2019 9:46 AM

tightened up the controls , where I was still occasionally executing unintended move. . Now pretty much always will execute the intended move . 


Edited by easmith, Sat Feb 9, 2019 8:33 AM.


#9 cimmerian OFFLINE  

cimmerian

    Dragonstomper

  • 535 posts
  • Location:Vancouver Canada

Posted Sat Feb 2, 2019 7:29 PM

Hi easmith, I'm looking forward to featuring Kung Fu Combat on ZeroPage Homebrew on an upcoming show!

 

During the one on one combat it looks like the game generates a very stable 262 lines so that should work very well but I noticed that your title screen reports 263 scanlines which wouldn't work well with digital displays.

 

Also, during the Skill Level it alternates between 261 and 262 lines every second frame which would also cause havoc with a digital display/video capture devices which are expecting a stable picture. If I tried to play it on the show with my Framemeister and capture devices it'll cause a blue screen (no input) and I wouldn't be able to stream it.

 

I think it is pretty bug free at this point. I hope some folks will give it some play time , especially the mini game option #5.


#10 easmith OFFLINE  

easmith

    Chopper Commander

  • Topic Starter
  • 196 posts
  • Location:Alexandria, VA

Posted Mon Feb 4, 2019 7:52 PM

Hi easmith, I'm looking forward to featuring Kung Fu Combat on ZeroPage Homebrew on an upcoming show!

 

During the one on one combat it looks like the game generates a very stable 262 lines so that should work very well but I noticed that your title screen reports 263 scanlines which wouldn't work well with digital displays.

 

Also, during the Skill Level it alternates between 261 and 262 lines every second frame which would also cause havoc with a digital display/video capture devices which are expecting a stable picture. If I tried to play it on the show with my Framemeister and capture devices it'll cause a blue screen (no input) and I wouldn't be able to stream it.

 

 

 

stable scanline version attached. Also cleaned up a few more bugs.

 

A strategy tip:  game #2, where you can keep fighting w/out resetting position ,  is easier to beat computer opponent and make it through all 3 levels

 

Also ,  the I have fixed the controls to where they are more forgiving , but this might help:

 

If you are trying to punch or kick, make sure the button is pressed before the direction. If this is done you will not turn around or jump by accident.


Edited by easmith, Sat Feb 9, 2019 8:45 AM.


#11 easmith OFFLINE  

easmith

    Chopper Commander

  • Topic Starter
  • 196 posts
  • Location:Alexandria, VA

Posted Sat Feb 9, 2019 8:50 AM

Some final refinements to controls, with some advice from Dionoid .  The jump and reverse-direction moves must be read for 4 consecutive  frames to register, so it minimizes the times when these moves are unintentionally registered .    But as always if  button is pressed first, punch or kick will always register .

Also, button + up and button + up diagonal  register as high kick, and button + down or button + down diagonal register as low kick.  

 

 

 

 

Attached Files


Edited by easmith, Sat Feb 16, 2019 5:32 PM.


#12 easmith OFFLINE  

easmith

    Chopper Commander

  • Topic Starter
  • 196 posts
  • Location:Alexandria, VA

Posted Sun Feb 10, 2019 9:56 AM

some more crude videos .   Screen capture frame rate was too slow so had to use phone.

 

 

 

skills test level / mini game

 



#13 cimmerian OFFLINE  

cimmerian

    Dragonstomper

  • 535 posts
  • Location:Vancouver Canada

Posted Wed Feb 13, 2019 11:37 AM

We'll be featuring Kung Fu Combat LIVE on today's (Wednesday) ZeroPage Homebrew stream on Twitch at 11AM PT|2PM ET|7PM GMT! Hope everyone can watch!

Twitch Stream: https://www.twitch.t...ropagehomebrew/

Games:

- Star Fire (2003) by Manuel Polik of XYPE
- Kung Fu Combat (2019 WIP) by easmith
- The Children of Hurin (2019 WIP) by ultima
- Thrust+ Platinum (2003) by Thomas Jentzsch WITH Footpedal Controls!

20190213-Let's Play.jpg



#14 Thomas Jentzsch OFFLINE  

Thomas Jentzsch

    Thrust, Jammed, SWOOPS!, Boulder Dash, THREE·S, Star Castle

  • 23,938 posts
  • Always left from right here!
  • Location:Düsseldorf, Germany, Europe, Earth

Posted Wed Feb 13, 2019 3:01 PM

Put a WSYNC before lda #00, sta VSYNC. That should make it stable.



#15 easmith OFFLINE  

easmith

    Chopper Commander

  • Topic Starter
  • 196 posts
  • Location:Alexandria, VA

Posted Wed Feb 13, 2019 6:28 PM

We'll be featuring Kung Fu Combat LIVE on today's (Wednesday) ZeroPage Homebrew stream on Twitch at 11AM PT|2PM ET|7PM GMT! Hope everyone can watch!

Twitch Stream: https://www.twitch.t...ropagehomebrew/

Games:

- Star Fire (2003) by Manuel Polik of XYPE
- Kung Fu Combat (2019 WIP) by easmith
- The Children of Hurin (2019 WIP) by ultima
- Thrust+ Platinum (2003) by Thomas Jentzsch WITH Footpedal Controls!

attachicon.gif20190213-Let's Play.jpg

 

 

Put a WSYNC before lda #00, sta VSYNC. That should make it stable.

 

How's this ?


Edited by easmith, Sat Feb 16, 2019 5:33 PM.


#16 Thomas Jentzsch OFFLINE  

Thomas Jentzsch

    Thrust, Jammed, SWOOPS!, Boulder Dash, THREE·S, Star Castle

  • 23,938 posts
  • Always left from right here!
  • Location:Düsseldorf, Germany, Europe, Earth

Posted Thu Feb 14, 2019 12:39 AM

Sorry, I meant add a WSYNC before lda #$02, sta VSYNC



#17 easmith OFFLINE  

easmith

    Chopper Commander

  • Topic Starter
  • 196 posts
  • Location:Alexandria, VA

Posted Thu Feb 14, 2019 7:23 AM

Ok then how about this ?  On Stella it seems no different.   And the old version played fine on real hardware with CRT and Harmony cart.  I will try to hook up to HDTV and see how this behaves .  The issue I believe was with Zero Page using HDTV .


Edited by easmith, Sat Feb 16, 2019 5:33 PM.


#18 easmith OFFLINE  

easmith

    Chopper Commander

  • Topic Starter
  • 196 posts
  • Location:Alexandria, VA

Posted Thu Feb 14, 2019 12:31 PM

Sorry, I meant add a WSYNC before lda #$02, sta VSYNC

  Ok, I hooked up my 2600 to an HDTV with coax adapter .

The ROM after adding the WSYNC and the ROM before  behave exactly the same --  both are stable , neither one freaks out anything near to what happened with Zero Page .

I am not sure what the display setup  they are using is..

 

I did notice the colors were a bit different and there was a pronounced scanline effect in the sprites, but otherwise both were stable.  ............?????

Attached Thumbnails

  • IMG_1155.jpg
  • IMG_1156.jpg


#19 Thomas Jentzsch OFFLINE  

Thomas Jentzsch

    Thrust, Jammed, SWOOPS!, Boulder Dash, THREE·S, Star Castle

  • 23,938 posts
  • Always left from right here!
  • Location:Düsseldorf, Germany, Europe, Earth

Posted Thu Feb 14, 2019 1:16 PM

Your old code had a varying timing for VSYNC enabled. This means, the total length of a frame is slightly varying too. It depends on the hardware used if that results into problems or not, so you better make sure everything is constant.



#20 easmith OFFLINE  

easmith

    Chopper Commander

  • Topic Starter
  • 196 posts
  • Location:Alexandria, VA

Posted Thu Feb 14, 2019 2:39 PM

Your old code had a varying timing for VSYNC enabled. This means, the total length of a frame is slightly varying too. It depends on the hardware used if that results into problems or not, so you better make sure everything is constant.

 

Thanks,

 

so is the updated version good then so far as you can tell?



#21 TrekMD OFFLINE  

TrekMD

    River Patroller

  • 3,897 posts
  • Location:Coral Gables, FL

Posted Thu Feb 14, 2019 6:20 PM

Just downloaded this to give it a try.  :)



#22 splendidnut OFFLINE  

splendidnut

    Chopper Commander

  • 144 posts
  • Location:PA/NY Border

Posted Thu Feb 14, 2019 7:00 PM

The ROM after adding the WSYNC and the ROM before  behave exactly the same --  both are stable , neither one freaks out anything near to what happened with Zero Page .

I am not sure what the display setup  they are using is..

 

The Zeropage Homebrew crew use a real Atari 2600 running thru a Framemeister to allow them to get the best quality video at 60fps for video capture (streaming) while running from real hardware . That setup is super sensitive to signal variations... the VSYNC needs to be correct and the scanline count cannot vary between frames.

 

CRTs are SUPER lax... they had to be to deal with analog signals being received via antenna.  Modern TVs are hit or miss due to the rise of digital cable... the analog side of things are being neglected since that's no longer a priority.



#23 cimmerian OFFLINE  

cimmerian

    Dragonstomper

  • 535 posts
  • Location:Vancouver Canada

Posted Fri Feb 15, 2019 4:43 PM

It's rock solid now easmith! I'll be revisiting it on ZeroPage Homebrew tonight (6PM PT | 9PM ET | 2AM GMT) as I couldn't give it a full playthrough last time. :-)

 

Twitch Stream: https://www.twitch.t...ropagehomebrew/

Thanks so much for helping him get a stable picture TJ!! :-)

 

so is the updated version good then so far as you can tell?



#24 easmith OFFLINE  

easmith

    Chopper Commander

  • Topic Starter
  • 196 posts
  • Location:Alexandria, VA

Posted Fri Feb 15, 2019 4:54 PM

fixed the shearing on left side of screen


Edited by easmith, Sat Feb 16, 2019 5:33 PM.


#25 easmith OFFLINE  

easmith

    Chopper Commander

  • Topic Starter
  • 196 posts
  • Location:Alexandria, VA

Posted Fri Feb 15, 2019 4:57 PM

Your old code had a varying timing for VSYNC enabled. This means, the total length of a frame is slightly varying too. It depends on the hardware used if that results into problems or not, so you better make sure everything is constant.

Thank you  :thumbsup:






0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users