Pang 4K

This is my entry for the j4k comp

Is based on PANG! a game made by capcom.

http://www.dcc.uchile.cl/~rcarvall/j4k/2005/Pang4K.jar

to run: java -cp Pang4K.jar Game1

Any feedback is welcome!

LOL ;D

It rawks! :slight_smile:

Any feedback is welcome!

The controls suck. Y’know there are some funky keyboard layouts where ‘z’ and ‘y’ are the other way 'round. Why not just cursors+ctrl? (You can of course use both control schemes at the same time).

Pang - what a classic. This is really neat. Love it!

Feedback:

  1. Graphics flicker alot here, not sure why.
  2. The block that you shoot from is too small, makes it easy not to get hit.

Kev

very sweet game, run smoothly.
but you should really consider to change the controls, because as a german user i had some problems with the ‘z’ key …

Onyx, Serethos: The controls are updated.
Kevglass: The block has grown 4 pixels :o

Thanks!

Woo I like it! How does it run anti-aliased?

Really great game, although a lot of flickering for the balls…and I am running on a P4 2.8 with a Geforce 6800 GE.

Very well done! Great simple addictive gameplay. :slight_smile:

I noticed some flicker as well. Level 2 had ‘ghosting’ a bright purple ball with a darker ball behind it. Not sure if it was intentional or not.

I’ll try on my Mac, 8), and let you know how things go there.

Regards,
Dr. A>

I have no problems of flickering on my machine(AthlonXP 2600+, GeForce5600, WinXP Pro, Java 1.4.2_05)

Which OS are you using?

I’ll try a version with double instead of int for calculations.

dranonymous: maybe two balls of the same size.

I too noticed flickering an ghosting of the balls after level 1, are the graphics double buffered? I also noticed that you can’t close the window by clicking the X button in the top corner (on windows).

calling this method on your JFrame should be enough

frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

I also noticed that you haven’t obsfucated your code, if you do that using one of the free tools like yGuard, you’ll save even more space, so can add extra features.

Andy.

ok,

I’ve done two new versions…

http://www.dcc.uchile.cl/~rcarvall/j4k/2005/Pang4Kfba.jar
to run: java -cp Pang4Kfba.jar Game3
http://www.dcc.uchile.cl/~rcarvall/j4k/2005/Pang4Ktba.jar
to run: java -cp Pang4Ktba.jar Game4

Both versions have antialiasing and a bigger window.
fba: Frame Based Animation
tba: Time Based Animation

I reached the limit with the tba version. It’s time for optimisation. (Only using javac -g:none)

Is the flickering still happening??

I played until level 30. I saw no flickering ever. The game was always totally smooth. It looks very nice anti-aliased :slight_smile: After about level 20 I stopped getting any power ups which made the game get kinda boring after that. I played 30 straight levels without losing a life, then quit. Looking good! The difficulty needs to speed up faster I think.

EDIT: only played time based

I would have expected the opposite, but the time based version is quite smooth and the frame based version flickers a lot. Fun game though!

Can we have a webstart please bob?

Kev

[quote]Can we have a webstart please bob?

Kev
[/quote]
Has come the time to learn Webstart!! :smiley:

Hey! i’m not Bob >:( My name is Rafael :wink:

Thanks for the feedback to all.

Dude, the game runs or at least feels jerky.

I enabled the OpenGL pipeline and it seemed a bit smoother but I’m guessing that the game needs work in the controls and graphics department. :wink:

Otherwise it’s quite nice.

Thats quite interesting… cause I’m running on a 733 with with 256 meg of ram and its smooth. At work on the 500 with 512 meg with onboard graphics (old) its also smooth.

Whats ya spec, I wonder whats doing it? Could be a timer issue.

Kev

Hi,

Here is the Webstart Version!

http://www.dcc.uchile.cl/~rcarvall/j4k/2005/Pang4K.php

I returned to use AWT Frame (no [X] to Close) press Esc!

With Swing 4300+ Bytes
With AWT 4200+ Bytes
Signed JAR 5700+ Bytes ( I know that my entry will not be ‘webstartable’)

I need to rip those extra bytes from the jar version. But where to begin?

Rafael

Edit: This version is a bit more hard… (more gravity and more balls)

A64 3000+, 1GB RAM, nForce 3 and a Radeon 9700 Pro.

Runs smooth and no flicker. Difficult level feels quite right as well. Webstart didn’t work first time around. Second time it started OK.

Very well done!