Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (686)
Games in Android Showcase (197)
games submitted by our members
Games in WIP (758)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Games Center / 4K Game Competition - 2014 / Re: Judging results on: 2014-03-21 18:56:55
As „the newbie“ I want to express my gratitude to all those people who contributed this year to the 4k competition.
It was a nice experience for me.

Although there are not so many entries this year, I had a lot of fun playing them.
As a contributor I learned, that it’s not so easy to make a 4k game.
The source code does not show all the work you have to do for the competition.
You have to make a description, an icon, some advertising in this forum, the compression and so on.
If you didn’t code a 4k game before, it’s easy to underestimate the work.

I’m sure that reviewing the games is a lot of work, too. Thus, I want to say thank you to the judges.
With “In The Dark 4k” we have a worthy (and expected) winner!
(After I saw Gef's game, I was just a step before kicking my game in the trash...)
But now, I’m very proud of my second place.

It’s a little bit sad, that only 11 Persons voted this year.
Is this normal or is it a sign that the interest in the event descend?

Last but not least I owe thanks to some people who helped me.
In my case the HTML-Code for the website does not work. But Appel helped me, so I want to thank him.
And of course I want to say thanx to everyone who helped me downsizing my game so I could implement my radar. Especially Gef brought a breakthrough.

All in all, you are a nice community.

By the way: how can I link my game with my profile?

Have a nice day/night (wherever you are)
2  Games Center / 4K Game Competition - 2014 / Re: Raid On Java 4K on: 2014-02-22 18:42:31
@Gef: You are soooo coooool!!!  Cool
It works and I uploaded the new version to Java4k!
I dropped a note in the source.

Here is a screenshot:

I’ll analyze the results of the tools later. I’m curious which tool is the booster. But first I’m really happy that the radar is in the game.  It’s an eye candy and useful for the gameplay.

Again, thank you very much to all. I have learned a lot.
3  Games Center / 4K Game Competition - 2014 / Re: Raid On Java 4K on: 2014-02-16 20:49:12
First many thanks to all for the tips.

I tried the tip with the binary gfx data. For that, I had to modify my rotation algorithm a little bit. It turns out, that the char data with the old routine can be compressed better than the binary data with the new routine. In total the original char data is 88 Bytes smaller.

I made some tests with joined arrays but I can’t get smaller results. Because of my limited spare time I don’t want to invest in this way. Nevertheless thank you very much.

At the end I combined the suggestions from Gef and Harm (Gef optimized the cockpit away  Roll Eyes) and won 11 Bytes  Grin.

Here is the source:

I think the secret are the compression tools.

Here are my results (with intermediate results):
Original JAR: 11.228 Bytes
(JARG exists with an exception, so I dropped this step.)
After Proguard: 5.512 Bytes
After Pack200 (without compression): 8.966 Bytes

Now I tried 4 different compression tools on the pack200 result:
KZIP: 4.306 Bytes
7Zip: 4.294 Bytes
BJwflate: 4.260 Bytes
Zopfli: 4.240 Bytes

At the end I used deflopt on every result:
KZIP: 4.287 Bytes
7Zip: 4.290 Bytes
BJwflate: 4.258 Bytes
Zopfli: 4.240 Bytes (winner)
You said you can reach 4080 Bytes. Which parameters do you use with the tools? How does your proguard file look like? Do you have magic tools?

I tried to use your 4k utilities on Sourceforge, but I’m not clever enough to handle all this ant stuff. I was not able to setup a runnable build structure in eclipse. In the read me file you described how to create a build structure. But I can’t integrate your tools and I can’t make a build.xml. Maybe I have not enough background information.
4  Games Center / 4K Game Competition - 2014 / Re: Raid On Java 4K on: 2014-02-10 19:15:10
Nice action-packed game! Love the explosions. Smiley
Thank you! The explosions are the only eye candy that survived Roll Eyes
5  Games Center / 4K Game Competition - 2014 / Re: Raid On Java 4K on: 2014-02-10 19:00:11
I have made some experiments with my compression chain. But I can’t shrink my game as good as Gef.
Especially kzip and bjwflate have not the effect as hoped.
But I found the tool zopfli from google. This tool has good results.
Maybe the weak spot of the compression chain is elsewhere? Maybe my proguard settings are not optimal?

You can found my pro-file here:

As announced I uploaded 3 sources.

This is the original 4k-Source:

This is the 4k-Source with radar:

And finally the full featured version:

Here are my compression results (with immediate data):

Original JAR: 10.541 Bytes
After JARG: 5.400 Bytes
After Proguard: 5.328 Bytes
After Pack200 (without compression): 8.586 Bytes

Now I tried 4 different compression tools on the pack200 result:
KZIP: 4.084 Bytes
7Zip: 4.061 Bytes
BJwflate: 4.103 Bytes
Zopfli: 3.980 Bytes

At the end I used deflopt on every result:
KZIP: 4.075 Bytes
7Zip: 4.056 Bytes
BJwflate: 4.103 Bytes
Zopfli: 3.980 Bytes

Original JAR: 11.274 Bytes
After JARG: 5.749 Bytes
After Proguard: 5.679 Bytes
After Pack200 (without compression): 9.083 Bytes

Now I tried 4 different compression tools on the pack200 result:
KZIP: 4.396 Bytes
7Zip: 4.364 Bytes
BJwflate: 4.389 Bytes
Zopfli: 4.262 Bytes

At the end I used deflopt on every result:
KZIP: 4.377 Bytes
7Zip: 4.360 Bytes
BJwflate: 4.387 Bytes
Zopfli: 4.262 Bytes

Original JAR: 12.754 Bytes
After JARG: 6.410 Bytes
After Proguard: 6.357 Bytes
After Pack200 (without compression): 11.114 Bytes

Now I tried 4 different compression tools on the pack200 result:
KZIP: 4.920 Bytes
7Zip: 4.907 Bytes
BJwflate: 4.951 Bytes
Zopfli: 4.874 Bytes

At the end I used deflopt on every result:
KZIP: 4.898 Bytes
7Zip: 4.904 Bytes
BJwflate: 4.950 Bytes
Zopfli: 4.874 Bytes

Maybe these information are useful for someone else.

@Gef and moogie:
It would be great if you have a good idea to save the radar.
Otherwise I think I’ll implement some minor gfx effects into the last bytes I won with zopfli.
Anyway I thank you for your support.

6  Games Center / 4K Game Competition - 2014 / Re: Raid On Java 4K on: 2014-02-02 19:40:06
Wow, this is a nice offer!

That would help me to learn the tricks of 4k programming.

But please do not invest too much free time. I would get a bad conscience.

@moody: you should make you 4K entry finished first. Time is running and I'm curious.

I think the radar is the most valuable feature for the gameplay, too.
I could send you in total 3 sources. I could send you the original 4k source, one with all features and one with the radar. With this, you can compare the sources and find the differences easily.
But first, I have to translate my German comments.

How may I send you the sources? Would you pm me your email addresses?

By the way, my compression chain looks like this:
Compiler -> JAR -> Proguard -> Pack200 -> 7zip -> deflOpt
7  Games Center / 4K Game Competition - 2014 / Re: In The Dark 4K on: 2014-02-01 21:12:17
Hey, the button suddenly appear. I will give it a try...
8  Games Center / 4K Game Competition - 2014 / Re: Raid On Java 4K on: 2014-02-01 21:06:13
Thank you for your nice feedback.

I’m not very proud of the “grey-square-factories”. And really, deleting the features brought me close to tears…
Here are two screenshots from the full featured game:

Ok, it’s still “programmer art” and not really beautiful. But landing pads look different...
Unfortunately, after my compression chain the file size is 4888 Bytes.

Level 12 is the point where you have to change the tactic.
You cannot just rush to the factories and bomb them.
First, you have to take care of the jets.
Anyway, I think you hold the high score.

I wonder who can complete the game.
9  Games Center / 4K Game Competition - 2014 / Re: Treasure Hunt 4k on: 2014-02-01 21:02:42
I like your map generator. I wish my islands in “Raid On Java 4K” would look as nice as yours.
10  Games Center / 4K Game Competition - 2014 / Re: In The Dark 4K on: 2014-02-01 21:00:32
I cannot find the “appreciate”-button.
Thus, I give you this medal  Grin

11  Games Center / 4K Game Competition - 2014 / Re: In The Dark 4K on: 2014-02-01 20:44:16
Great graphics!
I like the story connection to your former game.
12  Games Center / 4K Game Competition - 2014 / Raid On Java 4K on: 2014-01-29 18:40:43

My name is Felix and I’m new here.

I want to introduce my little action game “Raid on Java 4K” for the Java 4K contest.
You can play it on

Here are some Screenshots:

It’s a 4K version of the good old C64 game “Raid on bungeling bay” by Will Wright, which I really enjoyed in my childhood (Now you can guess my age Smiley ).
Of course it has fewer features. Anyway, I hope you will enjoy it.

Some features of the game are:
  • Heatmap Explosions
  • A lot of jets with a pretty nice AI
  • Defense towers
  • 16 Levels
  • Multidirectional Wraparound Scrolling

During the developing, I concentrated on the features and do not pay attention to the size. Unfortunately there are some features I had to cut off at the end:

  • A radar
  • Some water effects
  • Better looking factories with smoking chimney. Now there are only grey squares (*sigh*).
  • Better looking aircraft carrier
  • Better AI of the defense towers
  • Score counter

I hope, that I deleted not the wrong features and you’ll have a lot of fun.

I stumble over the java 4K contest while I read the Wikipedia entry about Markus Persson. I was curious and so I study the source code of “Left 4K Dead”. To be honest, I implemented the way how Notch handled the sprites and the sprite rotation in “Raid on Java 4k”, please forgive me.

In the end, I wish you happy dogfighting… and which level can you reach?

Pages: [1]
roseslayer (374 views)
2016-08-06 11:43:29

roseslayer (342 views)
2016-08-06 09:43:11

xTheGamerCodes (418 views)
2016-08-04 15:40:59

xTheGamerCodes (409 views)
2016-08-04 15:40:24

orrenravid (761 views)
2016-07-16 03:57:23

theagentd (836 views)
2016-07-11 14:28:54

Hydroque (927 views)
2016-07-06 05:56:57

Hydroque (972 views)
2016-07-03 08:52:54

GrandCastle (783 views)
2016-07-01 09:13:47

GrandCastle (634 views)
2016-07-01 09:09:45
Rendering resources
by Roquen
2016-08-08 05:55:21

Rendering resources
by Roquen
2016-08-08 05:52:42

Rendering resources
by Roquen
2016-08-08 05:50:38

Rendering resources
by Roquen
2016-08-08 05:49:53

Rendering resources
by Roquen
2016-08-08 05:32:39

Making a Dynamic Plugin System
by Hydroque
2016-06-25 00:13:25

Java Data structures
by BinaryMonkL
2016-06-13 21:22:09

Java Data structures
by BinaryMonkL
2016-06-13 21:20:42 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‑
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!