Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (408)
games submitted by our members
Games in WIP (293)
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] 2 3 ... 32
1  Discussions / General Discussions / Re: JGO mission on: 2013-05-22 01:07:39
JGO needs a mission like a fish needs a bicycle.
Hang on, I thought our mission was: "To explore strange new libraries, to seek out new algorithms and new methodologies, to boldly go where no coder has gone before". Don't tell me I've been wasting my time - splitting the infinitive isn't easy!
2  Discussions / Business and Project Discussions / Re: The nightmare of taxes, and what can I do about it on: 2013-05-10 17:58:16
And this 60% of tax comes from:
27% general tax on everything you sell for a person
16% personal income tax
2% industry tax
12% if you want to take your money out of the company.
Ok, so you make a game and in 1 year you sell 1000 copies at €20 each and make €20,000.
Take off 27% sales tax leaves €16,300.
Take off 2% industry tax leaves €15,974.
What's left is your personal income and you pay 16% tax leaving you €13,418.

That's 33% tax, not 60%!

It's also unlikely that you'll have to pay sales tax unless you make more than a certain amount (around €170,000 in the UK) in which case you'd only be paying around 17% tax.
3  Game Development / Newbie & Debugging Questions / Re: [SOLVED] strange if statement problem on: 2013-05-07 02:47:12
I knew that! It's still confusing for a beginner though... Maybe there ought to be a compiler warning or something?
4  Game Development / Newbie & Debugging Questions / Re: [SOLVED] strange if statement problem on: 2013-05-07 02:40:53
An excellent question! Er... Anyone?  persecutioncomplex
5  Game Development / Newbie & Debugging Questions / Re: strange if statement problem on: 2013-05-07 02:35:30
It's a gotcha for java.
This prints 'yes' so you kinda expect it to work everywhere;
1  
2  
3  
4  
5  
6  
7  
8  
9  
String s="x";
if (s=="x")
{
   System.out.println("yes");
}
else
{
   System.out.println("no");
}

It's caught me before!
6  Game Development / Game Play & Game Design / Re: Trying to pixelate a section of an image on: 2013-04-18 21:14:15
You can't average colours like that, you have to break them into RGB;
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
int red;
int green;
int blue;

// loop over pp field of (numDots pixels)

  red+=(pixels[i]>>16)&0xff;
  green+=(pixels[i]>>8)&0xff;
  blue+=(pixels[i])&0xff;

// end loop

int averageColour=((red/numDots)<<16)|((green/numDots)<<8)|(blue/numDots);

// loop over pp field

  pixels[i]=averageColour;

// end loop


Edit: On reflection, it might be better just to use the first pixel of the pp field to colour the whole field - faster too!
7  Game Development / Newbie & Debugging Questions / Re: Generating three random booleans on: 2013-04-11 04:18:38
How about;
1  
2  
3  
4  
double rnd=Math.random();
boolean b1=(rnd<=(1f/3));
boolean b2=(rnd>(1f/3) && rnd<=(2f/3));
boolean b3=(rnd>(2f/3));
8  Java Game APIs & Engines / Java 2D / Re: Rotating images, fast? on: 2013-03-19 22:21:35
A trick you could use is to make a spritesheet of the turret image rotated in 10' steps and just draw the one closest to the true rotation value. (You could alternatively generate 36 rotated sprites at runtime and use them in the same way). Not perfect, but very fast!
9  Games Center / 4K Game Competition - 2013 / Re: Judging.. on: 2013-03-11 00:34:59
I really don't envy you guys the task, there's a lot of games there, so if I can help in any way, say, brown envelopes full of cash, obliging young lovers, whatever, just let me know...  Wink
10  Discussions / Miscellaneous Topics / Re: Java blocked on Macs? on: 2013-02-03 05:19:05
Oracle screwed up time after time.
And Sun before them... It makes me weep when people ask me if they should disable java in their browser and I have to say 'yes, unless you really need it', but that's how it is. No 4K games for them!  Undecided
11  Discussions / General Discussions / Re: Screenshot Saturday on a Sunday on: 2013-01-27 17:23:35
Just fiddling around with terrain - that bracken seems a bit green to me...

12  Games Center / 4K Game Competition - 2013 / Re: Rainbow Road on: 2013-01-27 03:06:29
Well made! I like it! Really got that Kart feel - too hard for me though, I can hardly stay on the track!
13  Game Development / Newbie & Debugging Questions / Re: Can someone please explain this to me :) on: 2013-01-19 06:11:32
The pixels array holds the data for the image, so if you change the contents of the array you change the image.
For example;
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
BufferedImage image = new BufferedImage(WIDTH, HEIGHT,
         BufferedImage.TYPE_INT_ARGB);
