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]
  ignore  |  Print  
  Joust4k  (Read 2799 times)
0 Members and 1 Guest are viewing this topic.
Offline Dosenbier

Senior Newbie




They EXIST !!!


« Posted 2005-01-14 12:49:48 »

Hi there !

Here is my first game and it's for the 4k contest.
Its a remake of the old game Joust (ATARI).
Grab it here

Any suggestions welcome !

Greets !  Wink

Dose

PS: there was no space for a manifest file, so i included a batchfile.

Nonsense makes the world go round.

Offline jbanes

JGO Coder


Projects: 1


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


« Reply #1 - Posted 2005-01-14 13:24:05 »

Hey Dosenbier,

Great Entry! Here's a few tips for making it smaller so you can cram more stuff:

1. Don't use a package name. In fact, you can save a few bytes by using a single character class name.

2. You can pack a manifest, but you can't use the JAR tool. Just add a file called META-INF/MANIFEST.MF and have exactly three lines in it:
1  
Main-Class: MyMainClass


Note that the last two lines are carriage returns. :-)

3. Make sure you're not using any methods unless they get called REALLY often. Inlining everything tends to save a lot of space.

4. Use a single character name for the GIF file. There's no need for the ".gif" extension, or the joust4K directory.

5. Use the command line version of 7-Zip or KZIP to shrink your JAR file even further. For example, I used the following command on your files:
1  
7z a -mx=9 -tzip joust4k.jar joust4k/Joust4k.class joust4k/joust.gif META-INF/MANIFEST.MF

The result was a 4011 byte file WITH the manifest I described above. Even InfoZip comes up with a 4061 byte file using:
1  
zip -9XJ joust4k.jar joust4k/Joust4k.class joust4k/joust.gif META-INF/MANIFEST.MF


6. If you use a method call, make sure  you use the same form of it everywhere. Redundancy improves compression!

Anyway, hope those tips help. Now if I can get a few gameplay requests in:

- How about some platforms like in the original Joust?
- Can you change the "Space" to "Enter" for starting the game? I keep missing whether I won or not, because I was trying to fly.
- How about a full screen version? You can resize the images on the fly using the version of drawImage() that takes width and height.
- Could you add levels? i.e. The first level has 1 bad guy, the second has two, the third has three, etc.

And in case I didn't say it before, great game! :-)

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 #2 - Posted 2005-01-14 14:05:18 »

Don't for ProGuard obsfucation for shrinking aswell!

Nice game..

Kev

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 #3 - Posted 2005-01-14 14:09:23 »

Quote
Don't for ProGuard obsfucation for shrinking aswell!


Good point, I forgot about that. I personally prefer JoGA myself, but you can use whatever works for you. :-)

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

Senior Newbie




They EXIST !!!


« Reply #4 - Posted 2005-01-14 17:32:56 »

Hey thanks for the tips ! Grin

Currently its fullscreen, has no package and has no methods
(except one for the keyboard input - thanks onyx for his help)

I'm going to use jarg and kzip in the final version.

Platforms are in progress, also different levels (each level will have less plattforms then the one before)

Good idea with using enter for starting...

Next version will be online on monday (i hope so), because i'll not be able to code this weekend (visiting parents...)

Greets !

Dose

Nonsense makes the world go round.

Offline Dosenbier

Senior Newbie




They EXIST !!!


« Reply #5 - Posted 2005-01-17 17:28:09 »

Ok, next Version will be up Wednesday....
no time to code right now....  Sad

Nonsense makes the world go round.

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.

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

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

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

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

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

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

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

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

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

toopeicgaming1999 (32 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!