Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
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 ... 8
1  Game Development / Newbie & Debugging Questions / Re: Setting Up libGDX? on: 2013-01-01 19:47:11
This is one thing I'll never understand about APIs. There's 5 versions of something, and only the oldest versions are acceptable to use. Java 1.7 is great, has lots of new features and is a joy to work with. The reality is nothing supports it (...)

Yeah, this is extremely annoying. It's not something specific to Java though, Python 3 was released in 2008 and it's *still* not supported by many popular frameworks (Django, Google App Engine).
2  Java Game APIs & Engines / OpenGL Development / Re: lwjgl on osx/java7 on: 2012-11-14 19:24:02
You can't even use Java 7 on a lot of Macs as Apple aren't adding Java 7 to <10.7 (...)

Apple aren't going to add Java 7 to anything, they abandoned their Java implementation. Complain to Oracle that they won't support older versions (well, "older", Snow Leopard is like 2.5 years old).
3  Discussions / General Discussions / Re: 3D with Java? on: 2012-08-03 13:02:43
(...) about two or three seconds again ra4king will come to give you the links.

In the end it was 3 hours, but this is still pretty hilarious Cheesy
4  Discussions / General Discussions / Re: Does really game development on Java suck? Why are we still here? on: 2012-05-30 17:49:36
Whats the problem on Mac ? Can't bundle a private vm ? Why ?

Because Apple did not allow you to embed their Java implementation in your application. However, there is nothing preventing you from embedding OpenJDK in a few months, as soon as the following issue is implemented:
5  Discussions / General Discussions / Re: Distribution using maven/launch4j with natives (Slick2D/lwjgl) on: 2012-05-29 20:10:51
Another method I have considered is storing the natives folder in the jar and then when the jar is ran, have it extract the natives to folder to some place like ~/.myapp/natives. This feels like a hacky workaround to me though but if it's a common practice, I'd be open to suggestions on ways to make this method be more robust (should I only do it once? everytime its ran? etc).

This is the approach I'm currently using, but I agree with you that it doesn't feel like a robust solution. I only extract the natives if they are not already present. However, be sure to put the version number in the filenames to prevent everything from breaking when a new version of the native library is released.
6  Discussions / Miscellaneous Topics / Re: Java 8, 9, and 10 roadmap on: 2012-04-12 18:28:51
And I'm also getting the impression that things are moving a little faster now than in the recent past.

If by "the recent past" you mean the last 5 years that won't be too difficult Smiley
7  Game Development / Newbie & Debugging Questions / Re: Yet another game loop >< on: 2011-12-24 11:59:36
Thread.sleep is very inaccurate on most hardware/OSs, use this trick to force the OS to use the high precision timer: (...)

I remember this being brought up a number of times before, but I never read the rationale behind it. Could you explain how creating a daemon thread leads to Thread.sleep() being more precise?
8  Discussions / General Discussions / Re: Using flash within java on: 2011-09-07 19:16:35
Please don't do this, unless you absolutely have to.

I've tried this in 2007, we needed to preview advertisements (which are usually SWFs) inside a Swing application. There are basically two ways to do this. The first is to parse the SWF file, which is what the libraries proposed in this thread attempt to do. Unfortunately this is extremely difficult as the SWF file format is very complex and Adobe provides minimal information on it [1]. The libraries therefore only support a small subset of Flash's features, and the chances of your animation working as it should are minimal.

The other way is to use Flash Player itself to render the SWF, and then displaying the result in a Swing component. This is the approach we used, but it requires a fair bit of platform-specific code, and only works if the user has Flash Player installed. I'm not even sure if it works on all platforms, we only supported Windows in the end. Depending on your needs it might also be too slow.

[1] this is also the reason why the alternatives for Flash Player on Linux are so poor. It's nearly impossible to emulate Flash Player and especially ActionScript with the material Adobe has provided. Depending on
9  Java Game APIs & Engines / Java Sound & OpenAL / Re: How to play a OGG-file ? on: 2011-08-31 12:22:35
I think EasyOGG does a fantastic job of giving you a high-level API over Java Sound. I've used it in a couple of projects between 2007 and now, and never had any problems with it. The fact that there is a thread about its bugs does not mean that you shouldn't use it - look how many threads we've had complaining about Thread.sleep!
10  Discussions / Miscellaneous Topics / Re: Coke and Code on: 2011-08-15 18:33:42
Congrats on the new website. This one looks more like a company website, where the old website was more like a blog. Good luck with categorizing the enormous amount of quality stuff you've produced over the years Smiley
11  Game Development / Newbie & Debugging Questions / Re: html question on: 2011-07-14 15:36:55
(assuming that understand correctly, and that you mean the alignment of the text within the table cell, and not the cell itself)

      <table border="1">
            <td style="width: 100px;">left</td>
            <td style="width: 100px;">left</td>
            <td style="width: 100px; text-align: right;">right</td>
