JavaGaming.org

July 30, 2010, 09:42:26 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
Advanced search  
Pages: [1]   Go Down
Print
Author Topic: Shot 4K  (Read 5929 times)
0 Members and 1 Guest are viewing this topic.
jojoh
Sr. Member
****
Offline Offline

Gender: Male
Posts: 474


games4j.com


View Profile WWW
« on: February 18, 2005, 01:54:45 am »

What do you get it you mix of pool and soccer? Well, except for a lot of injuries and broken queues you might get Shot 4K. Use the queue to shoot the ball past or via the freakishly hovering cylinders.

I plan to move the point of view a bit higher so that one would look down a bit more onto the playingfield. Ideas?

http://valhallawebdesign.com/Joakim/Java/4K/Shot
Logged

Malohkan
JGO Neuromancer
*******
Offline Offline

Gender: Male
Posts: 1124


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


View Profile WWW
« Reply #1 on: February 18, 2005, 03:12:50 pm »

the game's a little slow.  Speed it up for starters Smiley
Logged

Admin and Game Developer at
GameLizard.com
Play Rimscape!    |    Play Conquer!
jojoh
Sr. Member
****
Offline Offline

Gender: Male
Posts: 474


games4j.com


View Profile WWW
« Reply #2 on: February 19, 2005, 02:05:17 am »

:-/ Most ppl say that my games are a bit too difficult... But if I speed up the "defenders" or the ball coming across, the game will be very difficult. I could give it a try, but might want to hear from more ppl before doing that. You do realize that the longer you hold down the mouse button the harder you shoot, right?

What is your best score?

I still haven't had a perfect 20. Think 15 is the best I have done in this version, and I have coded the darn thing  Wink
« Last Edit: February 19, 2005, 02:06:02 am by jojoh » Logged

Malohkan
JGO Neuromancer
*******
Offline Offline

Gender: Male
Posts: 1124


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


View Profile WWW
« Reply #3 on: February 19, 2005, 08:15:11 am »

Heh... the holding the mouse down thing was exactly what I needed Wink  No other complaints now, the game's great!  Grin
Logged

Admin and Game Developer at
GameLizard.com
Play Rimscape!    |    Play Conquer!
MasterOfDisaster
Full Member
***
Offline Offline

Gender: Male
Posts: 245


O_o


View Profile WWW
« Reply #4 on: February 19, 2005, 08:18:26 am »

cool game idea! very smooth. i like it.
Logged

MickeyB
JGO Ninja
*****
Offline Offline

Posts: 553


my game will work, my game will work!


View Profile WWW
« Reply #5 on: February 19, 2005, 10:20:35 am »

Loved it, kids loved it!
Logged

MickeyB

Current Project: http://www22.brinkster.com/mbowles/
jojoh
Sr. Member
****
Offline Offline

Gender: Male
Posts: 474


games4j.com


View Profile WWW
« Reply #6 on: February 21, 2005, 12:09:48 am »

This seems to be the game with least complaints, and most appreciated here at work  Smiley I have however made some improvements (I hope). I changed the point of view and added a grid on the ground to make it easier to aim, increasing speed instead of random, keyboard support, and some smaller tweaks. Oh yeah, made the goalposts superfat, to make it easier to sidepost-in.

Hope you think changes are improvements. Does it need difficulty levels? I hope most ppl score some goal and very few score 100%...
Logged

MasterOfDisaster
Full Member
***
Offline Offline

Gender: Male
Posts: 245


O_o


View Profile WWW
« Reply #7 on: February 21, 2005, 01:11:26 am »

it's really a cool game. have played it for a while now. but my best result was 12 hits.  Sad

i'm interested in the way you handle the mouse input ("trap" the pointer inside the window etc.). would you mind posting some mouse handling code snippets?
Logged

jojoh
Sr. Member
****
Offline Offline

Gender: Male
Posts: 474


games4j.com


View Profile WWW
« Reply #8 on: February 21, 2005, 01:37:50 am »

In short, this is it:
Code:
     Robot robot = new Robot();

     protected void processMouseMotionEvent(final MouseEvent evt) {
           playerx += evt.getX() - 400;
           robot.mouseMove((int) yourJFrame.getLocation().getX() + 400, (int) yourJFrame.getLocation().getY() + 120);
     }

I don't care about y position yet, so I just place the cursor close to the top (120), so that a quick move up with the mouse will let you escape from the game window. The mouse move is screen relative, hence the yourJFrame.getLocation()

I will probably post the whole code, when I am done with the game, towards the end of the 4k compo.
Logged

MasterOfDisaster
Full Member
***
Offline Offline

Gender: Male
Posts: 245


O_o


View Profile WWW
« Reply #9 on: February 21, 2005, 05:29:27 am »

thx.

the game is so addictive i played it the whole day. best result so far: 14 hits.

what do you think about adding a reset key or something? when i've had a bad start i had to close the window and start the game again.
Logged

MasterOfDisaster
Full Member
***
Offline Offline

Gender: Male
Posts: 245


O_o


View Profile WWW
« Reply #10 on: February 21, 2005, 05:49:28 am »

just had 16 hits! Cool
Logged

luisoft
Full Member
***
Offline Offline

Posts: 241


Java games rock!


View Profile
« Reply #11 on: February 21, 2005, 07:20:06 am »

really original ideia? nice game! I've got 20! Grin
Logged
MasterOfDisaster
Full Member
***
Offline Offline

Gender: Male
Posts: 245


O_o


View Profile WWW
« Reply #12 on: February 21, 2005, 07:30:05 am »

Quote
I've got 20! Grin

Shocked>Sad Sad :-/ Wink
Logged

jojoh
Sr. Member
****
Offline Offline

Gender: Male
Posts: 474


games4j.com


View Profile WWW
« Reply #13 on: February 21, 2005, 07:43:45 am »

Thanks for the complements. Cheesy

Quote

what do you think about adding a reset key or something? when i've had a bad start i had to close the window and start the game again.
Enter will start/restart at any time, used to be that you just got next ball a bit quicker, but is now restart anytime.

Quote
really original ideia? nice game! I've got 20! Grin
Good work! Does this mean I have to create a harder level? Or should I maybe just increase to 25 or 30 shots? I have now also managed to get a perfect 20, but only once.  Smiley
Logged

Hauk
Jr. Member
**
Offline Offline

Posts: 69


Guitar, Norse Mythology, java and women=life


View Profile
« Reply #14 on: December 06, 2005, 03:52:42 pm »

addictive!
Logged

I want to become a hermit and live in the harsh wastelands of Norway. I want to have a cloak made of bearskin and hunt the demons of the night.

I was born for a reason and am not about to lie down and die like the rest of you. Anybody with me?
Pages: [1]   Go Up
Print
 
Jump to: