Markus_Persson
|
 |
«
Reply #90 - Posted
2005-01-31 04:45:04 » |
|
If it had been a free movement engine similar to Wolf3D, then I think we all would have been toast.  Hunters4k.  I'm not saying anything more yet.
|
|
|
|
mlk
|
 |
«
Reply #91 - Posted
2005-01-31 05:31:25 » |
|
I also wonder what the verdict on midi sound is... Guess that your game uses that Mlk, like Abuses previous entry to a 4K compo?
Err, very like Abuses...  But the midi lib is not part of the distribution is it? Or have they baked that into 1.5?
If that is OK, I need to learn Midi in a hurry Ahh, MIDI. It is included with the JDK (and maybe some JREs, does the Mac/Linux versions include it?), and thus it is kind-of alowed. Mine works fine if the MIDI init fails (only the sound bank is missing from the JRE), which I think is the way to go.
|
|
|
|
jojoh
|
 |
«
Reply #92 - Posted
2005-01-31 08:23:28 » |
|
Ahh, MIDI. It is included with the JDK (and maybe some JREs, does the Mac/Linux versions include it?), and thus it is kind-of alowed.
Mine works fine if the MIDI init fails (only the sound bank is missing from the JRE), which I think is the way to go. I guess you are guilty of kicking off this whole 4K craze, so you can set the rules as you see fit  So rule is, midi is fine if check is done for soundbank?
|
|
|
|
Games published by our own members! Check 'em out!
|
|
jbanes
|
 |
«
Reply #93 - Posted
2005-01-31 11:26:51 » |
|
I guess you are guilty of kicking off this whole 4K craze, so you can set the rules as you see fit  So rule is, midi is fine if check is done for soundbank? Actually, there's always a soundbank installed. The only difference is that the one included with the JRE sounds like crap (and thus needs the upgrade to sound good, or sometimes even make a sound!) while the JDK comes with the high quality bank. Hunters4k. Wink I'm not saying anything more yet. *sigh* This is becoming less of a 4K competition and more of "The Battle of the 3D Titans". ;-)
|
|
|
|
mlk
|
 |
«
Reply #94 - Posted
2005-01-31 11:36:32 » |
|
Actually, there's always a soundbank installed. The only difference is that the one included with the JRE sounds like crap (and thus needs the upgrade to sound good, or sometimes even make a sound!) while the JDK comes with the high quality bank.
Anyone know why? *sigh* This is becoming less of a 4K competition and more of "The Battle of the 3D Titans". ;-)
Aye it is... Bad people doing 3D! 
|
|
|
|
jbanes
|
 |
