Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (697)
Games in Android Showcase (202)
games submitted by our members
Games in WIP (767)
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 ... 172
1  Java Game APIs & Engines / Engines, Libraries and Tools / Re: JOML 1.8.0 Release on: 2016-10-24 11:56:53
It is accessible without a switch or a module import when the runned Jar is not a Jigsaw module.
So, people can still use their application and JOML on JDK9 unchanged.
Actually, no. You have to force this module to be exported, I had to use this even though I don't package my software as a module:
--add-exports jdk.unsupported/jdk.internal.ref=ALL-UNNAMED
2  Java Game APIs & Engines / Engines, Libraries and Tools / Re: JOML 1.8.0 Release on: 2016-10-23 12:52:37
Yes, I did. It compiles fine on 1.9 Build 140. Java 9 will not remove sun.misc.Unsafe. Probably 10 will.
Sorry but it has already been moved into a module (jdk.unsupported) only accessible by using a switch:

And even if it did, JOML can still for a very long time build the CI builds on JDK8, and the MemUtilUnsafe class will not be loaded at runtime if it was detected that sun.misc.Unsafe is not available. So, _running_ JOML on any Java 1.4 compatible JVM is fine, even if it does not support sun.misc.Unsafe.
You're right but have you looked at a replacement for Java 1.9 even though there is no hurry?
3  Java Game APIs & Engines / Engines, Libraries and Tools / Re: JOML 1.8.0 Release on: 2016-10-20 11:38:31

KaiHH, I'm almost sure it won't compile with Java 1.9:

Have you ever tried to compile JOML with an early build of Java 1.9?
4  Games Center / Contests / Re: JAVA4K GAMES DOWNLOAD on: 2016-09-19 11:06:54