12  Discussions / General Discussions / Re: Bill S. 978 on: 2011-07-05 18:52:37
I'm not sure if the original poster is American, but maybe someone else can explain. What surprises me here is that they want it to make it a felony. As I remember, American law divides crimes into felonies and misdemeanors (which I probably spelled wrong Smiley ). I though that felonies were reserved for serious stuff that becomes part of your permanent criminal record, e.g. in the same category as stealing cars and assault. Making a law that turns 80% of your citizens into criminals is one thing, but this is idiotic. Can anyone confirm whether this is indeed the case?
13  Games Center / Archived Projects / Re: Opposite lock racing, The movie on: 2011-06-22 20:28:13
Looks good graphically, and judging from the video the handling of the car seems fun. Do you plan on adding AI-controlled cars? Or is it going to be just time trial?
14  Discussions / General Discussions / Re: Flash 3D now available on: 2011-06-16 08:06:04
(...) I don't like funny errors, I don't like render artifacts. Flash solves all of these, or at least handles them better.

This is slightly off topic, but I have the debug version of Flash Player installed (because I sometimes do Flash stuff for work), and you would be amazed how many errors advertisements and video players generally produce. One thing Adobe did well was to completely hide errors from the user.
15  Game Development / Newbie & Debugging Questions / Re: Obtaining a usable Url.getFile() from a Resource? on: 2011-06-06 17:08:52
Are there actually any cases where '/' won't work in windows? I just use / everywhere and have never run into a problem. Using File.pathSeparator everywhere is just plain ugly.

Forward slashes work fine on Windows. The only cases where I use the system-dependent path separator are when I need to communicate the path to the user.
16  Games Center / Showcase / Re: CyGear Racing! on: 2011-06-02 10:58:08
Added a custom launcher, so there's no need for scripts. Can you guys test it out and tell me if it works on Linux and OS X?

It doesn't on Mac.
17  Game Development / Newbie & Debugging Questions / Re: Right mouse button on Mac on: 2011-04-25 10:47:55
You could just use control-click on Windows and Linux and alt-click on Mac...
18  Games Center / Featured Games / Re: Pets Vs. Monsters on: 2011-04-23 11:56:14
Unfortunately I'm not able to play it right now, but I must say that the screenshots look great! Kappa, do you know whether they are using LWJGL or just drawing the applet with Java 2D?
19  Discussions / General Discussions / Re: Lots of doors are being closed for Java on: 2011-02-27 16:33:14
1# Java failed on the desktop because Sun never bothered creating an application shop for java applications. You should have been able to launch "Java Control" and find a list of all java applications installed on your desktop and manage them from there. Some kind of  Java OS layer on the top of windows.

That is a very minor (if at all) factor IMO. Flash didn't (and doesn't) have an "application shop" and that didn't prevent it from becoming the de-facto standard for web games.

Agreed. There have basically been two periods when Sun made a serious effort to improve Java on the desktop. The first was around the 1.4 release, and the other was before the release of 6 update 10. In both these time periods the concept of an App Store did not exist yet.
20  Discussions / Miscellaneous Topics / Re: Isn't in java this time around, but my game Cardinal Quest is on 8bitfunding :D on: 2011-01-29 13:21:27
Congratulations, and that is quite a respectable figure, especially in such a short time. How is the figure build up, lots of people giving very small sums, or is the majority from a couple of people?
21  Java Game APIs & Engines / OpenGL Development / Re: OSX: stuck in full-screen after java exception on: 2011-01-09 11:40:14
Actually, Apple provides an API for manually overriding what Command Q does. Take a look at . So you can just exit fullscreen mode when handling the quit event.
22  Discussions / General Discussions / Re: New feature: java syntax highlighting (finally!) on: 2011-01-05 22:53:34
That IE crash happens because you are trying to manipulate the DOM before it has been completely loaded. See Woogley's post for a quick fix.

I'm not a huge fan of jQuery, but at least it takes care of these things for you.
23  Discussions / General Discussions / Re: Scene Graphs: The good, the bad and the ugly on: 2011-01-05 21:51:01
Open source engines don't need to sell anything and since they're not developed with concrete game(s) in mind they spend development on wrong or wrongly done features.