int pixels[] = ((DataBufferInt) image.getRaster().getDataBuffer()).getData();

for (int i=0; i<pixels.length; i++)
{
    pixels[i]=0xff000000;
}
and then..
render(Graphics g){
 g.drawImage(image..etc)
}


would make the image completely black.
14  Games Center / 4K Game Competition - 2013 / Re: Skyrim 4K on: 2013-01-16 20:47:44
Ok, I've updated the game to give the dragonborn a longer sword-arm which means he can kill the first two foot-soldiers that try to rush him - quite satisfying!

That is your companion. (S)he doesn't do much though except for causing some confusion (I had the same experience as you).

Mike
I think my Lydia is slightly more useful than the real one. I finally parked her at Breezehome after she repeatedly got me killed by being too noisy when sneaking or worse, by randomly running off and stirring up nearby enemies...
To add insult to injury she'd always call out 'Are you lost?' every time I went back there!
15  Games Center / 4K Game Competition - 2013 / Re: Skyrim 4K on: 2013-01-15 22:24:28
Hey Guys, thanks for all the support! I'm glad you enjoy playing it as much as I do!
This is one occasion where I really hit the 4K limit hard - I really wanted to put in the force shout and or firebolts but I just couldn't do it!
I'm getting the message that many of you think it's a bit too hard - should I increase the sword range to make it a little easier?
I must confess I've only ever beaten the game once without dying, so maybe I should!
16  Games Center / 4K Game Competition - 2013 / Skyrim 4K on: 2013-01-15 02:08:15
From 6GB to 4KB? Can it be possible?! It can! Here it is;


Hack your way through armies! Emasculate giants! Get killed by dragons! Acquire an immortal follower! Travel through unique hand-crafted landscapes! It's nearly all here! Have fun!

17  Games Center / 4K Game Competition - 2013 / Re: F4R KRY on: 2013-01-12 17:01:33
Maybe... Are all the other 4K games working OK on that system?
18  Games Center / 4K Game Competition - 2013 / Re: F4R KRY on: 2013-01-12 15:10:28
Very nice graphics and cool idea. Much cooler than the original game.  Grin

But suddely, after a few times, the game started to freeze every time I walked past the first house. This happens every time now, even if I reload the applet.
Strange... maybe it's the sound... does it freeze if you click the mouse while you're in the boat?
19  Game Development / Newbie & Debugging Questions / Re: Problem with perspective on: 2012-12-22 03:04:54
I haven't checked this through thoroughly yet but it looks pretty good to me!
Ra4King you are a star! Many thanks!

Edit: Works a treat - hopefully you'll get to see it in action shortly!
20  Game Development / Newbie & Debugging Questions / (SOLVED) Problem with perspective on: 2012-12-21 20:31:03
Hi Folks,

Can anyone help me with a maths problem I've come up against?
I'm drawing a perspective view of an image so I'm converting screen coordinates to a perspective point on a plane, like so;

tx=screen_x-screen_width/2
ty=screen_y-screen_height/2
tz=(ty+250)/zScale
plane_x=tx*(d/tz)
plane_y=ty*(d/tz)

Sort of ray-casting. This works fine.
My problem arises when I want to reverse the process; to find the screen coordinates for any given coordinates on the plane.
I've covered sheets of paper with scribblings but I can't seem to get it right!
Can anyone point me in the right direction?


21  Discussions / General Discussions / Re: New feature: crackdown on senseless posts on: 2012-12-18 02:26:44
I don't quite get the point you're trying to make. Similarly 'annoying kids' will have the same room to 'grow' here too. Nobody is getting banned.

As for 'yawn', it's so dangerous to have negative feedback. People will feel attacked. Others will 'yawn' posts in revenge. It easily creates tension, or even a hostile atmosphere.
Sorry, of course nobody's getting banned - I meant to say I would have banned him   Cheesy