«
Reply #95 - Posted
2005-01-31 12:16:07 » |
|
Anyone know why [the highest quality soundbank isn't installed]?
Because it would increase the size of the JRE download. The high quality soundbank itself is almost as large as the entire JRE! 
|
|
|
|
mlk
|
 |
«
Reply #96 - Posted
2005-01-31 12:21:09 » |
|
Ahhh... OK.
Mmm, If I understand webstart correctly we can use some kind of <extention...> tag? (don't use this at work, so don't know), can we include the sound bank in that I wonder.
|
|
|
|
kevglass
|
 |
«
Reply #97 - Posted
2005-01-31 12:27:38 » |
|
Surely thats including extra stuff to blow the 4k? If not then I'd like to use the LWJGL extension please  Kev
|
|
|
|
oNyx
|
 |
«
Reply #98 - Posted
2005-01-31 14:25:33 » |
|
The SDK/JDK comes with a soundbank. Therefore I asumed it's ok to use it. Btw my game just blows up if there isn't a soundbank installed.
|
|
|
|
kevglass
|
 |
«
Reply #99 - Posted
2005-01-31 15:06:33 » |
|
I don't have any problem with the soundbank as such.. downloading the extra one is at the users discretion obviously. Using the nice soundbank as standard is a bit close to breaking the 4k limit for my tastes.
Kev
|
|
|
|
Games published by our own members! Check 'em out!
|
|
woogley
|
 |
«
Reply #100 - Posted
2005-01-31 20:28:34 » |
|
soundbank is a wavering issue.. the point of the j4k is to make games that are compatible with a JRE that has no extensions (which unfortunately, LWJGL isn't part of the JRE). Technically the soundbank DOES come with the JRE.. just the "private" (SDK) JRE. Either way I'm pretty sure soundbank or not, you can use some sounds. Someone correct me if I'm wrong.. but I've noticed that the java.applet.AudioClip interface does not require the soundbank.gm file. So you could use that even if your game isn't an applet because Applet has a static method for retreiving AudioClips 1 2
| AudioClip boom = Applet.newAudioClip(getClass().getClassLoader().getResource("boom.au")); boom.play(); |
of course, the downside to this is, ogg/mp3 or custom sound formats aren't supported. You'd be stuck with wav (too big anyway), mid, and au.
|
|
|
|
mlk
|
 |
«
Reply #101 - Posted
2005-01-31 20:53:40 » |
|
Using the nice soundbank as standard is a bit close to breaking the 4k limit for my tastes.
Sorry, should of been clearer, I meant as an extra webstart option: Use this one for the 4k version, use this one if you only have the JRE inistalled, and want sound.
|
|
|
|
jbanes
|
 |
«
Reply #102 - Posted
2005-01-31 21:39:27 » |
|
Either way I'm pretty sure soundbank or not, you can use some sounds. Someone correct me if I'm wrong.. but I've noticed that the java.applet.AudioClip interface does not require the soundbank.gm file. So you could use that even if your game isn't an applet because Applet has a static method for retreiving AudioClips 1 2
| AudioClip boom = Applet.newAudioClip(getClass().getClassLoader().getResource("boom.au")); boom.play(); |
of course, the downside to this is, ogg/mp3 or custom sound formats aren't supported. You'd be stuck with wav (too big anyway), mid, and au. There's nothing saying you can't just use JavaSound. JavaSound supports a whole bunch of common formats, including generating the sound algorithmically! That's actually how I was able to pack sound effects into Defender 4000. All I did was open a sound channel, then pump the results of a few simple loops out to the sound card. The results weren't anything to write home about, but they were on par with the traditional bleeps and bloops of arcade games. And a key point I stressed last year was that Defender 4000 was the only game with sound that didn't use the soundbank. Actually, Abuse's entry was the only other game with sound, so it really was two different implementations duking it out. :-)
|
|
|
|
oNyx
|
 |
«
Reply #103 - Posted
2005-01-31 22:17:07 » |
|
Generating wave data seems to be pretty interesting, jbanes. I just took a look at your defender code and it seems to be even smaller than using midi... duh. Well, for simple sounds it's smaller. In jm4k I'm also changing the volume accordingly to your speed when you bump into the walls or depending on the distance to the explosion.  But I think I'll try it for my current project (if there are enough left over bytes at the end  ).
|
|
|
|
CaptainJester
|
 |
«
Reply #104 - Posted
2005-02-02 00:01:25 » |
|
I have a submission in the works. It is called Swarm. Try it out at http://24.103.107.96/swarm.htmlNote: My official submission will not be webstarted of course, cause that takes up too much space. 
|
|
|
|
mlk
|
 |
«
Reply #105 - Posted
2005-02-02 00:22:52 » |
|
The Webstart does not count towards your 4K limit, as long as it does not include any args to the application, as it is no more than a launcher.
|
|
|
|
mlk
|
 |
«
Reply #106 - Posted
2005-02-02 05:53:50 » |
|
Swarm locks up every no and again. 
|
|
|
|
Markus_Persson
|
 |
«
Reply #107 - Posted
2005-02-02 06:05:21 » |
|
The Webstart does not count towards your 4K limit, as long as it does not include any args to the application, as it is no more than a launcher. Oh.. I use an argument in the webstart of dungeon4k for telling it not to try windowed mode (so the game works without me having to sign the jar). The game works fine without the argument if you run the game with full permissions. Is that ok? btw, I guess I should formally enter the game in here as well, so: I hereby formally enter Dungeon4k into the j4k competition. You can take out the sonicracer one as I'm not going to finish it. =/
|
|
|
|
jojoh
|
 |
«
Reply #108 - Posted
2005-02-02 08:08:16 » |
|
You can take out the sonicracer one as I'm not going to finish it. =/ Darn. I guess I am in the minority, but I actually liked sonicracer better. With some minor tuning I think it should have a really good chance of winning. Even in it's current state it is a good contender and a complete game, so don't take it out! CaptainJester: Swarm locks up for me as well, normally within 10 sec :-/
|
|
|
|
CaptainJester
|
 |
«
Reply #109 - Posted
2005-02-02 11:24:09 » |
|
Swarm locks up every no and again.
CaptainJester: Swarm locks up for me as well, normally within 10 sec :-/
Yeah, as soon as the NullPointerException hits, it freezes. It has something to do with the bullets. If you don't fire too fast, it doesn't happen as often. Unfortunatly you have to fire fast.  Once I have found the problem, I will post the fix. Thanks for trying it out.
|
|
|
|
CaptainJester
|
 |
«
Reply #110 - Posted
2005-02-02 17:44:29 » |
|
Yeah, as soon as the NullPointerException hits, it freezes. It has something to do with the bullets. If you don't fire too fast, it doesn't happen as often. Unfortunatly you have to fire fast.  Once I have found the problem, I will post the fix. Thanks for trying it out. Alright, it looks like it is working now. Please try again. Thanks.
|
|
|
|
oNyx
|
 |
«
Reply #111 - Posted
2005-02-03 02:48:17 » |
|
Just found a little thing... you can use an additional pack200/unpack200 (and then repack) step for peeling some bytes off. It basically does that what an obfuscator could also do - it removes modifiers which aren't needed at runtime. "Some bytes" are 21 in my case. Not much... but it can make or break the limit 
|
|
|
|
kevglass
|
 |
«
Reply #112 - Posted
2005-02-03 12:25:53 » |
|
Woogley, are you planning to update the games list at the end now?
Kev
|
|
|
|
|
woogley
|
 |
«
Reply #114 - Posted
2005-02-04 18:00:41 » |
|
Woogley, are you planning to update the games list at the end now?
Kev I try to update the list on a weekend-basis. I've missed the past few weekends because of some school projects (still in highschool ya know  ). The list will be updated this weekend (probably Saturday morning)
|
|
|
|
CaptainJester
|
 |
«
Reply #115 - Posted
2005-02-04 23:15:36 » |
|
- The presentation (jar, class, or other) does not matter, as long as the code can be directly run from the shell.
If I use pack200, that is ok? You can't run it directly, but you can extract it then run it. So as long as the delivery file is 4k or less?
|
|
|
|
woogley
|
 |
«
Reply #116 - Posted
2005-02-05 16:15:05 » |
|
If I use pack200, that is ok? You can't run it directly, but you can extract it then run it. So as long as the delivery file is 4k or less?
I think Java 1.5 can read JARs that have been archived with pack200, and since 1.5 is the target JRE, I dont see a problem with it. As long as the target JRE can run it from the shell (i.e. double clicking or with java -jar), then it's fine. There should be no unpacking on the user's side edit: the games list has been updated (with 21 games so far!). Let me know if I've missed a game!
|
|
|
|
jbanes
|
 |
«
Reply #117 - Posted
2005-02-06 14:45:03 » |
|
|
|
|
|
kevglass
|
 |
«
Reply #118 - Posted
2005-02-06 15:20:18 » |
|
|
|
|
|
Morre
|
 |
«
Reply #119 - Posted
2005-02-06 15:56:11 » |
|
|
|
|
|
|