f.l.x
|
 |
«
Posted
2005-12-08 01:09:18 » |
|
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 ( 3919b 3901b 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]
|
|
|
|
swpalmer
|
 |
«
Reply #1 - Posted
2005-12-08 01:26:04 » |
|
Nice, but you need a decent mouse with a decent refresh rate, or, like me, you end up scoring on yourself a lot 
|
|
|
|
CaptainJester
|
 |
«
Reply #2 - Posted
2005-12-08 03:23:40 » |
|
The paddle shouldn't lag behind the movement of the mouse. You should match it. It is far to hard to make a proper shot with it the way it is. Otherwise, it is well done. Nice that is has sound to.
|
|
|
|
Games published by our own members! Check 'em out!
|
|
noblemaster
|
 |
«
Reply #3 - Posted
2005-12-08 03:43:31 » |
|
Nice game! However, I have to agree, the mouse lag is somewhat disturbing.
|
|
|
|
woogley
|
 |
«
Reply #4 - Posted
2005-12-08 05:53:16 » |
|
wow! nice implementation of air hockey, but as with everyone else... that paddle has to synch with the mouse
|
|
|
|
f.l.x
|
 |
«
Reply #5 - Posted
2005-12-08 16:16:44 » |
|
I'm working on that now.
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).
Any idea?
|
|
|
|
Morre
|
 |
«
Reply #6 - Posted
2005-12-08 16:42:40 » |
|
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!
|
|
|
|
cborders
|
 |
«
Reply #7 - Posted
2005-12-08 16:49:36 » |
|
Amazing work! 
|
|
|
|
f.l.x
|
 |
«
Reply #8 - Posted
2005-12-08 16:54:02 » |
|
thanks for the feedback  i forgot to upload the fixed version before answering  the mouse lag has almost desapeared now but i'd like you to try if the collision detection is accurate enough.
|
|
|
|
g666
|
 |
«
Reply #9 - Posted
2005-12-08 21:50:29 » |
|
Nice game, there was only a little lag nd the ai seems wuite good too. 
|
desperately seeking sanity
|
|
|
Games published by our own members! Check 'em out!
|
|
woogley
|
 |
«
Reply #10 - Posted
2005-12-09 15:14:13 » |
|
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..
|
|
|
|
anarchotron
Junior Devvie  
...precious bodily fluids.
|
 |
«
Reply #11 - Posted
2005-12-09 15:25:58 » |
|
Hahaha I love the music at the end! It almost jolted me out of my chair.
|
|
|
|
f.l.x
|
 |
«
Reply #12 - Posted
2005-12-09 16:32:32 » |
|
New version uploaded  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 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:
|
|
|
|
Morre
|
 |
«
Reply #13 - Posted
2005-12-10 13:24:58 » |
|
Sound didn't work for me :S Great improvements, good work.
|
|
|
|
kappa
|
 |
«
Reply #14 - Posted
2005-12-15 09:18:44 » |
|
This game is brilliant, i used 2 play air hockey at school all the time, so i kinda like air hockey games but this game really has style also very addictive
|
|
|
|
f.l.x
|
 |
«
Reply #15 - Posted
2005-12-15 15:24:05 » |
|
thanks, really  i have just arrived from an exam an i needed that have just fixed a bug on closing when /dev/sequencer was busy (on linux)
|
|
|
|
Malohkan
|
 |
«
Reply #16 - Posted
2005-12-17 16:31:45 » |
|
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.
|
|
|
|
f.l.x
|
 |
«
Reply #17 - Posted
2005-12-18 11:15:35 » |
|
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 I traded that for the paddle lag, using some predictive collision detection didn't seems to work, i'll have to look into that and try to do proper collision detection within 4k  Also, I saw times where if you dragged the puck, all of a sudden the puck would accelerate like crazy. I thought i had that fixed by limiting the puck speed, i'll try to reproduce that and see if i can fix
|
|
|
|
f.l.x
|
 |
«
Reply #18 - Posted
2006-01-08 12:52:19 » |
|
Now the links point to woogley's official j4k games list 
|
|
|
|
appel
|
 |
«
Reply #19 - Posted
2006-01-08 13:13:36 » |
|
Nice game.
Although, as everyone point out, the paddle is sluggish. Also, I did not hear any sound.
|
|
|
|
f.l.x
|
 |
«
Reply #20 - Posted
2006-01-08 14:00:49 » |
|
 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.
|
|
|
|
|