I'm not sure that negative feedback is such a bad thing though. On the animation forum the other posters did the job by posting "shut up" posts in reply which often lead to troll wars. My point is that a yawn button doesn't create a new post, so nobody cares. I'm sure most people will only 'yawn' pointless posts - if two kiddies want to yawn each other to death that's fine! Give a medal to the winner!
22  Discussions / General Discussions / Re: New feature: crackdown on senseless posts on: 2012-12-18 02:05:54
I dunno... A few years ago I was doing animation and I frequented a forum which had the most annoying ever kid on it: "wow thts gr8!", "Loooool!", " Smiley Smiley Smiley Smiley Smiley Smiley Smiley Smiley Smiley Smiley!" &c. He didn't get banned because the moderation was very light, and eventually he turned out to be really good and got a job with Aardman Animation - one of the top jobs!
Maybe we could have a 'yawn' button as well as an 'appeciate' button? Any poster with a '0 medals, 999 yawns' tag won't get taken very seriously...
23  Game Development / Newbie & Debugging Questions / Re: WHY DOES THIS WORK o.0 on: 2012-12-17 20:47:40
The pixel array is acquired from the image in line 22, modified in lines 69-71 and rendered to the screen in line 73.
The pixel array stores the image data, so changing the pixels automatically changes the image.
24  Games Center / 4K Game Competition - 2013 / Re: F4R KRY on: 2012-12-16 18:27:22
Looks nice! I tried it out though and it made the caves and zipline a rather strange experience when the background went almost completely orange!
25  Games Center / 4K Game Competition - 2013 / Re: F4R KRY on: 2012-12-16 16:47:57
OK, newer version now up with starting instructions!

Sorry if you get a freeze up - I can't reproduce it, even on an old Macbook.

Have you tried a different color than the black for terrain, e.g. beach sand color?
I did try this and it looks great for the beach & jungle but really weird for the water and caves, and if I change the water colour I get an ugly cut-off where the colours join...  Undecided

Also, I reached the end guy, but was out of bullets by that time. I punched him for a while, but that did not seem to have much effect. Do I need bullets to kill the boss?
You can punch but it's hard to aim (click on an enemy's head). It's best to have at least 10 bullets left for Vass - hey, I didn't want it too easy!

26  Games Center / 4K Game Competition - 2013 / F4R KRY on: 2012-12-15 17:33:28
It had to be done! I give you;
There's only one mission and it's a bit short but there's only 3 bytes left...
Hope you enjoy it!

EDIT: [size] tag doesn't work?
27  Games Center / WIP games, tools & toy projects / Re: Heroes' Keep on: 2012-11-27 02:00:07
How do you draw hexagonal maps like that? I mean.. With different heights... Etc.
I would love to see the playtest exactly as it is in java Cheesy
All the code and assets are open source - just hit 'menu->view page source' in your browser.
A hex grid is essentially a distorted square grid so most of the maths is pretty straightforward. Because I'm allowing rotation it does get a bit trickier but in short: once you can draw a 'flat' hex grid then changing the heights isn't hard at all (but then you have to have rotation so your characters don't get hidden by hills).

that's a very nice game, I love it =D
but I found a bug(I'm kinda good to find strange bugs =P), when if I move more than two "blocks" away, and in the middle way I press 'M' to see the map, when I return I can move even further =P
and I kinda can do it many times to move forever xD
see you Wink
edit:
PS: to see the options to move again you just need to rotate the map Wink
Loool! Well found! That's really cool - infinite move points FTW! Er, maybe I should fix that...
Really glad you like it! Any new cards you think would be good? Enemies you'd like to meet?
28  Games Center / WIP games, tools & toy projects / Re: Heroes' Keep on: 2012-11-26 22:10:54
You should port the game to LWJGL Cheesy
I already have! (video here) but I also wanted a 'lite' version of the game for trying new things out, hence this js version.
29  Games Center / WIP games, tools & toy projects / Re: Heroes' Keep on: 2012-11-26 18:03:33
Mate, I can host your .jar and .html for free at my high- quality host, Just PM me and we might get to talk.
Just incase you want a problem-free host.

Sorry if I sound like a freaking advertising bot. But this "Offer" is only for you Smiley
Thanks Kroniz! I've PM'd you.

The game is now back up!
30  Games Center / WIP games, tools & toy projects / Re: Heroes' Keep on: 2012-11-25 21:41:20
I wish I did - all I can get from my ISP is that there's a problem with all homepages. 5 hours so far...  Angry
I'll let you know when it's fixed!
Pages: [1] 2 3 ... 32
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Browse for soundtracks for your game!

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

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (105 views)
2013-05-17 21:29:12

alaslipknot (114 views)
2013-05-16 21:24:48

gouessej (142 views)
2013-05-16 00:53:38

gouessej (138 views)
2013-05-16 00:17:58

theagentd (150 views)
2013-05-15 15:01:13

theagentd (135 views)
2013-05-15 15:00:54

StreetDoggy (178 views)
2013-05-14 15:56:26

kutucuk (201 views)
2013-05-12 17:10:36

kutucuk (202 views)
2013-05-12 15:36:09

UnluckyDevil (208 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.17 seconds with 20 queries.