jrnovoa
JGO n00b  Posts: 12
Java games rock!
|
 |
«
on:
2004-03-01 01:50:17 » |
|
Hi. I'm working in a simple Java arcade game for Windows, Linux and MacOS X. I need some test and reviews about the game working in different systems (speed, playability, etc...) The download link of the game is: http://deplastic.com/spitup.htmlthanks for the help and cheers. Jose Luis
|
|
|
|
|
blahblahblahh
JGO Kernel      Posts: 4575
http://t-machine.org
|
 |
«
Reply #1 on:
2004-03-01 02:13:45 » |
|
1. never package a ZIP, always use JAR. No-one can run ZIP files, everyone can run JAR files 2. make a webstart version. 3. make a 320 pixel wide screenshot and submit it to the address on this page: http://grexengine.com/sections/externalgames/EDIT: I didn't try the game because there was no jar and no webstart version; ZIP is too much hassle
|
malloc will be first against the wall when the revolution comes...
|
|
|
princec
« League of Dukes » JGO Kernel      Posts: 8089 Medals: 96
Eh? Who? What? ... Me?
|
 |
«
Reply #2 on:
2004-03-01 02:21:18 » |
|
What he said. Won't try it until its Webstarted. Cas 
|
|
|
|
Games published by our own members! Go get 'em!
|
|
AndersDahlberg
Full Member   Posts: 196
|
 |
«
Reply #3 on:
2004-03-01 02:26:46 » |
|
General information about Java Webstart: http://wiki.java.net/bin/view/Games/WebStartHow to use java webstart on your own projects: http://wiki.java.net/bin/view/Games/HowToUseWebstartHappy coding  P.S. as you are (?) not using any "native" libraries (i.e. gagetimer, jogl, lwjlg etc etc) you don't need to include the <security> <all-permissions/> </security> bit in your jnlp file (this is a good idea, as then your users won't be told about security risks involved in running applications that request all permissions on there machines - your app. aren't allowed to touch their machine => all is great 
|
|
|
|
|
jrnovoa
JGO n00b  Posts: 12
Java games rock!
|
 |
«
Reply #4 on:
2004-03-01 02:30:12 » |
|
Hi again.
The entire game is packaged in a zip file, with de .jar, exe, .sh, and .command, launchers for differents System.
I only need a minimal review about the game working in a Linux and MacOS X System.
I upload lather the game to your link.
thanks again.
|
|
|
|
|
AndersDahlberg
Full Member   Posts: 196
|
 |
«
Reply #5 on:
2004-03-01 02:48:38 » |
|
Webstart! Webstart! Webstart! </chant mode> 
|
|
|
|
|
kevglass
« League of Dukes » JGO Kernel      Posts: 5214 Medals: 49
Mentally unstable, best avoided.
|
 |
«
Reply #6 on:
2004-03-01 03:01:37 » |
|
P.S. as you are (?) not using any "native" libraries (i.e. gagetimer, jogl, lwjlg etc etc) you don't need to include the <security> <all-permissions/> </security> bit in your jnlp file (this is a good idea, as then your users won't be told about security risks involved in running applications that request all permissions on there machines - your app. aren't allowed to touch their machine => all is great
Now this is interesting, do you not need security permissions for network access etc? Out of the sandbox type stuff? Kev
|
|
|
|
|
|
princec
« League of Dukes » JGO Kernel      Posts: 8089 Medals: 96
Eh? Who? What? ... Me?
|
 |
«
Reply #8 on:
2004-03-01 04:14:34 » |
|
Ah, strange - you're right, they don't work :/ Better fix it! Cas 
|
|
|
|
blahblahblahh
JGO Kernel      Posts: 4575
http://t-machine.org
|
 |
«
Reply #9 on:
2004-03-01 04:33:33 » |
|
And here is the WebStart version:
Excellent. But i have a problem with JWS.
The keyboard and mouse events dont work in Java Web Start.
I noticed there was a security exception when webstart tried to start your game - you should check that out (it might be denying your kb and mouse stuff). I also noticed lots of exceptions being thrown when I tried to click or press mouse buttons. Unfortunately, when I close your app, it kills the webstart console so I lost the errors. But you've at least got some error messages you can check out  .
|
malloc will be first against the wall when the revolution comes...
|
|
|
Games published by our own members! Go get 'em!
|
|
erikd
JGO Kernel      Posts: 2561 Medals: 7
Maximumisness
|
 |
