Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (539)
Games in Android Showcase (132)
games submitted by our members
Games in WIP (603)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 2 3 [4] 5 6 ... 11
  ignore  |  Print  
  J4K  (Read 49334 times)
0 Members and 1 Guest are viewing this topic.
Offline Markus_Persson

JGO Wizard


Medals: 16
Projects: 19


Mojang Specifications


« Reply #90 - Posted 2005-01-31 04:45:04 »

Quote
If it had been a free movement engine similar to Wolf3D, then I think we all would have been toast. Wink


Hunters4k. Wink I'm not saying anything more yet.

Play Minecraft!
Offline mlk

Junior Devvie




Muppet!


« Reply #91 - Posted 2005-01-31 05:31:25 »

Quote

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... Cheesy
Quote
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.

Offline jojoh

JGO Knight


Medals: 5
Projects: 7


games4j.com


« Reply #92 - Posted 2005-01-31 08:23:28 »

Quote
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  Smiley So rule is, midi is fine if check is done for soundbank?

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline jbanes

JGO Coder


Projects: 1


"Java Games? Incredible! Mr. Incredible, that is!"


« Reply #93 - Posted 2005-01-31 11:26:51 »

Quote

I guess you are guilty of kicking off this whole 4K craze, so you can set the rules as you see fit  Smiley 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.

Quote
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". ;-)

Java Game Console Project
Last Journal Entry: 12/17/04
Offline mlk

Junior Devvie




Muppet!


« Reply #94 - Posted 2005-01-31 11:36:32 »

Quote

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

*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! Cheesy

Offline jbanes

JGO Coder


Projects: 1


"Java Games? Incredible! Mr. Incredible, that is!"


« Reply #95 - Posted 2005-01-31 12:16:07 »

Quote

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!  Shocked

Java Game Console Project
Last Journal Entry: 12/17/04
Offline mlk

Junior Devvie




Muppet!


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

Offline kevglass

« JGO Spiffy Duke »


Medals: 212
Projects: 24
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


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

Kev

Offline oNyx

JGO Coder


Medals: 2


pixels! :x


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

弾幕 ☆ @mahonnaiseblog
Offline kevglass

« JGO Spiffy Duke »


Medals: 212
Projects: 24
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


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

Junior Devvie




Muppet!


« Reply #101 - Posted 2005-01-31 20:53:40 »

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

Offline jbanes

JGO Coder


Projects: 1


"Java Games? Incredible! Mr. Incredible, that is!"


« Reply #102 - Posted 2005-01-31 21:39:27 »

Quote
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. :-)

Java Game Console Project
Last Journal Entry: 12/17/04
Offline oNyx

JGO Coder


Medals: 2


pixels! :x


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

But I think I'll try it for my current project (if there are enough left over bytes at the end Wink).

弾幕 ☆ @mahonnaiseblog
Offline CaptainJester

JGO Knight


Medals: 12
Projects: 2
Exp: 14 years


Make it work; make it better.


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

Note: My official submission will not be webstarted of course, cause that takes up too much space.  Grin

Offline mlk

Junior Devvie




Muppet!


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

Offline mlk

Junior Devvie




Muppet!


« Reply #106 - Posted 2005-02-02 05:53:50 »

Swarm locks up every no and again.  Embarrassed

Offline Markus_Persson

JGO Wizard


Medals: 16
Projects: 19


Mojang Specifications


« Reply #107 - Posted 2005-02-02 06:05:21 »

Quote
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. =/

Play Minecraft!
Offline jojoh

JGO Knight


Medals: 5
Projects: 7


games4j.com


« Reply #108 - Posted 2005-02-02 08:08:16 »

Quote
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  :-/

Offline CaptainJester

JGO Knight


Medals: 12
Projects: 2
Exp: 14 years


Make it work; make it better.


« Reply #109 - Posted 2005-02-02 11:24:09 »

Quote

Swarm locks up every no and again.

Quote

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

Once I have found the problem, I will post the fix.

Thanks for trying it out.

Offline CaptainJester

JGO Knight


Medals: 12
Projects: 2
Exp: 14 years


Make it work; make it better.