I advise you to run your JAR in command line first (java -jar GTA4K.jar). Check that you created a manifest file with the Main-Class attribute as I said earlier and ensure that you added it into the JAR. My method works, I succeeded in playing with GTA4K and it has the advantage of being future-proof (there was an error in SHC's code, he wrote setPositionRelativeTo instead of setLocationRelativeTo).

I don't see how helps. It works with Procyon. I gave you all the necessary steps.
5  Games Center / Showcase / Re: Break-It: an old school Breakout clone! on: 2016-09-17 21:26:14
It's between 400 and 600 in the title screen. Your game is simple but it looks really polished, I really hope that you'll fix this bug. I'll give it a try under Windows later.
6  Games Center / Contests / Re: JAVA4K GAMES DOWNLOAD on: 2016-09-17 19:53:55
Even the fresh source code(not replace anything) i got this error:
Use an editor that supports UTF-8 or use "Save" in JD-GUI.

Personally, I still get tons of compile errors but not the same than Bogart. Both Java Decompiler and CFR produce wrong source code.

Im keep getting erorr and error while full code please.
I won't post the full source code without the prior consent of the copyright owner but I'll do my best to help you out. SHC's suggestion works if you use the unmodified .class file and write another class with a main method except if you use a version of Java without applet support which will be the case of Java 1.10 in a far future.

P.S: It works with Procyon!!!!
java -jar procyon-decompiler-0.5.30.jar -jar GTA4K.jar

My changes in the source code:
< import java.applet.Applet;
> import java.awt.Panel;
> import java.awt.Dimension;
> import javax.swing.JFrame;
> import java.awt.BorderLayout;
< public class A extends Applet implements Runnable
> public class A extends Panel implements Runnable
<             if (!this.isActive()) {
<                 break;
<             }
>             //if (!this.isActive()) {
>             //    break;
>             //}
>     public static void main(String[] args) {
>     JFrame frame = new JFrame("GTA-4K");
> frame.setResizable(false);
> frame.setLocationRelativeTo(null);
> frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
> A panel = new A(); // Assuming this is the class name, haven't checked
> panel.setSize(new Dimension(800, 600));
> panel.setPreferredSize(new Dimension(800, 600));
> frame.setLayout(new BorderLayout());
> frame.add(panel, BorderLayout.CENTER);
> frame.setVisible(true);
> frame.pack();
> panel.start();
> }
7  Games Center / Contests / Re: JAVA4K GAMES DOWNLOAD on: 2016-09-17 11:17:45
Use Java Decompiler to open the JAR and get the source code of the class A. Copy the source code into a file named

import java.applet.Applet;

import java.awt.Panel;

public class A
  extends Applet
  implements Runnable

public class A
  extends Panel
  implements Runnable

At the end of the class before the last closed bracket '}', insert this:
public static void main(String[] args) {
    JFrame frame = new JFrame("GTA-4K");


A panel = new A(); // Assuming this is the class name, haven't checked
panel.setSize(800, 600);




java A
and you're done. If you want to make a JAR, don't forget to add a manifest file MANIFEST.MF containing at least:
Main-Class: A

use this to create the new JAR:
jar cmf MANIFEST.MF GTA4K.jar A.class

Do NOT republish the whole source code without the prior consent of the author, SimonH.
8  Games Center / Showcase / Re: Break-It: an old school Breakout clone! on: 2016-09-16 23:21:44

The sound works without any trouble under Mageia Linux 5, I hear the music and the effects. I get about 60 UPS and 600 FPS but the game seems to be very jerky, it drives it almost unplayable. It's like tons of frames are missing when the ball moves, it makes it hard to follow.
9  Games Center / Contests / Re: JAVA4K GAMES DOWNLOAD on: 2016-09-16 23:11:14
Use SHC's source code + replace java.awt.Applet with java.awt.Panel or javax.swing.JPanel both in GTA4K and in SHC's source code. You can use jd-gui to decompile GTA4K. I've looked at its source code, the class extends Applet and implements Runnable. N.B: Rather use setSize(800, 600); as it is the expected hardcoded size.

If you use SHC's suggestion without mine, it will work with Java >= 1.9 but not with Java 1.10. Keep in mind that you cannot reupload the class files elsewhere without the prior consent of the copyright owner. If you do something with the code, keep it for you. Some developers explicitly forbids republishing modified versions of their games even though they release their code, it's the case of "notch" alias Markus Persson for his game "Breaking the tower" and maybe Miners4K too.

Maybe we should contact SimonH, the author of GTA4K.
10  Games Center / Contests / Re: JAVA4K GAMES DOWNLOAD on: 2016-09-16 12:55:07
@Bogart You're welcome. You can post the HTML source code if you want to help the newbies Wink Actually, as long as I don't have the authorization of the authors, I won't start implementing another launcher, I respect the authors' rights. If you need some help to make GTA4K work without applet support, let me know (this might help).
11  Games Center / WIP games, tools & toy projects / Re: Defend the caves on: 2016-09-16 08:59:49

the game does not run on windows 10?
I've just tested, it crashes under Microsoft Windows 10 when I click on "Play" with the Nvidia driver n°353.30, I have the same stack trace than VaTTeRGeR. By the way, Simn, please put everything into the JAR to avoid such exceptions when double-clicking on the JAR:
Exception in thread "LWJGL Application" com.badlogic.gdx.utils.GdxRuntimeException: Couldn't load file: assets/spritesheet.png
        at io.github.simengangstad.defendthecaves.Game.init(
        at io.github.simengangstad.defendthecaves.Game.create(
        at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(
        at com.badlogic.gdx.backends.lwjgl.LwjglApplication$
Caused by: com.badlogic.gdx.utils.GdxRuntimeException: File not found: assets\spritesheet.png (Internal)
        at com.badlogic.gdx.files.FileHandle.readBytes(
        ... 8 more

VIrtueeL, maybe you could run the game in command line to confirm whether you have the same problem, "the game does not run" isn't very accurate, is it?
12  Java Game APIs & Engines / Engines, Libraries and Tools / Re: Starting game development, need guidance? on: 2016-09-15 22:50:23
Really?  persecutioncomplex There is no such class in any famous 3D Java framework.
13  Games Center / Contests / Re: JAVA4K GAMES DOWNLOAD on: 2016-09-15 22:30:11

Use this link to get the pack.gz file of GTA4K:

Decompress this archive:
gunzip GTA4K.pack.gz

Use unpack200 on the .pack file to obtain the JAR:
unpack200 GTA4K.pack GTA4K.jar

Make a small HTML web page containing an applet using GTA4K.jar and use its URL with the applet viewer, it should work.

If I could, I would wrap the applet into a software and package it with JNDT so that you would just have to get the executable and run it. Maybe it would be a nice project to help people to go on playing these games. appel, would it be legal?

P.S: There is already the Java4k launcher. The prior authorization of the authors is required to (re)publish or (re)upload the games elsewhere.
14  Discussions / General Discussions / Re: Comparison between 2 IDE's - Netbeans and Eclipse on: 2016-09-13 11:20:07
Well there is a difference between having a viewpoint and shoving it into every discussion you possibly can.
I'm sure you met some really political people or vegans like that. Tongue
Using an IDE whose full edition is entirely open source is important for me and was very useful for example when I tried to understand some bugs and limitations of SWT and Eclipse RCP (I used them in a software at work). It gives me a chance to fix the bugs by myself without having to resort to reverse engineering and to contribute, which I have done several times for Netbeans and Eclipse.

I rarely post on JGO, especially this year. My comments aren't off topic. Please respect my freedom of speech. Your accusation is unfair and I think that the problem isn't "having a viewpoint and showing it in every discussion" but rather the fact that you disagree with me. Lots of people don't realize that what they express show their political opinions maybe because they mostly agree with the current economic system, I don't blame them for showing them and imperialists can loudly express their viewpoints everywhere. Why should I refrain myself from showing my viewpoint in every discussion? I explained my thinking about Netbeans and Eclipse and why I don't use IntelliJ IDEA. I compare things that can be compared, i.e Eclipse & Netbeans with IntelliJ IDEA "Ultimate Edition". I remind that I program a bit in HTML, JavaScript, CSS and PHP too which is possible in Netbeans, Eclipse and IntelliJ IDEA but only in its commercial edition as far as I know. There is the same limitation for JavaEE:
15  Games Center / Contests / Re: JAVA4K GAMES DOWNLOAD on: 2016-09-09 19:26:08
The URL looks like this for GTA4K:

but something prevents you from downloading the JAR. I can reinstall IcedTea Web OpenJDK plugin and try to look for the downloaded JAR. Maybe Appel can tell us how to work around this problem.
16  Games Center / Contests / Re: JAVA4K GAMES DOWNLOAD on: 2016-09-09 12:12:32

They are packaged as applets, you cannot run them as softwares or applications, you have to use an applet viewer. You can download them by analysing the source code to get the URL of the JAR. I don't think that you break the rules except if you don't respect their terms of use. I tried to find a solution but something prevented me from using "applet.php" with the game identifier.
17  Games Center / WIP games, tools & toy projects / Re: First Recon - Small Online First Person Shooter on: 2016-09-08 09:00:10

Building it from scratch
Not totally from scratch. As far as I remember, he used the source code of the latest MD3 importer I wrote, he found a bug and he contributed back Smiley

Good job orange451  Grin Where do your models come from?
18  Discussions / General Discussions / Re: Comparison between 2 IDE's - Netbeans and Eclipse on: 2016-08-31 11:28:09
To be honest, on newest Ubuntu (16.04) Eclipse is so unstable that it is almost impossible to use it, and not possible at all without switching back to old GTK 2... While NetBeans and IntelliJ are still working perfectly good. Smiley
I'm under Mageia Linux 5 and I use KDE. I hope that I'll get rid of those problems.

Biggest project I took part in so far was +/- 7m LOC split into 16 projects - both Eclipse and NetBeans are able to handle that, but Eclipse seems to often have problems with layout and stability (especially when navigating to new class), while NetBeans takes considerable amount of time to start (2-3 minutes on PC with HDD only and 32 gb RAM) and still processes things in a background for few more minutes.
Both are able to handle that but I find Eclipse more responsive than Netbeans on my least capable machines (bought between 2004 and 2008).

I said that!  Wink  All three have a liberal open-source license that allows for commercial extension.  There are commercial products built on top of all three.  It doesn't make the community edition any less open-source!  It does make it a little less well featured.  Grin
Sorry, maybe I misunderstood your comment. I have the impression that the community edition of IntelliJ IDEA has less features than the free of charge versions of Netbeans and Eclipse according to some comments above and actually, I'm happy enough with Eclipse despite its flaws.

I would accept to pay for a commercial edition if it gave access to its full source code.
19  Discussions / General Discussions / Re: Comparison between 2 IDE's - Netbeans and Eclipse on: 2016-08-31 11:08:13
I fail to see how it (community edition) is any less open source than the other two.
It's only the community edition.
20  Games Center / Android Showcase / Re: Morrowind on Android on: 2016-08-31 11:06:50

SwampChicken, Java3D remained almost frozen (a few community fixes) for years when Sun abandoned it until Harvey tried to resurrect it and I ported it to JOGL 2. I understand philjord's position, he was reluctant to switch to another engine or scenegraph API, he didn't want to ruin his efforts and I know that porting some code to another engine can take a long time. There are a very few APIs similar to Java3D, the last commit for Xith3D was done in December 2014, ...

Hopefully if I can get my work back into the core of Java3D I might be able to give it a new breath of life for other developers.
There is no need to use a conditional instruction Wink In my humble opinion, you should split your contributions into several smaller and more manageable pieces. I suggest you to make a pull request with the changes about the OpenGL ES pipeline. Then, we can solve your problems with the drawable based on NEWT. After that, we can fix the Android specific aspects and finally, we can push the first pre-version of Java3D 1.7.0 with all your changes. There is no shame in asking for help. However, things have changed a lot in the latest ten years, there is no room for another challenger in the 3D Java area, what we have done for Java3D just extends its life (or postpones its death, depending on the viewpoint), Android support will be a very appealing feature but it won't be enough to compete with other famous engines and the problem is a bit the same for some other frameworks and engines supporting JogAmp except JMonkeyEngine and LibGDX. I expect a consolidation with few competitors rather than a diversification. It's up to us to choose how it will happen so that you'll be able to go on working on Morrowind on Android without having to rewrite everything.
21  Discussions / Miscellaneous Topics / Re: HTML/CSS Is Gross on: 2016-08-30 22:08:28
Be the change you want to see
Excellent citation of the Mahatma Gandhi:
22  Discussions / General Discussions / Re: Gamedev group chat on Skype cloud, meet other game devs for networking on: 2016-08-30 20:17:45

I don't want to use Skype, sorry Microsoft Grin

Long life to free software... and I don't use the softwares provided by a corporation that dares to disparage (some) developers! I don't like software patents, G+ no thanks  Tongue
23  Discussions / General Discussions / Re: Comparison between 2 IDE's - Netbeans and Eclipse on: 2016-08-30 20:13:21

Handles very large projects well
I have used Eclipse and Netbeans on projects composed of between 1 and 3 millions lines of code for more than ten years, I find Eclipse more scalable but when things go wrong, Netbeans seems to behave more smartly, it tells me "lengthy operation in progress..." instead of freezing and crashing. I find Netbeans generally more stable even though it's not my favourite IDE whereas I think that Eclipse has become less and less stable under GNU Linux since its fourth version, I have some nasty drawing problems sometimes, the error lines are reported on the wrong tab, the same for the todo and fixme notices, some parts of the code become invisible whereas the most important and basic features in Netbeans just go on working. I prefer Eclipse project layout because it's simpler, the files ".project" and ".classpath" are often enough for my needs. WindowBuilder (Eclipse) and Matisse (Netbeans) are both good.

I will never use IntelliJ IDEA because it's not open source. It's not a matter of price as I consider that work must pay and I have done some donations the last ten years.
24  Game Development / Newbie & Debugging Questions / Re: How to handle transitions between game states on: 2016-08-28 00:10:05

Maybe my schema and my short explanation can help you:

I use the Fettle API, it's used in Candy Crush too.
25  Games Center / Android Showcase / Re: Morrowind on Android on: 2016-08-24 23:52:49
Yes, it exists thanks to philjord and thanks to JOGL 2 (Java3D >= 1.6.0 exclusively relies on JOGL). Java3D 1.7.0 will include his OpenGL ES pipeline. As philjord said, Java3D is tightly bound to AWT, making it work with NEWT requires some deep redesign but it allows to share a lot of source code on mobile and desktop environments, the OpenGL ES pipeline will probably be usable not only under Android. This is the fulfilment of our vision in the JogAmp community, a single set of tools to target all major operating systems in mobile and desktop environments, and that's the main reason why JOGL has its own windowing toolkit.

philjord's stuff is impressive  Grin
26  Discussions / Miscellaneous Topics / Re: There is no hope on: 2016-08-24 00:56:24
You're not forced to undergo those reviews. I prefer staying away from Google Play and Google Chrome Web Store, I even removed my game from numerous websites because I disagreed with the moderation. I understand that tons of end users don't even imagine that they can download and install softwares on their smartphones without those centralized "app stores" but this is what I'd like to change. Moreover, I don't see the interest of selling a game at the very reasonable price or giving it for free when you receive non-constructive bad reviews.

I agree with Catharsis. The "competition" is flawed when some games sell their users to advertisers because those users perceive those games as "free" whereas they aren't.
27  Java Game APIs & Engines / Engines, Libraries and Tools / Re: JGLOOm - Loading Every File Format for Every OpenGL Lib* on: 2016-08-18 21:45:33
I'm concerned now about Vecmath libraries, as a lot of those libraries use a proprietary vecmath solution...
Proprietary? It's under GPL v2 with Classpath exception (i.e non viral):

What did you mean exactly?
28  Game Development / Newbie & Debugging Questions / Re: Getting null pointer trying to load texture with LWJGL 3 w/ runnable jar on: 2016-08-18 21:34:26
Seems like distribution is better suited for packaging everything into one executable file.
Do you plan to distribute your game as a single JAR despite the known limitations?
29  Discussions / General Discussions / Re: About The Mario Clone on: 2016-08-18 21:22:41
Gouessej, I think you see me as a guy who wants to sell something using copyrighted elements, but it's not the case at all,
my goal as i said is just to improve my development skills
That's why i posted it on a Java forum,  I just wanted to have feedbacks from experimented developers, discussions about patterns used to develop a 2D game ...

In addition if someone wants to adapt its sprites to the clone, why not Smiley

No I don't see you as a guy who wants to sell something, I respect the fact that you want to improve your development skills, I just claim that either a developer agrees with the licensing terms of an artwork or some code and (s)he can use it, or (s)he mustn't use it (even though I'd prefer everyone including big corporations to release their artworks under free sharing licenses), it's very simple, isn't it? It has nothing to do with commercial projects, selling anything, ... You can simply rename your game "Maryo" to avoid trademark infringement and you can release the source code of your game under an open source / free software license without the copyrighted content so that someone else can reuse your stuff, it's an excellent idea.
30  Discussions / General Discussions / Re: About The Mario Clone on: 2016-08-18 11:53:04
Links to downloads that contain copyright material arent illegal mr gouessej, only the content is illegal.
Quote from: gouessej
post aren't giant walls of text
Come on, they're practically essays.
TheMeatMan, numerous forums used mainly to share illegally copyrighted contents have been closed (in France too) whereas they didn't host the contents but only links to download them. I cannot explain and give numerous examples because you would accuse me of writing essays, this one (in French) is a pertinent example. DPStream and at least 16 forums used to share links to pirated contents were blocked and closed in 2013. You go on making false peremptory claims and please try avoiding to misspell my pseudonym.

Springrbua, I think that an artist who puts her/his artworks under a free sharing license might be happy to learn that someone uses them in a kind of Mario if the terms of the license are respected, this is what I suggested. Cloning a copyrighted game while insisting on cloning its copyrighted contents too is a bad idea to me.

ziozio, it's not only a personal risk as it involves JGO. Where is the limit concerning the authors and the copyright owners? If you don't want to respect the licensing terms of a content, don't use it, it's simple, do I need to write an essay for that?
Pages: [1] 2 3 ... 172
theagentd (21 views)
2016-10-24 17:51:53

theagentd (22 views)
2016-10-24 17:50:08

theagentd (22 views)
2016-10-24 17:43:15

CommanderKeith (38 views)
2016-10-22 15:22:05

Roquen (42 views)
2016-10-22 01:57:43

Roquen (55 views)
2016-10-17 12:09:13

Roquen (56 views)
2016-10-17 12:07:20

Icecore (69 views)
2016-10-15 19:51:22

theagentd (333 views)
2016-10-04 17:29:37

theagentd (336 views)
2016-10-04 17:27:27
List of Learning Resources
by elect
2016-09-09 09:47:55

List of Learning Resources
by elect
2016-09-08 09:47:20

List of Learning Resources
by elect
2016-09-08 09:46:51

List of Learning Resources
by elect
2016-09-08 09:46:27

List of Learning Resources
by elect
2016-09-08 09:45:41

List of Learning Resources
by elect
2016-09-08 08:39:20

List of Learning Resources
by elect
2016-09-08 08:38:19

Rendering resources
by Roquen
2016-08-08 05:55:21 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!