Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (475)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (530)
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  
  Mini Golf (preview)  (Read 8336 times)
0 Members and 1 Guest are viewing this topic.
Offline timfoden

Junior Member


Projects: 2



« Posted 2007-12-05 10:20:45 »

3D 9 hole Mini Golf



http://games.7sun.com/4k/golf/golf.jnlp

I'm sure you all know the object of this game.  Tongue

But for those of you that are still a little mystified... the object of the game is to get the ball (thats the small round yellow thing) in the hole (thats the small round black thing in the ground with the flag sticking out of it) in the fewest number of shots you can.  The total at the end is the number of shots taken for each of the 9 holes added up.  There, happy now?  Smiley

Hope you have fun, Tim.

Controls

1/2/3 (at start)- Start playing on course 1, 2 or 3
Left/Right- Turn left/right
Up/Down- Elevate view up/down
A/Z- Zoom in/out
Space bar- Hold down a while and then release to hit the ball.
  The longer you hold the bar down, the harder you will hit the ball

EDIT: Updated for v0.91

Try Pipe Extreme -- can you get to the end of the pipe?
Offline Markus_Persson

JGO Wizard


Medals: 14
Projects: 19


Mojang Specifications


« Reply #1 - Posted 2007-12-05 10:52:07 »

Nice! Clever use of glyphs for level designs. =)

Are you using midi for the sound? You might want to check that it works with the contest rules, there was some mention about midi there iirc.

Play Minecraft!
Offline timfoden

Junior Member


Projects: 2



« Reply #2 - Posted 2007-12-05 11:00:40 »

Nice! Clever use of glyphs for level designs. =)

Thanks.  It saved quite a bit of space, and thus has allowed the game to have lots more holes.  I plan on adding some more later too (still got a-z, A-Z to use. Smiley )

Are you using midi for the sound? You might want to check that it works with the contest rules, there was some mention about midi there iirc.

I am using midi yes.  I'll check the rules as you say.  I'm not installing a sound bank or anything though... I'm prepared to live with there being no sound at all.  Smiley

Update
The rule about midi says this:

Quote
No soundbanks may be used because they are not a default part of the "public" JRE. You will have to create your sounds at runtime rather than use MIDIs.

I guess I'd like to get a ruling here.  It seems silly to disallow usage of midi when the game doesn't explicitly try to install it's own soundbanks.  I mean, why can we use the fonts on the machine that aren't installed by the JRE?  I'm quite prepared for the game to have no sound if the midi calls fail.  Doesn't the system default to using the default midi device on the system if there are no soundbanks installed?

Opinions anyone?

Anyway, if it really is a no-no, then I'll take the midi code out... I'll have more space for something else then!

Cheers, Tim.

Try Pipe Extreme -- can you get to the end of the pipe?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Morre

JGO Knight


Medals: 2
Projects: 10


I'm Dragonene on IRC.


« Reply #3 - Posted 2007-12-05 13:51:09 »

java.lang.Exception
   at com.sun.javaws.Launcher.continueLaunch(Launcher.java:908)
   at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:515)
   at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:218)
   at com.sun.javaws.Launcher.run(Launcher.java:165)
   at java.lang.Thread.run(Thread.java:595)

Solaris box in school. JRE 1.5 if I'm not mistaken.

Oh, and it looks awesomely, superbly, cool. This will be one hell of a contest, methinks Smiley

EDIT: Tried it on a windows machine. I love it. Absolutely love it. Your mapmaking is a stroke of genius, the graphics are superb, and the transitions between levels make it all that much better. With this and t4kns, this contest is guaranteed to be splendid no matter what :>

EDIT2: If there's any space left, how about letting players make a map by pressing an ASCII key (allowing all ascii chars for maps).

Offline timfoden

Junior Member


Projects: 2



« Reply #4 - Posted 2007-12-05 14:59:18 »

java.lang.Exception
   at com.sun.javaws.Launcher.continueLaunch(Launcher.java:908)
   at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:515)
   at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:218)
   at com.sun.javaws.Launcher.run(Launcher.java:165)
   at java.lang.Thread.run(Thread.java:595)

Solaris box in school. JRE 1.5 if I'm not mistaken.

Thanks for this report.  Can I ask... when did it happen?  Was it before the game got started, or during play?

I have an algorithm that uses 2 angles to define where the ball starts and the position of the flag.  I worry that this algorithm is the reason for the crash... the fonts are different on different machines, so it's tricky for me to test.

Another possibility is that I've compiled with 1.6, but using the -source 1.5 -target 1.5 flags.  Would this be a problem under Solaris?  It may be that proguard (3.7) has buggered too I suppose.


To all: Can anyone try it on other non-Windows machines and report any problems... thanks.


Quote
Oh, and it looks awesomely, superbly, cool. This will be one hell of a contest, methinks Smiley