« Reply #110 - Posted 2005-02-02 17:44:29 »

Quote



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

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.

Offline oNyx

JGO Coder


Medals: 2


pixels! :x


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

弾幕 ☆ @mahonnaiseblog
Offline kevglass

« JGO Spiffy Duke »


Medals: 212
Projects: 24
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #112 - Posted 2005-02-03 12:25:53 »

Woogley, are you planning to update the games list at the end now?

Kev

Offline kevglass

« JGO Spiffy Duke »


Medals: 212
Projects: 24
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #113 - Posted 2005-02-04 18:00:29 »

Yes, Yes, Yes.. I know, I said I wasn't going to.. but I'm addicted. I present to you Neb4k:

The Roundlings (read circles) have been invaded by the Evil Red Squares (so called because of their colour, shape and disposition) who have occupied the most sacred Roundling temple - the Tower of Ovals. As Ben a young Roundling adventurer you must climb the tower to free the magic within.

Webstart:
http://www.cokeancode.com/games/4k/neb4k/neb4k.jnlp
Jar:
http://www.cokeancode.com/games/4k/neb4k/neb4k.jar
Main-Class:
N

Level designer, screenshots and stuff available at: http://www.cokeandcode.com/games/4k/neb4k

Kev

Offline woogley
« Reply #114 - Posted 2005-02-04 18:00:41 »

Quote
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 Tongue). The list will be updated this weekend (probably Saturday morning)
Offline CaptainJester

JGO Knight


Medals: 12
Projects: 2
Exp: 14 years


Make it work; make it better.


« Reply #115 - Posted 2005-02-04 23:15:36 »

Quote


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

Offline woogley
« Reply #116 - Posted 2005-02-05 16:15:05 »

Quote

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!
Offline jbanes

JGO Coder


Projects: 1


"Java Games? Incredible! Mr. Incredible, that is!"


« Reply #117 - Posted 2005-02-06 14:45:03 »

I'll go ahead and make Robotron 4096 an official entry. More info can be found here:

http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=Announcements;action=display;num=1106594902

Download here:

http://java.dnsalias.com/4k/robotron/Robotron4096.jar

Java Game Console Project
Last Journal Entry: 12/17/04
Offline kevglass

« JGO Spiffy Duke »


Medals: 212
Projects: 24
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #118 - Posted 2005-02-06 15:20:18 »

I'll add IsOlation net to my entries too Smiley

More info: http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=Announcements;action=display;num=1107636900

Jar is here: http://www.cokeandcode.com/games/4k/onet/onet.jar
Main-Class: O

Kev

Offline Morre

JGO Knight


Medals: 2
Projects: 10


I'm Dragonene on IRC.


« Reply #119 - Posted 2005-02-06 15:56:11 »

http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=Announcements;action=display;num=1107621967
http://forum.java.sun.com/thread.jspa?threadID=579342&start=75&tstart=0

For Fetrisk4k / Fifteen4k... just in order to make sure they're officially posted.

EDIT:
FetRisk:
http://www.x2d.org/java/4k/FetRisk4k.jar
Fifteen:
http://www.x2d.org/java/4k/Fifteen4k.jar

EDIT 2:
Webstart:
Clickrisk: http://www.x2d.org/java/4k/clickrisk.jnlp
Fetrisk: http://www.x2d.org/java/4k/fetrisk.jnlp
Fifteen: http://www.x2d.org/java/4k/fifteen.jnlp

Pages: 1 2 3 [4] 5 6 ... 11
  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.

rwatson462 (36 views)
2014-12-15 09:26:44

Mr.CodeIt (29 views)
2014-12-14 19:50:38

BurntPizza (61 views)
2014-12-09 22:41:13

BurntPizza (98 views)
2014-12-08 04:46:31

JscottyBieshaar (58 views)
2014-12-05 12:39:02

SHC (74 views)
2014-12-03 16:27:13

CopyableCougar4 (76 views)
2014-11-29 21:32:03

toopeicgaming1999 (136 views)
2014-11-26 15:22:04

toopeicgaming1999 (127 views)
2014-11-26 15:20:36

toopeicgaming1999 (37 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

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
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!