Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (578)
games submitted by our members
Games in WIP (499)
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  Game Development / Artificial Intelligence / Re: Can anyone give me an easy ANN exercise? on: 2014-03-05 01:58:34
A classic ANN exercise is an XOR logic gate (that's what I had to do in college anyway). Build an 8 input XOR gate. If you can get a 100% accurate result then you've cracked it.
So, you have 8 inputs and one output. If one and only one of the inputs is 1 then the output is 1, otherwise the output is 0. Good luck!
2  Discussions / General Discussions / Re: JGO coinage tally on: 2014-01-30 02:02:16
Yah, Adwords is evil. They stole £60 off me with 'no appeal'. I still don't know why...
I think a 'Donate' option would be a good idea. Nothing fancy, just an extra tab, but those of us who benefit from the wisdom herein and are doing well might think: 'Cool! Thanks, problem solved! Here's a little token of my appreciation.' and drop a fiver on the site. Why not? No-one gets hurt. Do they?  persecutioncomplex
3  Games Center / 4K Game Competition - 2014 / Re: In The Dark 4K on: 2014-01-06 02:35:44
The voxel/lighting effects are beautiful. Quite something for 4K!
My only grumble is the direction of fire, sometimes I really have to work hard to be firing in the right direction (especially when enemies appear beside or behind me) - couldn't I just fire the way I'm movng? I guess you've done it this way it is for a reason?

Very impressive though! How many voxels are you juggling?
4  Games Center / 4K Game Competition - 2014 / Re: Treasure Hunt 4k on: 2014-01-06 02:16:23
I really like the concept but I've never actually managed to find any treasure!
There's a few low-cost tweaks that I think would help a lot;
Reset - essential!
Map - make the game freeze while you check the map. I found myself keeping the map open as I sailed to look for pattern matches and hitting sea monsters before I knew it Undecided
Dots - are they sandbars? rocks? Anyway, fewer, larger obstacles in those zones would be better.

On a cosmetic note, could you increase the resolution of the land? Smoother edges would really help the immersion value (maybe double the screen buffer size and interpolate?). Maybe some green dots on land for trees?

Nice game!
5  Game Development / Game Mechanics / Re: Generating "True" 2D Perlin Noise on: 2013-12-31 02:18:01
It's really good fun isn't it!

I always call value or simplex noise 'Perlin noise'. I know it's not strictly accurate but I love Ken Perlin's attitude and sheer class. I reckon calling all PRNG noise techniques after him will add to his fame. A great man - cheers Ken!
6  Games Center / 4K Game Competition - 2014 / Re: BUG4BOO on: 2013-12-13 16:55:39
It isn't easy to jump excatly (for me) but I had a nice time with the game!
The jumping does take a little getting used to but it is quite accurate! Click and hold to charge the jump bar then release the mouse to jump to the pointer. Click again to grab hold of plants.
A fully charged bar will let you jump the whole width of the map!  Grin
7  Games Center / 4K Game Competition - 2014 / BUG4BOO on: 2013-12-12 17:25:01
A new twist on an old favorite;

Hope you enjoy playing it as much as I did making it!
8  Games Center / Contests / Re: Discuss the future of 4k contest on: 2013-12-03 01:27:58
OK, sorry I've been a bit stressy about this launcher business but I'm pretty much1 won round now.

Perhaps special recognition award for the best "new comer" entry would help include those who are not considering entering being intimidated by the fantastic entries of the old hands?
Superb2 idea! A 'Best Newcomer' category would be an excellent addition to the contest.

1Nothing to do with one of my games being used for the demo - honest!
2On the J4K website news the word 'superb' has been typoed to 'supberb' - just saying...

9  Games Center / Contests / Re: Discuss the future of 4k contest on: 2013-11-24 03:14:05
I so want this compo to carry on, but I can't see how a launcher do that... asking people to sacrifice personal security for all 4K games seems worse to me than asking them to do so for just one of them.
I spend a lot of time telling people to be careful when they click 'OK', and here's this thread trying to get people to open up their machines to potentially malicious content. Why should they trust us? It's no go for me.
I'm working on a game ATM where all the whole toolchain is pure java but the delivery is javascript/HTML5. It makes sense to me.
Maybe we should split it up - 4K source JS for safeys and 4K applet for dare-devils.
It is JAVAscript after all!
10  Games Center / Contests / Re: Discuss the future of 4k contest on: 2013-11-19 04:14:24
Poor old applets! Cry
How about something like XMLVM where the the compiled java code had to be under 4K (ulp!) but the game would also be available as HTML5, android or iphone? Just a thought...
11  Games Center / Contests / Re: Discuss the future of 4k contest on: 2013-11-15 21:41:25
Is there a way to turn this into an android game contest?
I don't have an android!  Undecided
I still favour Javascript. It runs on android, windows and osx, has no scary security issues and there's plenty of tools & libraries out there.
What's not to like?
12  Java Game APIs & Engines / Java 2D / Re: Re-sizable Target Java Paint on: 2013-10-28 21:14:50
If you wanted 5 rings, how about;
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
g.setColor(Color.cyan);
g.fillOval(x-radius, y-radius, 2*radius, 2*radius);

int nextRadius=(int)(radius-(radius/5)); // reduce radius by 1/5
g.setColor(Color.red);
g.fillOval(x-nextRadius, y-nextRadius, 2*nextRadius, 2*nextRadius);

nextRadius=(int)(radius-(radius/5)*2); // reduce radius by 2/5
g.setColor(Color.yellow);
g.fillOval(x-nextRadius, y-nextRadius, 2*nextRadius, 2*nextRadius);
and so on...
13  Java Game APIs & Engines / Engines, Libraries and Tools / Re: Looking for 3D engine on: 2013-10-23 22:17:24
I'd recommend jPCT. Very easy to use and not too hard to integrate with JBullet for the physics (if you need them).
14  Games Center / 4K Game Competition - 2013 / Re: random seed sequences as a form of data compression on: 2013-10-19 04:08:02
I had a lovely dream where you gave a seed to a PRNG and that generated the next 2 seeds which made the next 4 seeds... and so on... until it made an image...
As Riven says, the tough bit is finding the first seed!
I bet a really good mathematician could devise a convergence system where you worked both ways, finding seeds for pixels and pixels for seeds, improving the approximation every time. Maybe.

Can anyone recall a (possibly fictional) Russian algorithm based on prime numbers where you could get perfect data recovery from something like 23442791-1?
15  Games Center / Contests / Re: Discuss the future of 4k contest on: 2013-09-17 21:58:56
Why not simply have a javascript4K compo? Plenty of compression tools about, instant gratification, runs everywhere... I'd be up for that!
I think depending on libs or a custom JVM might be asking too much of casual players.
16  Games Center / Contests / Re: Discuss the future of 4k contest on: 2013-09-10 02:18:46
If normal users can't use applets, there's no point with the "applets only" rule. We can go back to webstart and see how that shakes things up in terms of window sizes (fullscreen) and such. (I'm inclined to do a "webstart only" contest next just to make it a bit different).
Please, no! Webstart is an even more evil experience than applets, you still get scary pop-ups and then you have to 'uninstall' every single game you play through the control panel? WTF?!
One thing we all agree on: immediate gameplay gratification through java is no-go. To my mind, either we play it as a by-devs-for-devs thing or do something completely different.
Anyway, with the Minecraft and Runescape (is that still going?) phenomena, maybe applets aren't quite the total turn-off we think they are.
Can anyone name a successful game that used webstart?
17  Games Center / Contests / Re: Discuss the future of 4k contest on: 2013-09-09 15:57:05
IMHO the end result has usually been a lot of, well, very crap games.
I disagree! There have been some abysmal entries it's true, but overall I'd say the quality was remarkably high, especially given the constraints.
I was watching a vlogger who set out to find the 10 best LD entries (out of 2700!) and he had trouble actually finding 10 which (in his opinion) had any playability value at all. That's 0.3% 'good' games. I'd give 4K a figure of 10-20% 'good' games, and rarely a contest goes by without at least 1 really top quality game being produced.

I was wondering if it would be possible to make/use a tool which would 'html5-ise' the games...?
18  Games Center / Contests / Re: Discuss the future of 4k contest on: 2013-08-31 02:25:33
I can't think of anything better - Unity 64K? It wouldn't be the same...
I see 4K as a great way to play around with ideas within bounds. I also got a big kick out of trying to do AC, GTA, Far Cry & Skyrim in 4K.
Sure online java's shot itself in the foot then looked down the barrel to see where the bullet came from and shot itself in the face, but it's still a beautiful language to use.
Sod popularity, if we wanted full coverage we'd have to use JS or libGDX or something and the 4K constraint would be null and void.
I say stick with applets for this year. Nothing lasts for ever, so let's make the last days the best!
19  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!
20  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.
21  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?
22  Game Development / Newbie & Debugging Questions / Re: [SOLVED] strange if statement problem on: 2013-05-07 02:40:53
An excellent question! Er... Anyone?  persecutioncomplex
23  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!
24  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!
25  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));
26  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!
27  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
28  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
29  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...

30  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!
Pages: [1] 2 3 ... 32
 

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

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (29 views)
2014-04-15 18:08:23

BurntPizza (26 views)
2014-04-15 03:46:01

UprightPath (41 views)
2014-04-14 17:39:50

UprightPath (23 views)
2014-04-14 17:35:47

Porlus (40 views)
2014-04-14 15:48:38

tom_mai78101 (62 views)
2014-04-10 04:04:31

BurntPizza (122 views)
2014-04-08 23:06:04

tom_mai78101 (221 views)
2014-04-05 13:34:39

trollwarrior1 (188 views)
2014-04-04 12:06:45

CJLetsGame (197 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
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!