Smiley  Thanks for the nice comment.


Quote
EDIT2: If there's any space left, how about letting players make a map by pressing an ASCII key (allowing all ascii chars for maps).

My hole definitions have a character plus 2 angles.  I guess it would be possible, but it may take up too much space to implement.  I'll think about it as I go along.

Cheers, Tim.

Try Pipe Extreme -- can you get to the end of the pipe?
Offline CaptainJester

JGO Knight


Medals: 12
Projects: 2
Exp: 14 years


Make it work; make it better.


« Reply #5 - Posted 2007-12-05 16:41:22 »

I guess I'd like to get a ruling here.  It seems silly to disallow usage of midi when the game doesn't explicitly try to install it's own soundbanks.  I mean, why can we use the fonts on the machine that aren't installed by the JRE?  I'm quite prepared for the game to have no sound if the midi calls fail.  Doesn't the system default to using the default midi device on the system if there are no soundbanks installed?

Opinions anyone?

Anyway, if it really is a no-no, then I'll take the midi code out... I'll have more space for something else then!

Cheers, Tim.

You are allowed to use Midi.  You just need to know that the Soundbank that comes with the JDK is not the same as the one that comes with the JRE.  So you need to have it tested on the public JRE to see if it still works.  Even if the sound does not work, but you game can continue without it you are fine.  If your game crashes on trying to get some Midi that is not available then you will be disqualified because your game won't start.

Nice game by the way.

Offline DzzD
« Reply #6 - Posted 2007-12-05 17:26:24 »

smart,polished, great game!

ps: i got a lot of exception in the java console but game didn't crash and I was able to continue playing without probleme (I only seen them as the console open automatically on java).

Offline oNyx

JGO Coder


Medals: 1


pixels! :x


« Reply #7 - Posted 2007-12-05 22:58:45 »

Glyphs heh... awesome idea! Grin

Awesome work.

弾幕 ☆ @mahonnaiseblog
Offline Morre

JGO Knight


Medals: 2
Projects: 10


I'm Dragonene on IRC.


« Reply #8 - Posted 2007-12-05 23:29:06 »

Was in school so I didn't have much time to look into details, and I don't have solaris at home... Anyway, it was during launch, I think - just when I clicked run, so either at invocation (although it didn't say invocationtargetexception, so it doesn't seem that way) or possibly during loading. No frame showed.

Again, I'm totally in love with this game Smiley

Offline timfoden

Junior Member


Projects: 2



« Reply #9 - Posted 2007-12-06 09:27:35 »

smart,polished, great game!

ps: i got a lot of exception in the java console but game didn't crash and I was able to continue playing without probleme (I only seen them as the console open automatically on java).

Thanks DzzD.

I don't see any here when I run in my 1.6 Windows system... what OS are you running on?

Is there any chance you could copy and paste one of the exceptions here?  So that I could see which one it was and where it occurred.  Thanks in advance.  Smiley

Cheers, Tim.

Try Pipe Extreme -- can you get to the end of the pipe?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline timfoden

Junior Member


Projects: 2



« Reply #10 - Posted 2007-12-06 09:43:41 »

Was in school so I didn't have much time to look into details, and I don't have solaris at home... Anyway, it was during launch, I think - just when I clicked run, so either at invocation (although it didn't say invocationtargetexception, so it doesn't seem that way) or possibly during loading. No frame showed.

OK, thanks for the info.  Sounds like it's going to be tricky for me to figure out!  Smiley

I think one of the things I'll do is release a version that hasn't got the midi sound in it -- maybe the sound's the problem.

Also I'll look at making sure that proguard doesn't use the 1.6 rt library.

The I might add some extra bits... Ideas for extra bits so far are:

