Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (498)
Games in Android Showcase (117)
games submitted by our members
Games in WIP (564)
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  
  AirPong4k  (Read 5015 times)
0 Members and 1 Guest are viewing this topic.
Offline f.l.x

Senior Member


Projects: 3


there is no place like 127.0.0.1


« Posted 2005-12-08 01:09:18 »

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

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  Roll Eyes


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 Smiley

[size=20pt]Play the game[/size]

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


Litterarum radices amaras, fructus dulces
http://flx.proyectoanonimo.com
figth spam!
Offline swpalmer

JGO Coder


Exp: 12 years


Where's the Kaboom?


« 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 Smiley

Offline CaptainJester

JGO Knight


Medals: 12
Projects: 2
Exp: 14 years


Make it work; make it better.


« 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!
Legends of Yore - The Casual Retro Roguelike
Offline noblemaster

JGO Ninja


Medals: 20
Projects: 10


Age of Conquest makes your day!


« Reply #3 - Posted 2005-12-08 03:43:31 »

Nice game! However, I have to agree, the mouse lag is somewhat disturbing.

Offline 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
Offline f.l.x

Senior Member


Projects: 3


there is no place like 127.0.0.1


« 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?

Litterarum radices amaras, fructus dulces
http://flx.proyectoanonimo.com
figth spam!
Offline Morre

JGO Knight


Medals: 2
Projects: 10


I'm Dragonene on IRC.


« 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 Cheesy I'd trade the purple for another color, but that's probably just me. Great work!

Offline cborders

Junior Member





« Reply #7 - Posted 2005-12-08 16:49:36 »

Amazing work!  Shocked
Offline f.l.x

Senior Member


Projects: 3


there is no place like 127.0.0.1


« Reply #8 - Posted 2005-12-08 16:54:02 »

thanks for the feedback Grin

i forgot to upload the fixed version before answering Roll Eyes

the mouse lag has almost desapeared now but i'd like you to try if the collision detection is accurate enough.

Litterarum radices amaras, fructus dulces
http://flx.proyectoanonimo.com
figth spam!
Offline g666

Junior Member





« Reply #9 - Posted 2005-12-08 21:50:29 »

Nice game, there was only a little lag nd the ai seems wuite good too. Smiley

desperately seeking sanity
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline 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 Wink

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..
Offline anarchotron

Junior Member




...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.
Offline f.l.x

Senior Member


Projects: 3


there is no place like 127.0.0.1


« Reply #12 - Posted 2005-12-09 16:32:32 »

New version uploaded  Grin

traded the magenta line and goal for a dark green ones Wink
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 Grin

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:

Litterarum radices amaras, fructus dulces
http://flx.proyectoanonimo.com
figth spam!
Offline Morre

JGO Knight


Medals: 2
Projects: 10


I'm Dragonene on IRC.


« Reply #13 - Posted 2005-12-10 13:24:58 »

Sound didn't work for me :S
Great improvements, good work.

Offline kappa
« League of Dukes »

JGO Kernel


Medals: 77
Projects: 15


★★★★★


« 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
Offline f.l.x

Senior Member


Projects: 3


there is no place like 127.0.0.1


« Reply #15 - Posted 2005-12-15 15:24:05 »

thanks, really  Grin 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)


Litterarum radices amaras, fructus dulces
http://flx.proyectoanonimo.com
figth spam!
Offline Malohkan

Senior Member




while (true) System.out.println("WOO!!!!");


« 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 Smiley  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.

Admin and Game Developer at
GameLizard.com
Play Rimscape!    |    Play Conquer!
Offline f.l.x

Senior Member


Projects: 3


there is no place like 127.0.0.1


« 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  Roll Eyes

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

Litterarum radices amaras, fructus dulces
http://flx.proyectoanonimo.com
figth spam!
Offline f.l.x

Senior Member


Projects: 3


there is no place like 127.0.0.1


« Reply #18 - Posted 2006-01-08 12:52:19 »

Now the links point to woogley's official j4k games list  Smiley

Litterarum radices amaras, fructus dulces
http://flx.proyectoanonimo.com
figth spam!
Offline appel

JGO Wizard


Medals: 51
Projects: 4


I always win!


« 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.

Check out the 4K competition @ www.java4k.com
Check out GAMADU (my own site) @ http://gamadu.com/
Offline f.l.x

Senior Member


Projects: 3


there is no place like 127.0.0.1


« Reply #20 - Posted 2006-01-08 14:00:49 »

 Undecided 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.

Litterarum radices amaras, fructus dulces
http://flx.proyectoanonimo.com
figth spam!
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.

Grunnt (20 views)
2014-09-23 14:38:19

radar3301 (14 views)
2014-09-21 23:33:17

BurntPizza (31 views)
2014-09-21 02:42:18

BurntPizza (22 views)
2014-09-21 01:30:30

moogie (20 views)
2014-09-21 00:26:15

UprightPath (29 views)
2014-09-20 20:14:06

BurntPizza (33 views)
2014-09-19 03:14:18

Dwinin (48 views)
2014-09-12 09:08:26

Norakomi (75 views)
2014-09-10 13:57:51

TehJavaDev (107 views)
2014-09-10 06:39:09
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!