My first entry on a contest and one of the few games that i have "finished"

AirPong4k is an implementation of a clasic game that can be found in any gaming centre.

Tested on linux, mac and win. Sound is only supported in some devices.

Controls:*Use the mouse to control your pad, spacebar to restart and escape to exit.

Objective:*Send the disc to the oposite goal to score a point. Score 7 points to win a match, it's that simple

It's not over-optimized nor obfuscated and it's compressed with the usual jar tool, however, it's still below 4096b (3919b3901b 3973b) so if it doesn't break any rule, i'll accept any sugestion to improve the game

[edit] fixed the mouse lag, but i have to review the collision detection to be more accurate updated. size 3901b [/edit][edit²] changed some colors and limited puck speed. Screenshot and size also updated [/edit]

Originaly, the paddle moved within the processMouseMotionEvent method, but that leaded to unexactly collision detection and you could pass over the disc without hitting it or hitting it on undetermined locations (even hit it back) so i sinchronized the paddle movement to the main cicle, registering only the velocity of the movement in the processevent and aplying int on the main cicle, what seems to be a litle odd...

Now i have switched back to move with the processMouseMotionEvent method, and trying to predict the collision iterating over the points of a striaght line betwen the position of the paddle now and in the previous cicle, but it seems to be innacurate too (maybe it's my code).

Agree about the mouse lag, afraid I can't be of much help though. On the graphics: That purple doesn't work with that grey for me I'd trade the purple for another color, but that's probably just me. Great work!

that's really cool, great game idea and implemented well. the extra spark effects are a nice touch

the only issue I have with it now is that I think the puck is a little too sensitive to the mouse. 3 or 4 times the puck was at a really high velocity to the point where it was almost blinking randomly around the table.. I would suggest adding maybe a maximum impact velocity..

traded the magenta line and goal for a dark green ones puck speed has been limited, still fast, but at least it won't craze up

Quote

Hahaha I love the music at the end! It almost jolted me out of my chair.

i was specting someone to notice this

music is randomly generated with something like midiChanel.noteOn(random.nextInt(128), random.nextInt(128)) i found that drama-thilling-ish sound hilarious and kept it in the game, but i'm thinking in something a litle more "elaborate" for a upcoming version :lol:

I didn't get any lag between my mouse and paddle movement, however it did seem that your calculations are a little rugged as I could still move the mouse fast enough so that it was past the puck, and then all of a sudden the puck flew backward. This happened way too many times. Apparantly I can't hit it too fast Also, I saw times where if you dragged the puck, all of a sudden the puck would accelerate like crazy. I'd imagine if you use proper momentum equations this shouldn't happen. This was also seen when the puck would accelerate out of control, I'd put the paddle in its path, hold it still, and the puck would come almost to a dead stop. I agree it should slow down, but not as much as it does.

the paddle worked fine since the 2nd release, i've closed the project, but i'll take a look at that. Sound is still unavaliable for some systems, it could be that there is no midi syntetizer avaliable, but i have no clue there.

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