Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (536)
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 - 2013 / Re: 4King & Country! on: 2013-02-25 20:09:18
Oh thanks for the hint, my implementation looks like the attached one (sorry, i'm atm not at the laptop which i use for java, so it is just the delphi version i got in here).
http://www.java-gaming.org/?action=pastebin&id=435
2  Games Center / 4K Game Competition - 2013 / Re: 4King & Country! on: 2013-02-25 18:59:44
Cool, is it possible to get the source? I mean i was able to decompile it (i'm curious about the perlin noise algorithm, because mine is lousy slow) and to understand it in general, but with the proper variable names it is easier to read.

Regards
PS: Nice idea.
3  Games Center / 4K Game Competition - 2013 / Re: Fuego! on: 2013-02-08 13:19:31
I also like the game, but i agree without the ability of the pirates to shoot back it is a bit boring.

Cheers
4  Games Center / 4K Game Competition - 2013 / Re: Flywrench4k on: 2013-01-18 19:27:36
Quite a nice game, maybe you can create a level editor for it?
I think the speed is too fast, you might better try to slow it down a bit.

Cheers
5  Games Center / 4K Game Competition - 2013 / Re: Limbo-inspired graphics on: 2012-11-29 13:15:27
Awesome, i honestly did not expected such a atmospheric sound and i'm sure it will suite to whatever game you have in mind.
6  Games Center / 4K Game Competition - 2012 / Re: PORT4K on: 2012-05-21 08:55:52
This sounds great Smiley
7  Games Center / 4K Game Competition - 2012 / Re: PORT4K on: 2012-05-06 18:24:47
Hi, is it possible to have a look into the portal source? It would be nice to study it, especially since the java decompiler screwed the decompilation completely up Smiley

Peter
8  Games Center / 4K Game Competition - 2012 / Re: 4k General on: 2012-04-26 11:56:54
What a funny game, is it possible to see the source? Just curious how the AI is working Wink
9  Games Center / 4K Game Competition - 2012 / Re: Mystery Mash [complete] on: 2012-01-09 18:58:53
Hillarious, first i thought hmm this fits in < 1k, but after a while i felt in love with this very unique idea.

 Grin
10  Games Center / 4K Game Competition - 2012 / Re: Galactic Conquest 4K on: 2012-01-08 17:59:27
This might be a bug, if you want to make sure that this does not happen add the following line:

1  
2  
3  
4  
5  
int imgIndex = starOwner[s];
...
// Render ships in orbit
random.setSeed(starSeed[s]);
g.setColor(starColors[imgIndex]); //this one has to be added :)


Oh by the way, i played a bit with some Perlin Noise to create a nice looking space nebulae background. I used this paper as starting point:
http://www.infiniverse-game.com/?p=articles-creating_nebulae.php

It is not that complicated at all and it looks quite cool. Anyway i doubt that this would fit into the existing 4k game..

Regards
11  Games Center / 4K Game Competition - 2012 / Re: Galactic Conquest 4K on: 2012-01-04 16:14:15
Ay, so it is probably a weird result made by the Decompiler - i somehow trust too much into the result of this jad tool, but the one of the pro's is that once you understood the code you know how it works Smiley

http://pastebin.com/kgKbcHu9

Cheers
12  Games Center / 4K Game Competition - 2012 / Re: Galactic Conquest 4K on: 2012-01-04 11:20:26
I often take a deeper look into the java4k games in common, as well as in yours in general. Mainly to get rid of the space monster, but also to simplify the controls (more mouse interactions).
Anyway i got stuck in a common problem i always have and somehow unable to understand.

You use a lot of continue instructions and they are all something like this

while/for loop {
..
instruction
continue;
instruction
..
} //while/for loop

I know how to deal with break/continue commands, but i have no idea what should happen if you add a continue in a loop with no statement limiting the continue execution.
From what i know is that continue breaks the instruction chain and moves back to the loop, while break breaks out of the loop.

But what is if you add a continue like the way you did?

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
while (i2 < i / 30)
              {
                if (i21 < 255)
                {
                  arrayOfInt6[i21] = 4;
                  arrayOfFloat1[i21] = ((i2 + 1) * 10 * 3);
                  arrayOfFloat2[i21] = (i13 + 20);
                  arrayOfFloat3[i21] = 0.0F;
                  arrayOfFloat4[i21] = (128.0F * i1 * 0.85F);
                  arrayOfFloat6[(i21++)] = 1.0F;
                }
                i2++;
                continue; // what is this good for, since the whole code below does not seem to become executed in general, or am i'm wrong?
               i1 = 0;
                while (i1 < 2)

13  Games Center / 4K Game Competition - 2012 / Re: Griefer 4k on: 2011-12-17 14:18:45
Really cool and fun game - what is the spider good for?

Can you publish the source (for learning purposes)?

Cheers
14  Games Center / 4K Game Competition - 2012 / Re: Geom4k on: 2011-12-07 17:17:52
Do you reupload the game (or the source)?

Cheers
15  Games Center / 4K Game Competition - 2012 / Re: TarCraft on: 2011-12-07 10:04:04
Yes i understood that these lines are for moving/attacking units responsible. To be honest i avoid using labels like hell so i have always problems with break and goto labels in general. Anyway especially these lines are confusing because i don't see how this should work:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
while (true) <---?
 if ((other != i) && (unit[other][2] == 0) && (unit[other][14] != 5) && (Math.abs(unit[i][0] - unit[other][0]) < 2) && (Math.abs(unit[i][1] - unit[other][1]) < 2))
              {
                unit[i][14] = 0;
              }
              else
              {
                other++; if (other < unitCount)
                {
                  continue;
                }

                break;

                int other = 0;
                while (true)
                {
...
 other++; if (other < unitCount)
                  {
                    continue;
                  }

                  break label4639; <---?
 
                  unit[i][15] -= 1;
...
 unit[i][14] = 0;

                      break; <---?
..


How is the code working if there is a break inside?
16  Games Center / 4K Game Competition - 2012 / Re: TarCraft on: 2011-12-06 15:43:13
Hi, i have a question with understanding your sourcecode (http://damocles11.byethost9.com/applet/CraftCraft.java).

Somehow i have no idea how the passage between:
switch (unit [ i ][14])

and

g = imgScreen.getGraphics();

is working. Especially the "while (true)" loops do not seem to make any sense.

Regards
17  Games Center / 4K Game Competition - 2011 / Re: Trains 4k on: 2011-05-03 12:51:54
Hi,

is it possible to get the source for the game?

Cheers
18  Games Center / 4K Game Competition - 2011 / Re: Moo4k [Completed] on: 2011-03-22 13:13:48
I did not considered changing the algorithm at all, at least unless i find the reason why the ai is not working similar like in the java original. My guess is that it might be caused by the loops and goto constructs you made. Since i stopped dealing with basic (15 years ago), i tried to avoid labels Wink

The new update code should help a bit, but in my case the fan always start once java is loaded. Its java related i guess Smiley
19  Games Center / 4K Game Competition - 2011 / Re: Moo4k [Completed] on: 2011-03-22 11:26:47
Hey, sorry that your game did not come up to one of the first positions. I love it that much that i ported it to Delphi. No kidding, but the cpu fan on my laptop is extremely nagging while using java.
It seems to be working like the original, but somehow the ai is much too passive. I guess there is some sort of typo, maybe you could have a look?
I uploaded the source and the binary to:
http://www.mediafire.com/?sbhb1n0sjfnql9s

Peter
20  Games Center / 4K Game Competition - 2011 / Re: Moo4k [Completed] on: 2011-02-28 10:47:47
This is simple, extract the .class file from the jar (or if you have a pack'ed version use unpack200 for extracting) and load the file with this tool:
http://java.decompiler.free.fr/?q=jdgui

There are some other decompilers available, but their result is less reliable and readable.

Cheers
21  Games Center / 4K Game Competition - 2011 / Re: Moo4k [Completed] on: 2011-02-27 11:17:26
Javadecompiler produces a quite near to the original code. This does not include the Variablenames and also the Comments are missing, but it helps to understand the application.

Regards
22  Games Center / 4K Game Competition - 2011 / Re: Moo4k [Completed] on: 2011-02-26 11:29:03
Really cool game, a bit way to easy, but i enjoyed playing it. Just a question: Do you have a less cleaned up version somewhere? I tooked a look into the source and its damn hard to read Smiley I really like to improove it a bit for my own, so...

Regards
Pages: [1]
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

CogWheelz (15 views)
2014-07-30 21:08:39

Riven (21 views)
2014-07-29 18:09:19

Riven (14 views)
2014-07-29 18:08:52

Dwinin (12 views)
2014-07-29 10:59:34

E.R. Fleming (32 views)
2014-07-29 03:07:13

E.R. Fleming (12 views)
2014-07-29 03:06:25

pw (42 views)
2014-07-24 01:59:36

Riven (42 views)
2014-07-23 21:16:32

Riven (30 views)
2014-07-23 21:07:15

Riven (31 views)
2014-07-23 20:56:16
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!