Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (754)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (842)
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
1  Java Game APIs & Engines / JInput / Re: How to get or compile JInput 2.0.7 platform specific binaries ? on: 2017-06-10 15:10:59
I have been trying to for 2 hours but I can't for the life of me build it.

I don't have a C/C++ compiler. Do I need one?

Can someone build the windows 64 bits dlls please?
2  Java Game APIs & Engines / JInput / How to get or compile JInput 2.0.7 platform specific binaries ? on: 2017-06-09 17:51:11

I am a noob for building C/C++ binaries Cry . I need JInput Windows files for the latest JInput 2.0.7. I can't find them on the net. I found the Java API here

But compiled binaries for each platform are not to be found Stare . Can someone please compile the windows 10 binaries Smiley ? Or explain me how to do it lol.

Yes I don't use a build tool. I manually link everything within Eclipse.

I bought a new Ilyama touchscreen with 10 touch points and my current JInput setup (2.0.5) does not detect any touches, even though it detected a SiS HID Touch Controller. Hopefully the latest version will.  Smiley

3  Game Development / Newbie & Debugging Questions / Re: Multi thread Memory Visibility inside Synchronized keyword on: 2016-11-04 19:48:49
Look up "memory barriers".

Cas Smiley

This is insane. I am not so sure I can deal with the multi thread engine. I wanted 3 threads. 1 for user input, 1 for simulation, 1 for rendering. And I don't want to put the synchronized keyword on every single method.

I am educating myself right now.

Just a few links for the record.

Dissecting the Disruptor: Demystifying Memory Barriers
4  Game Development / Newbie & Debugging Questions / Re: Multi thread Memory Visibility inside Synchronized keyword on: 2016-11-04 18:34:43
Any reader thread will not be guaranteed to see the 10, because they do not really synchronize with the writing thread, and therefore a reading thread may read the value before main() is called.
In other words: The writing and the reading thread must synchronize on the same object in order to establish a happens-before relation (including memory visibility).


I understand that thank you. The happens before. But my concern is the synchronize flushes back to memory.
Imagine there is a field
public volatile boolean was10Written = false;

This field is accessible by any thread