I understand your point, but to put it like that is not really fair. Hibernate is also being developed without a specific (web) application in mind, yet it is used by thousands of companies. I am quite sure that there are open source game engines that are quite good, and that there are commercial engines that are incredibly bad. Unfortunately quality is not the same as popularity, regardless of the licensing a project uses.
24  Discussions / General Discussions / Re: Apache quits Java executive commitee on: 2010-12-11 10:21:56
IE6 has still around 5% in Czech Republic and IE7 about 10%. There are also companies that have 100% IE of one version (including IE6). (...)

These numbers are in the same range as the rest of the world:
25  Discussions / General Discussions / Re: Oracle and Apple Announce OpenJDK Project for OSX on: 2010-11-12 18:11:53
Why didn't those idiots announce it earlier?! It would have saved them lots of negative publicity.

More details from what they will be contributing:


Thank you everyone for the kind words. As Henrik mentions at <>, it has been a long road getting to this point, but I'm glad that we can now make the Java implementation on Mac OS X a public open source project.

We are still working out the details of exactly who will commit what where and into what tree, so please bear with us as we sort out how the initial commit will land, where to report bugs, mailing lists, etc.

To set expectations, the first drop will be effectively a "SoyLatte"-level implementation, but is packaged as a Universal Mac OS X .jdk bundle that can be dropped directly into /Library/Java/JavaVirtualMachines. Over the coming weeks and months, we will be adding pieces and parts of our Java SE 6 implementation to the public project, and will cut over from using an X11-based AWT to a Cocoa NSEvent-based one with a new OpenGL-backed graphics layer.

There are several parts of our Java SE 6 implementation (like the AWT widgets) that are not contributable, in much the same way that several parts of Oracle's implementation are not. However, the vast majority of our Swing Aqua Look and Feel implementation is, as well as the eAWT/eIO API. We intend to host the legacy AWT widget set using lightweight peers, but that work is still in progress.

Cheers all, we look forward to working with you in public!
Mike Swingler
Java Engineering
Apple Inc.
26  Game Development / Newbie & Debugging Questions / Re: ProcessBuilder behaviour on different platforms on: 2010-11-06 14:44:02
Um, did you read the thread properly? Without escaping the spaces it'll fail to get the right jar path on OSX.

That was in the original post, when you were still passing in a single string. I have used Runtime.exec with JAR paths with spaces in them for years, I haven't actually tested the same code with ProcessBuilder but I would be surprised if ProcessBuilder and Runtime.exec behaved differently in this area. And the reason why they take a String[] as input is so that platform-specific stuff such as putting spaces between options, quoting, and escaping are done for you.
27  Game Development / Newbie & Debugging Questions / Re: ProcessBuilder behaviour on different platforms on: 2010-11-06 13:42:45
         if (OsDetect.isMac())
            exePath = exe.file.getAbsolutePath().replace(" ", "\\ ");

No need for that, just throw in file.getAbsolutePath() directly.
28  Games Center / Archived Projects / Re: StarTown Java RPG on: 2010-10-26 16:30:43
I can see the screenshots (from Europe). But... isn't that the beginning of the original Castlevania in the second screenshot?!
29  Discussions / Miscellaneous Topics / Re: "JCP is no longer a credible specification and standards body" on: 2010-10-25 12:55:27
Everyone here (including myself) loved to bash Sun for their complete incompetence in everything related to user-experience, but the negativity with Oracle is starting to reach ridiculous levels. Gosling leaving, JRuby team leaving, JOGL being kicked out, Doug Lee leaving, Apple stopping... when is the last time we had good news?
30  Discussions / General Discussions / Re: XML Parsing - The new way on: 2010-10-25 08:56:13
There must be at least 20 ways of parsing XML Smiley

Has anyone ever used XPath? I know it's supposed to be a query language for XML, but I've never seen it used anywhere in production, despite it being supported by nearly all programming languages' standard libraries.
Pages: [1] 2 3 ... 8
EgonOlsen (76 views)
2018-06-10 19:43:48

EgonOlsen (56 views)
2018-06-10 19:43:44

EgonOlsen (76 views)
2018-06-10 19:43:20

DesertCoockie (256 views)
2018-05-13 18:23:11

nelsongames (156 views)
2018-04-24 18:15:36

nelsongames (155 views)
2018-04-24 18:14:32

ivj94 (896 views)
2018-03-24 14:47:39

ivj94 (157 views)
2018-03-24 14:46:31

ivj94 (809 views)
2018-03-24 14:43:53

Solater (173 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 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!