«
Reply #10 on:
2004-03-01 04:49:19 » |
|
1 2 3 4 5 6 7 8 9 10 11 12 13
| java.security.AccessControlException: access denied (java.util.PropertyPermission user.dir read) java.lang.NullPointerException at Game.mouseDown(SpitUp.java:257) at java.awt.Component.handleEvent(Unknown Source) at java.awt.Component.postEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) |
Get a whole lot of the NPE's. I think you should grant more permissions so that this property can be read. Erik
|
|
|
|
Herkules
JGO Kernel      Posts: 1522 Medals: 1
Friendly fire isn't friendly!
|
 |
«
Reply #11 on:
2004-03-01 05:10:46 » |
|
Very special and outdated case: Spitup.exe doesn't start on NT4. Leaves a process that has to be killed.
Astonishing enough: starting the jar works after it complains about a missing dll entry (outdated DX version I assume).
Ok, I'll agree you don't have to care too much about NT4....
|
|
|
|
|
|
blahblahblahh
JGO Kernel      Posts: 4575
http://t-machine.org
|
 |
«
Reply #13 on:
2004-03-01 06:10:36 » |
|
¿Any test in MacOS X or Linux Systems?
Works fine on linux now, except...every 5 seconds it pauses for about 5 seconds at a time, completely frozen. When it's working, it's very smooth and fast, so my best guess is this is a problem with playing sounds (linux's sound system is utter crud, some java games do this some of the time with sounds  I don't know what exactly they do wrong, but it only happens to particular games, so I guess it's something consistent in the coding?) PS I do hear a few sounds, e.g. when I start the game, and jump. Normally if it's a sound porlbme in linux, you hear nothing whilst it hangs for a few seconds.
|
malloc will be first against the wall when the revolution comes...
|
|
|
jrnovoa
JGO n00b  Posts: 12
Java games rock!
|
 |
«
Reply #14 on:
2004-03-01 06:29:35 » |
|
Hi. I think the pauses in game, is due to the Java garbage collector. ?? The audio is in .wav format,, and now is included in the .jar file. Thanks for the help. 
|
|
|
|
|
blahblahblahh
JGO Kernel      Posts: 4575
http://t-machine.org
|
 |
«
Reply #15 on:
2004-03-01 06:58:38 » |
|
Hi. I think the pauses in game, is due to the Java garbage collector. ??
No, there is almost never such a problem; that is a myth these days. The audio is in .wav format,, and now is included in the .jar file.
That seems to have fixed the hanging - works fine now on linux. Couple of suggestions: - don't make the guy bounce in at the start, or else make it so he's invulnerable whilst buoncing. Several times I died because he bounced onto something and killed himself. - the combination of sliding all the time and the way the jump works makes it feel like you're not actually in control, which is really annoying. Doesn't seem like you really have much choice over where your character goes. - You could start the level with a single intro screen which said something like "shoot the mosquitos, and collect them when they drop- but don't hit the bee!" at the moment it takes a while to work out what you are supposed to catch and waht to avoid 
|
malloc will be first against the wall when the revolution comes...
|
|
|
jrnovoa
JGO n00b  Posts: 12
Java games rock!
|
 |
«
Reply #16 on:
2004-03-01 07:20:37 » |
|
yes thanks.
The game is very basic. My only intention at the moment is test the Java performance in various systems.
I think to modify the player mobility and some bugs, and put bonus in the mosquitoes, more lives, temporaly helmet for the whispes, more force on jump, etc... and of course the option for save the scores.
Thanks for your sugestions, lather I upload the game to gexengine page.
thanks again
|
|
|
|
|
swpalmer
JGO Kernel      Posts: 3438 Medals: 4
Where's the Kaboom?
|
 |
«
Reply #17 on:
2004-03-01 07:22:03 » |
|
Works on Mac OS X 10.3.2 JRE 1.4.2_03.
But it is very hard to control.
|
|
|
|
jrnovoa
JGO n00b  Posts: 12
Java games rock!
|
 |
«
Reply #18 on:
2004-03-01 07:32:37 » |
|
Thanks. ¿the imput keys and the speed of the game works ok? great notice. 
|
|
|
|
|
erikd
JGO Kernel      Posts: 2561 Medals: 7
Maximumisness
|
 |
«
Reply #19 on:
2004-03-01 07:35:34 » |
|
Hi.
I think the pauses in game, is due to the Java garbage collector. ??
Are you using java.applet.AudioClip by any chance? Erik
|
|
|
|
swpalmer
JGO Kernel      Posts: 3438 Medals: 4
Where's the Kaboom?
|
 |
«
Reply #20 on:
2004-03-01 07:58:05 » |
|
Thanks. ¿the imput keys and the speed of the game works ok? great notice.  If anything the game runs too fast (Odd for Mac). It is hard to control because the player bounces around so fast.. that and the general chaos of all those bugs (the buzzing, biting kind - not in code  ) The keys are working.
|
|
|
|
princec
« League of Dukes » JGO Kernel      Posts: 8089 Medals: 96
Eh? Who? What? ... Me?
|
 |
«
Reply #21 on:
2004-03-01 08:13:43 » |
|
Got it working. Waaay too fast for me! Runs real smooth though. Inspiron 8200, Nvidia, XP, 2GHz, JRE1.5beta. Cas 
|
|
|
|
jrnovoa
JGO n00b  Posts: 12
Java games rock!
|
 |
«
Reply #22 on:
2004-03-01 08:38:51 » |
|
Are you using java.applet.AudioClip by any chance?
Erik
Hi. Yes I use: URL audiob = Game.class.getResource("blop"); blop = Applet.newAudioClip(audiob); cheers
|
|
|
|
|
blahblahblahh
JGO Kernel      Posts: 4575
http://t-machine.org
|
 |
«
Reply #23 on:
2004-03-01 08:44:46 » |
|
URL audiob = Game.class.getResource("blop");
Aha.... PS If you can send me a screenshot etc today I'll be doing an update of the page in about 4 hours time, otherwise it could be a week before I get around to doing another update. PPS Will I get to 1k posts before Cas reaches 2k? And...is this something either of us should be proud of? 
|
malloc will be first against the wall when the revolution comes...
|
|
|
jrnovoa
JGO n00b  Posts: 12
Java games rock!
|
 |
«
Reply #24 on:
2004-03-01 08:49:36 » |
|
Got it working. Waaay too fast for me! Runs real smooth though. Inspiron 8200, Nvidia, XP, 2GHz, JRE1.5beta. Cas  Sorry  I low the Thread speed in the next release. And the speed of the mosquitoes cheers
|
|
|
|
|
AndersDahlberg
Full Member   Posts: 196
|
 |
«
Reply #25 on:
2004-03-01 09:34:29 » |
|
Now this is interesting, do you not need security permissions for network access etc? Out of the sandbox type stuff?
Kev
Nah, I only tried to keep it simple - guess I should have said it was the same case as with applets (i.e. connection to the host where the code was downloaded from should still be ok IIANM  BTW, the game looks ok here (linux) - didn't try the sound though (no speakers atm 
|
|
|
|
|
erikd
JGO Kernel      Posts: 2561 Medals: 7
Maximumisness
|
 |
«
Reply #26 on:
2004-03-01 09:36:03 » |
|
Yes I use: URL audiob = Game.class.getResource("blop"); blop = Applet.newAudioClip(audiob);
Try using javax.sound.sampled.Clip instead. It helped for me to get rid of little pauses everytime a sound starts. Erik
|
|
|
|
blahblahblahh
JGO Kernel      Posts: 4575
http://t-machine.org
|
 |
«
Reply #27 on:
2004-03-01 09:43:18 » |
|
Try using javax.sound.sampled.Clip instead. It helped for me to get rid of little pauses everytime a sound starts.
Erik
FYI it's fine at the moment - smooth, fast, and no delay on the sounds - ever since he bundled the sounds in the JAR AFAICS.
|
malloc will be first against the wall when the revolution comes...
|
|
|
erikd
JGO Kernel      Posts: 2561 Medals: 7
Maximumisness
|
 |
«
Reply #28 on:
2004-03-01 13:19:34 » |
|
Yes, tried again. Works lovely, no pauses. I suck at it though 
|
|
|
|
jrnovoa
JGO n00b  Posts: 12
Java games rock!
|
 |
«
Reply #29 on:
2004-03-02 01:25:38 » |
|
Thanks for all. ¿Any help about the use of javax.sound.sampled.Clip? cheers. 
|
|
|
|
|
|