1.  Add stars or clouds in the background.
2.  Add another course (one that uses some of the more interesting letters I think, although they all seem a bit dull).
3.  Add a mat where the ball starts.
4.  Change space bar so if it's held for a while it goes back down to 0 (Arni Arent's idea).
5.  Add a putter to hit the ball with.
6.  Make the flag wave in the wind.
7.  Add a user defined hole (Morre's idea).

Cheers, Tim.

Try Pipe Extreme -- can you get to the end of the pipe?
Offline DzzD
« Reply #11 - Posted 2007-12-06 11:43:15 »

Quote
1.  Add stars or clouds in the background.
2.  Add another course (one that uses some of the more interesting letters I think, although they all seem a bit dull).
3.  Add a mat where the ball starts.
4.  Change space bar so if it's held for a while it goes back down to 0 (Arni Arent's idea).
5.  Add a putter to hit the ball with.
6.  Make the flag wave in the wind.
7.  Add a user defined hole (Morre's idea).

maybe you may add some "traps" when levels become harder

Quote
Thanks DzzD.

I don't see any here when I run in my 1.6 Windows system... what OS are you running on?

AMD 2000/2100 ? (little tuned  Wink ) Windows XP SP2 JVM 1.6, I cant post exception right now as it I cant start the game right now the link hang?!,but I will as soon as I will be able to start it again.

Offline timfoden

Junior Member


Projects: 2



« Reply #12 - Posted 2007-12-07 11:21:53 »

Was in school so I didn't have much time to look into details, and I don't have solaris at home... Anyway, it was during launch, I think - just when I clicked run, so either at invocation (although it didn't say invocationtargetexception, so it doesn't seem that way) or possibly during loading. No frame showed.

I think the updated release should have fixed this... I was actually compiling as 1.6, not as 1.5.
If you could try the new version on the solaris box, I'd be grateful.  Smiley

Cheers, Tim.

Try Pipe Extreme -- can you get to the end of the pipe?
Offline DzzD
« Reply #13 - Posted 2007-12-07 11:36:27 »

Dont know if it is relatted to last update but, Game finished Wink without any exception,  Score 32  Smiley, I saw Max score==99 ?? is it true ?

I notice two thing while playing : sometime rotation to take the good direction is a little too slow when needed to rotate a lot, also it would be nice to have an arrow showing the excact ball direction

Offline timfoden

Junior Member


Projects: 2



« Reply #14 - Posted 2007-12-07 12:54:10 »

Dont know if it is relatted to last update but, Game finished Wink without any exception,  Score 32  Smiley, I saw Max score==99 ?? is it true ?

99 is just the initial setting for the best score.  It means that if you finish the course, you'll have the best score.  When you start another game, the best score will change.

The lower the score the better you've done.  It's not too hard to get 25 or less.  I think I got 21 once on the 2nd course.

Quote
I notice two thing while playing : sometime rotation to take the good direction is a little too slow when needed to rotate a lot,

I agree.  I'll probably do something about that.. I'll add it to my list.

Quote
also it would be nice to have an arrow showing the excact ball direction

I'm not so sure about this one.   I did actually have such an arrow in one of my development versions, but I took it out in the end.  I think it's good to make people try to figure out what the best direction is... after all, there's no arrow on the ground when you play golf for real!  Smiley

Thanks for your comments, Tim.

Try Pipe Extreme -- can you get to the end of the pipe?
Offline appel

JGO Wizard


Medals: 49
Projects: 4


I always win!


« Reply #15 - Posted 2007-12-07 14:06:23 »

Two ideas;

- Make '4' and make it a time-based, so you got x-seconds to finish each track from the first hit on the ball.
- Add a line straight forward, not a very long one, just one that shows the direction. I think some people are confused when they start the game for the first time.

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

JGO Knight


Medals: 12
Projects: 2
Exp: 14 years


Make it work; make it better.


« Reply #16 - Posted 2007-12-07 14:57:55 »

I'm not so sure about this one.   I did actually have such an arrow in one of my development versions, but I took it out in the end.  I think it's good to make people try to figure out what the best direction is... after all, there's no arrow on the ground when you play golf for real!  Smiley

Thanks for your comments, Tim.

I don't think an arrow is necessary.  You just rotate the camera down so you are looking over the ball to find your direction.

Offline Morre

JGO Knight


Medals: 2
Projects: 10


I'm Dragonene on IRC.


« Reply #17 - Posted 2007-12-07 21:49:46 »

Haven't had another chance to try it on a Solaris box and I'm not at them very often, but I will try it again if I get the chance Smiley

Offline Morre

JGO Knight


Medals: 2
Projects: 10


I'm Dragonene on IRC.


« Reply #18 - Posted 2007-12-09 14:30:00 »

Tried it on the solaris machines, works now. Probably the JRE version that was the issue? Smiley

Offline timfoden

Junior Member


Projects: 2



« Reply #19 - Posted 2007-12-10 09:41:28 »

Tried it on the solaris machines, works now. Probably the JRE version that was the issue? Smiley

Thanks for that.  Yes, I reckon it was the version... I realised that in copying backwards and forwards between 2 machines, one with 1.5 and one with 1.6, that I somehow lost my -version 1.5 -target 1.5 settings.  Smiley

Cheers, Tim.

Try Pipe Extreme -- can you get to the end of the pipe?
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.

ctomni231 (37 views)
2014-07-18 06:55:21

Zero Volt (35 views)
2014-07-17 23:47:54

danieldean (28 views)
2014-07-17 23:41:23

MustardPeter (31 views)
2014-07-16 23:30:00

Cero (46 views)
2014-07-16 00:42:17

Riven (47 views)
2014-07-14 18:02:53

OpenGLShaders (36 views)
2014-07-14 16:23:47

Riven (36 views)
2014-07-14 11:51:35

quew8 (32 views)
2014-07-13 13:57:52

SHC (69 views)
2014-07-12 17:50:04
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!