Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (576)
games submitted by our members
Games in WIP (497)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  SWP's Stick Fighter (need a new name)  (Read 8970 times)
0 Members and 1 Guest are viewing this topic.
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Posted 2006-02-07 06:09:37 »

It's also very much a work in progress, but for now you can still give my version of Stick Fighter a try via Web Start.

You are the white player.

Cursors move.
Space -  Jump
X - Punch
Z - Kick

The computer opponent is an idiot.

I think I may rename it to 4k Kung Fu.

edit: Home page now on JavaUnlimited http://javaunlimited.net/hosted/swpalmer/J4k2006/StickFighter/
(and the opponent is slightly less stupid.)

Offline jbanes

JGO Coder


Projects: 1


"Java Games? Incredible! Mr. Incredible, that is!"


« Reply #1 - Posted 2006-02-07 06:16:57 »

1. Can you change jumping to the Up arrow? I think it would be more natural. (A la Street Fighter 2 rather than *yuck* Rise of the Robots.)

2. For the love of God! Please change the punch from the Shift key! If I get one more Accessibility Alert from windows, I'm going to kill someone!  Shocked (I wish I knew a way to get rid of those stupid 5 shift taps and 5 second shift hold shortcuts forever. Grrr....)

3. Can you prevent the characters from going offscreen? It makes the action kind of difficult to follow. Smiley

4. Any chance of a block button? Maybe SFII style rather than MK style?

5. How about a better AI?  Grin

6. Players should always face each other.


It's a great start, though. Keep up the good work. Smiley

Java Game Console Project
Last Journal Entry: 12/17/04
Offline woogley
« Reply #2 - Posted 2006-02-07 06:51:18 »

2. For the love of God! Please change the punch from the Shift key! If I get one more Accessibility Alert from windows, I'm going to kill someone!  Shocked (I wish I knew a way to get rid of those stupid 5 shift taps and 5 second shift hold shortcuts forever. Grrr....)

it's just StickeyKeys Tongue
start->control panel->accessibility options->uncheck all boxes
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Morre

JGO Knight


Medals: 2
Projects: 10


I'm Dragonene on IRC.


« Reply #3 - Posted 2006-02-07 10:15:47 »

"Could not find the main class. Program will exit." I would try downloading the jar but I doubt I'd be able to do much with it if I don't know the main class.

Offline jbanes

JGO Coder


Projects: 1


"Java Games? Incredible! Mr. Incredible, that is!"


« Reply #4 - Posted 2006-02-07 13:55:14 »

it's just StickeyKeys Tongue
start->control panel->accessibility options->uncheck all boxes

That won't do it. The sticky keys will reenable as soon as you pound the shift key five times. (The stupid thing has been my arch nemesis for years!) I just checked the control panel, though, and realized that a new option to disable shortcuts has finally appeared under the "Settings" panel for each Accessibility option. WooHoo! No more FilterKeys activating when I'm holding the shift thinking about what I'm going to type!  Grin

That being said, shift is still bad. Windows users *will* have this problem, and most won't know how to fix it.

Java Game Console Project
Last Journal Entry: 12/17/04
Offline woogley
« Reply #5 - Posted 2006-02-07 16:23:05 »

true, alot of pinball games fall into the 'shift' trap (because it's so handy that there are TWO shift keys!)

we should start an incredible 'ctrl' movement.
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #6 - Posted 2006-02-07 16:43:39 »

1. Can you change jumping to the Up arrow? I think it would be more natural. (A la Street Fighter 2 rather than *yuck* Rise of the Robots.)

Yep, will do.

Quote
2. For the love of God! Please change the punch from the Shift key! If I get one more Accessibility Alert from windows, I'm going to kill someone!  Shocked (I wish I knew a way to get rid of those stupid 5 shift taps and 5 second shift hold shortcuts forever. Grrr....)

Funny, I don't get that. but I can change punch to space after doing #1 Smiley
Puch is now X, Kick is now Z

Quote
3. Can you prevent the characters from going offscreen? It makes the action kind of difficult to follow. Smiley

You can't walk off screen, but you can be kicked/punched off screen...  I will tweak that so it isn't as annoying. FIXED.

Quote
4. Any chance of a block button? Maybe SFII style rather than MK style?

Yes, it's on the list of things to add.

Quote
5. How about a better AI?  Grin

What you got something against Math.random() ?   Grin

Quote
6. Players should always face each other.


In the works.  FIXED

Quote
It's a great start, though. Keep up the good work. Smiley

Thanks.

I need to tweak the art a bit too, I want the stick figure proportions to be better.

Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #7 - Posted 2006-02-07 16:45:08 »

"Could not find the main class. Program will exit." I would try downloading the jar but I doubt I'd be able to do much with it if I don't know the main class.

Strange that this is happening for you and not others.  What system/JRE are you running on?

The main class is 'S'

Offline Morre

JGO Knight


Medals: 2
Projects: 10


I'm Dragonene on IRC.


« Reply #8 - Posted 2006-02-07 23:13:39 »

XP tablet edition (pro, basically) and JRE 1.5. Will try starting JAR manually.

EDIT: Worked when starting with java -cp StickFighter.jar S. Three things:
1) White is too hard to see compared to gray, and it'd be more intuitive if you were the left player.
2) The AI Wink
3) You shouldn't be able to hold down keys to punch/kick all the time.

Otherwise looking good, nice sound effects, lots of space left. Keep working on it Smiley

Offline DonaldEKnuth

Junior Member





« Reply #9 - Posted 2006-02-07 23:38:20 »

Agh! I still hear the fighitng sounds even though I closed the application already, how come?

My 4k 2006 Entry: Sokoban4k
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline jbanes

JGO Coder


Projects: 1


"Java Games? Incredible! Mr. Incredible, that is!"


« Reply #10 - Posted 2006-02-08 00:25:24 »

Agh! I still hear the fighitng sounds even though I closed the application already, how come?

Ahem:

Quote
Press Esc to close - don't close the window.  I'll fix that soon.

Java Game Console Project
Last Journal Entry: 12/17/04
Offline DonaldEKnuth

Junior Member





« Reply #11 - Posted 2006-02-08 00:29:51 »

 Embarrassed

My 4k 2006 Entry: Sokoban4k
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 70
Projects: 15


★★★★★


« Reply #12 - Posted 2006-02-08 02:03:40 »

oh been hoping someone would do a beat em up for 4k (personally didn't think it was possible, guess i was wrong Smiley) once u press kick or punch the arm/leg should go back to normal after an interval (like in street fighter) which adds to gameplay as u'll need to have correct timing, at the moment u just hold the kick/punch button and just move around when u get in range it attacks automatically which isn't right in a beat em up Smiley appart from that very nice.

is it just me or does this game remind you off http://uploads.ungrounded.net/content.php?id=42801&name=42801_xiaoxiao01_1_.swf&title=Xiao%20Xiao%20No.%201&date=1139288400&quality=b&uj=0&w=550&h=400
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #13 - Posted 2006-02-09 02:43:59 »

is it just me or does this game remind you of...

The XiaoXiao animations were definately an inspiration!


I've updated the jar...

Controls are now:

Cursors - Move left and right
Space - Jump
Z - Kick
X - Punch

Other changes: game keeps score, oppenents always face each other, opponent dies and re-spawns.
And you can now safely close the window Smiley

More to come...

Offline Alan_W

JGO Knight


Medals: 8
Projects: 3


Java tames rock!


« Reply #14 - Posted 2006-02-09 09:08:59 »

There is a slight issue with 'Z' & 'X' with German Keyboards.  I remember someone pointed out that 'Z' is somewhere in the middle of the top row (I had used it for fire).  Maybe for 4k games, we'll just have to live with a few inconveniences thro'.

Got to go so no time to try the latest version.  I did try an earlier version & loved the animation Smiley
Alan

Time flies like a bird. Fruit flies like a banana.
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #15 - Posted 2006-02-09 13:50:07 »

Got to go so no time to try the latest version.  I did try an earlier version & loved the animation Smiley

Thanks.  I've actually improved it a bit for this version, and I hope to tweak more still.

Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #16 - Posted 2006-02-26 18:07:27 »

Uploaded a slightly tweaked version to javaunlimited

http://javaunlimited.net/hosted/swpalmer/J4k2006/StickFighter/

Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #17 - Posted 2006-02-27 05:30:02 »

Now with two player support.

Play White against black with my pathetic AI (only slightly better than the original). Or switch to 2 player mode by simply controlling black with the numeric keypad.

I still have over a hundred bytes left...
I'm very close to implementing blocking of some sort.. but alas.. I doubt I will have the time to polish it off. Sad
So much I wish I had time to tweak.. I think I could improve the sound.. I was going to add high/low attacks... I wanted to improve the proportions on the stick men and add a little more physics (like the current recoil from the punch).

Well there's always next year.  This contest has some great entries.  Generally much improved over last year.

Offline Jeff

JGO Coder




Got any cats?


« Reply #18 - Posted 2006-02-27 07:26:32 »

Its cute!  But I get a terrible animation speed on my laptop.


Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline moogie

JGO Knight


Medals: 11
Projects: 5
Exp: 10 years


Java games rock!


« Reply #19 - Posted 2006-02-27 08:27:11 »

java.lang.NullPointerException
   at S.a(Unknown Source)
   at S.a(Unknown Source)
   at S.<init>(Unknown Source)
   at S.main(Unknown Source)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at com.sun.javaws.Launcher.executeApplication(Unknown Source)
   at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
   at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
   at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
   at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
   at com.sun.javaws.Launcher.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)


XP service pack 2
java version "1.5.0_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode, sharing)
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #20 - Posted 2006-02-27 13:57:39 »

Hmm... I couldn't reproduce the NPE with the 1.5.0._05 JRE I have installed here.  Most of my testing was done with Java 6, but I did test on some other computers with 1.5.   Of course I shoudl test with 1.4 but I don't actually have 1.4 installed anymore.

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (12 views)
2014-04-15 18:08:23

BurntPizza (10 views)
2014-04-15 03:46:01

UprightPath (24 views)
2014-04-14 17:39:50

UprightPath (10 views)
2014-04-14 17:35:47

Porlus (27 views)
2014-04-14 15:48:38

tom_mai78101 (49 views)
2014-04-10 04:04:31

BurntPizza (107 views)
2014-04-08 23:06:04

tom_mai78101 (207 views)
2014-04-05 13:34:39

trollwarrior1 (176 views)
2014-04-04 12:06:45

CJLetsGame (182 views)
2014-04-01 02:16:10
List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:05:20
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!