now I modify the method to

 public synchronized void run2() {
      was10Written = true;

Will the 10 be visible to other threads checking on was10Written as true?

I want to know if synchronize flushes back to main memory when statement closes. From the answers I got, it seems the answer is no but maybe. It will only be guaranteed to flush back when another lock is aquired. That would make sense from the performance implementation point of view. This prevents the JVM from flushing everytime a sync statement closes.
5  Game Development / Newbie & Debugging Questions / Re: Multi thread Memory Visibility inside Synchronized keyword on: 2016-11-04 15:49:41
I am trying to wrap my head about it. In my gaming engine, Render State is shared between threads. It is a HEADACHE!

Visibility is a matter. Threads may update stuff and that stuff stays in the CPU cache and the main memory is not updated.

I bolded the most relevant condition for true visibility. There is of course the volatile keyword as well.

I can't quote it all. The forum won't let me.

Changes to fields made by one thread are guaranteed to be visible to other threads only under the following conditions:

    A writing thread releases a synchronization lock and a reading thread subsequently acquires that same synchronization lock.

    In essence, releasing a lock forces a flush of all writes from working memory employed by the thread, and acquiring a lock forces a (re)load of the values of accessible fields. While lock actions provide exclusion only for the operations performed within a synchronized method or block, these memory effects are defined to cover all fields used by the thread performing the action.
6  Game Development / Newbie & Debugging Questions / Multi thread Memory Visibility inside Synchronized keyword on: 2016-11-04 11:50:48
I am using multiple threads.. To better understand an issue, I need an answer to this rethorical question

I posted it on stack

I have two classes.

One class is just a container for a integer value with get and set synchronized methods.

public class Sync {
   private int dataSync;

   public synchronized int getDataSync() {
       return dataSync;

   public synchronized void setDataSync(int data) {
      dataSync = data;

The other classes is similar. It is just a container for a integer value with get and set methods without synchronization.

public class NotSync {

   private int dataNotSync;

   public int getDataNotSync() {
      return dataNotSync;

   public void setDataNotSync(int data) {
      dataNotSync = data;

Now my rhetorical question is "is 10 value guaranteed to be visible to all other threads" at the end of the run method.

public class RunSync {

   public static void main(String[] args) {
      RunSync rs = new RunSync();;

   private NotSync dataNS;

   private Sync    dataS;

   public RunSync() {
      dataS = new Sync();
      dataNS = new NotSync();

   public synchronized void run() {
      //Question A: is 10 value guaranteed to be visible to all other
      //threads when method exits?
      //we are inside a synchronized block aren't we?
      //so all writes must be flushed to main memory

7  Games Center / Featured Games / Re: Blocks That Matter on: 2012-06-06 22:05:16
yes of course Smiley

Seems nice. But i never was a fan of 3D isometric action games.

Slow RPGs are fine. But fast games like Sonic 3D (Mega-Drive) are not fun, especially on a PC keyboard.

In Bastion, i felt straight away I would forever be annoyed of moving in middle directions compared to Up/Down/Left/Right.

I need a gamepad.

but anyways I prefer dark and mysterious games. Limbo fits the bill perfectly. I feel the urge to play it. Bastion, I can't bother. Seems like the usual boring hack and slash. I prefer playing flat RPGs like Shining in the Darkness.

Limbo makes me think of Another World / Out of this World. For me Limbo repaid me the bundle's price.
8  Discussions / General Discussions / Re: Does really game development on Java suck? Why are we still here? on: 2012-06-06 21:46:49
Hehe I'm not as passionate about it but I agree with longino Grin

I agree with you and longino. I did some C# programming. Vusual Studio SUCKKKKKKKKKKKKKS. I HATEEEE IT. I WANT TO KILL. I feel like a claustrophobic idiot in a cave.
9  Games Center / Featured Games / Re: Blocks That Matter on: 2012-06-06 20:46:41
i bought the current bundle.

Limbo is really great
10  Games Center / Featured Games / Re: Blocks That Matter on: 2012-06-06 16:46:58
Kinda dead thread Sad

But yes, those numbers are real. The pay-what-you-wish is pretty successful, the Humble Bundle has been around for a while now. As you can see, this game isn't in the bundle anymore.

why not? Where can you get the bundle with Blocks that Matter?

Do you need an internet connection to play the bundle ? FYI I will never buy a game like Age of Empires online that will be unplayable when the editors decide to pull the plug the server.

OK: i got the info needed at
11  Games Center / Featured Games / Re: Blocks That Matter on: 2012-06-06 16:38:05
The games is also now part of the Humble Voxatron Bundle, pretty nice bargin IMO.

A quick comment on humblebundle?

Sounds awesome. Never heard of it. Sounds a nice business model. Transparency on the prices. WOW. Are those numbers for real? 400k sells?
12  Games Center / Featured Games / Re: Pixel Towers - Android / Desktop Game on: 2012-06-06 15:49:06

Downloaded. Extracted on my PC desktop. Run it. Played it!

Great game with nice music.

There is an annoying problem though. When you double click the mouse during play, the game ends and goes straight back the the menu. really sucks when in the heat of the game because of a mis double-click.

happens to me most of the time. and you lose your highscore screen.. Sad

I would also like a Up and Down scrolling of my tower during the highscore Smiley and why not an export to JPG Smiley
13  Game Development / Game Mechanics / Re: elliptic trigonometry problem on: 2011-06-25 19:01:06
hey thx for asking. I still haven't managed to do that one.

It is for drawing shapes of leaves. A simply ellipse does not look like a leaf.

So let's say I want a leaf with 10 pixels on the left, 15 pixels on the right (for a total of 25 pixels in width). Leaf is say 100 pixel in length/height.

I decided to model half a leaf as an ellipse cut by a vertical line.

This is what I do for drawing half a leaf

I know the top point of the leaf. topX,topY (can be modeled as point M in figure)
I know the bottom pointer of the leaf, botX,botY

In my case topX=botX. I will do rotations later if needed.

I know that the distance between a and a' in the above image is 10 pixels for the left part.

Once I know a and b of the ellipse, I draw the ellipse correctly offsetted and clipping on the area of half the leaf, it draws the left half of the leave.

It does not matter if there is an unknown. This unknown can be made a parameter for the leaf creation and put into the equation.

I just need this ellipse equation that goes through

(topX,topY) (topX, botY) (vertical line) and (topX + 10, MiddlePointer Between TopY and BotY). This last point is the (Distance(a,a') in the model)

that's for one part. the other part is similar except the other way around.

all I managed to do is draw half a real ellipse and not a truncated one. so maybe I don't model the problem correctly.

thx for your time.
14  Game Development / Game Mechanics / Re: elliptic trigonometry problem on: 2011-06-19 11:22:33
got another problem

consider again the figure above

this time

b' is known (V2)
a-a' is know (V1)

The trick is that a is not know, nor is a'! We only know the distance between them.

Find a and b Smiley

I'm not sure there is a single solution. I guess there will be a formula of b against a.

From the equation x2/a2 +  y2/b2 = 1

I have (a-V1)2/a2 + V22/b2=1

if k = (a-V1)2/a2

b = V2 / sqrt( 1-k )

So here I have formula of b against a but when I draw it on screen it doesn't work.

The idea is knowing M point and its opposite N, draw an elliptic Arc through those 2 points and point a. but center of ellipse is not know.
15  Game Development / Game Mechanics / Re: elliptic trigonometry problem on: 2011-06-18 17:03:38
i'm surprised there is no cosine in the formula.

but that's great.

thx man Smiley

for alpha it sure is easy once you know a' and b'.

16  Game Development / Game Mechanics / elliptic trigonometry problem on: 2011-06-17 16:41:08

please consider this figure

b is known
a is known
a' is known

find b' and alpha

I have been banging my head for one hour and can't find it. need to give it some rest.

knowing a', I need to find the point M's y coordinate.

I have been looking at this pdf but that was too much for me
17  Java Game APIs & Engines / Java 2D / Re: Palette drawing on: 2011-06-17 10:51:03
yea that's an idea.

caching the often used images brings some mixed advantages.

18  Game Development / Performance Tuning / which FP Math library do you use and recommend? on: 2011-06-16 13:42:59

I have found

Do you have any other?

I need to be 100% certain that two hosts compute the exact same value. using the ACOS function and COS function.

19  Java Game APIs & Engines / Java 2D / Palette drawing on: 2011-06-16 11:26:18

I have 100 MB of images that need to be kept in memory.

8 different colors (for up to 8 players) are used with 8 different RGB values (draw units).

Right now my options are

1) create a new image on the fly modifying the Player Color of the base image : CPU consuming

2) Create a copy for each Player Color 100 * 8 = 800 mb

I want to draw those images giving a palette parameter. Wouldn't that be faster?

Is that possible with Swing?


20  Discussions / General Discussions / Re: Raspberry Pi ultra-low-cost ARM based computer (about the size of an USB key) on: 2011-05-23 20:47:56
700MHz ARM11
128MB of SDRAM
OpenGL ES 2.0
1080p30 H.264 high-profile decode
Composite and HDMI video output
USB 2.0
SD/MMC/SDIO memory card slot
General-purpose I/O
Open software (Ubuntu, Iceweasel, KOffice, Python)

not that I care very much but a tweaked J2ME would run without problems. Some Java 1.4 syntax for you though.

21  Games Center / Cube World Projects / Re: World of change on: 2011-04-17 18:37:04

hard to clone the user base heh
22  Games Center / Archived Projects / Re: Stendhal: a free open source multiplayer adventures games on: 2011-04-17 08:57:48
found Stendhal today while looking for a java multiplayer framework.

looks cosy and homely.
23  Discussions / General Discussions / Re: Chrome Web Store on: 2011-04-16 13:52:03
Google has removed one of my answers to a user who complained about the install process, I quoted a bug report of Chrome/Chromium in my reply. Google has a very personal vision of the freedom of expression.

give power to any human being and he will start doing evil.

Gandalf knew it.
24  Discussions / General Discussions / Re: Is java still the way to go? on: 2011-04-16 13:35:54
Visual Studio is a piece is shit.

Features suck. It sometimes is very slow. I hate it when doing some C# and ASP.NET.

The problem with Netbeans is not Java. The problem is the bloated Swing UI. I don't know exactly what's the problem. But everynow and then your mouse pointer hicups. And for example, you cannot play with even simple menus without serious graphical lag.

Dual Screen using Eclipse makes coding fun. (anyone has a triple screen setup ?)
25  Discussions / General Discussions / Java console dev kit? on: 2011-04-01 22:09:40
Does any of you dream of a dev kit for programming games for a console in Java? Any idea if Oracle would be interested? Wink

I'm a 2D guy and never liked 3D except FPS.

I wish I could program games for my Megadrive in Java. Give me a J2ME Game Canvas with pad buttons bit flags, a sound interface and off you go making Mega Drive games clones. There is something completely unique playing with big black 6 buttons Sega pads on an old CRT TV.

If you played Alien Soldier written by Treasure, you know what I'm talking about. FYI there is a company in the UK, still making oldschool RPGs for the Mega Drive. But that's for in know Sega collectors.

Anyways, looking around for a java SDK kit on a console, i found none. But I found this.


You can upload your highscores.

Games for MSX, Arcade and Sega Master System.

Sound emulation of Yamaha sound chip! cool.  Cool

I advice you to check out After Burner 2 Arcade. Amazing 3D effects in 2D. Awesome fast gameplay! in Java emulation! Smiley

Rendering using OpenGL using the LWJGL library

About + source of an old version

26  Java Game APIs & Engines / Java Sound & OpenAL / Re: Anyone tested the Gervill, pure Java softsynth Midi player? on: 2011-03-31 22:28:15
i know

go to

try to download gervill.jar  Huh
27  Discussions / General Discussions / Re: Go on, ask me anything. on: 2011-03-31 22:24:57
jnode lol
28  Discussions / General Discussions / Re: Go on, ask me anything. on: 2011-03-30 23:21:11
1-did you play 16 bits console? Sega or Nintendo?
2-did you play RTS games on the PC?
3-Do you think a 2D online RTS game is possible in Java?
4-How do you debug your code? breakpoints? or sysout or another logger?
5-Do you sleep when you are tired? Do you wake up on demand.
6-What's so bad about JavaSound? MIDI wierd instruments for sound effects?
7-In the Demo, nice effect when Big titan destroys your base. That was the first time I lost. this is the only mission that stroke a good difficulty balance.. I guess it is very difficult to create not too easy, and not too hard levels without being repetitive.
8-in the light of your experience, how do you see the anti piracy battle evolve in the future? Is it worth fighting it? Is the FarmVille model the future?
29  Java Game APIs & Engines / Java Sound & OpenAL / Re: Anyone tested the Gervill, pure Java softsynth Midi player? on: 2011-03-30 10:10:45
is the site down?

tried an old version from sourceforge and it looks pretty good. Smiley
30  Discussions / General Discussions / Re: Eclipse vs. Netbeans on: 2011-03-29 20:18:50
at first (back in 2001) NB fanatic.

then 2004-2011, Eclipse FTW.

Tried NB 6 but can't be bothered. Swing UI is too unresponsive. Loading a menu takes that annoying split second time.

Eclipse on Vista has good looking font with anti-aliasing.
Pages: [1] 2 3
DesertCoockie (20 views)
2018-05-13 18:23:11

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

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

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

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

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

Solater (95 views)
2018-03-17 05:04:08

nelsongames (168 views)
2018-03-05 17:56:34

Gornova (378 views)
2018-03-02 22:15:33

buddyBro (1038 views)
2018-02-28 16:59:18
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!