Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (120)
games submitted by our members
Games in WIP (577)
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 ... 31
1  Discussions / General Discussions / Re: Give me a topic.. on: 2014-10-23 10:41:03
Avoid strawberries.

(just checking changelog for latest OpenJDK release - Avoid strawberries in LogRecord - WTF?  Clueless )
2  Java Game APIs & Engines / Engines, Libraries and Tools / Re: Announce Pure Java HIDAPI on: 2014-10-22 13:43:24
And of course it uses some native libraries, there is no other way AFAIK, but the native libraries are included in your favourite OS.

JNA is not included in the OS though!  That was the crux of my issue before (not the stoopid "pure" argument  Wink ), but making sure people were clear it needs JNA, which is a native library.  Just linking in the JNA jar works most of the time, but there can be issues with the automatic extraction of the native libs.  Don't get me wrong, I like JNA and have made some minor contribution to it, but it's not always headache free to bring into a project.

Incidentally, on some Linux (eg. recent Ubuntu's), installing things like VisualVM will bring in an old version of JNA to the OS that would stop your code working unless it's setting jna.nosys.  OTOH, forcing extraction won't work on some systems.  NetBeans actually uses a renamed JNA native lib to get around both those issues.
3  Games Center / WIP games, tools & toy projects / Re: Meeting Point (2014) on: 2014-10-21 08:36:37
How does one market such a frivolous yet expensive setup? Which parties are willing to spend 5K to entertain a few dozen bystanders? Festivals seem to be a better, more fitting and lucrative market than the street art shown in the video. I imagine 'build it and they will come' doesn't apply here? So how do you do it? Smiley

The initial development was commissioned by a (UK) lottery-funded festival, but in terms of the future we're also looking at involving commercial sponsors and also festivals in the way you mean (there are a lot of festivals that do "street art").  In terms of doing things out on the street, which we enjoy doing (where else can you get young families and street drinkers interacting positively?), then this isn't actually that expensive.  "Frivolous" is a case of perspective - frivolity is a good thing - games are frivolous!  Wink

As for "a few dozen bystanders", that's at any particular time.  This project ran for ~4 hours a night for 4 nights in a busy public square - it was seen by 1000's and 100's of people had a go!
4  Games Center / WIP games, tools & toy projects / Meeting Point (2014) on: 2014-10-20 18:56:01
So, just over a year ago I posted information on a project Digital Prisoner's built called Meeting Point.  Earlier this year we were commissioned to update the project, and we've finally got around to putting up a video of it so I thought I'd share it with you all.  Hope you enjoy!  Grin

<a href=";hl=en_US&amp;start=" target="_blank">;hl=en_US&amp;start=</a>

EDIT - Changed video for short promo version - full video here.


At Digital Prisoners we're interested in creating interactive things for people to play with out in the real world.  Meeting Point is a large-scale interactive projection designed for an urban public space. It uses two infra-red cameras mounted at opposite sides of the space, custom computer software and a large-scale projector.  The work allows the two participants to interact with each other and, through motion detection, with the other audio and visual elements of each section.  For example, the record scratching section allows them to control the spin on screen and the sound of the record by moving from side to side.

Technical Details

Yes, it's Java-based and built using Praxis LIVE (see recent thread).  More details of the technology are in last year's thread.

As you'll see, it's developed quite a lot.  I'm hoping to get some of the GLSL video FX up in the Praxis LIVE sub-graph repo soon.

And I still think it qualifies as a game!  Wink  Mind you, if you want to play with you'll need a large space and ~¬£5k.

5  Game Development / Newbie & Debugging Questions / Re: Best way to iterate through ArrayList? on: 2014-10-16 16:38:01
That thread ended up with an even simpler implementation using no extra space and very cache-friendly, and also has the ability to allow new things to be added to the list while it's iterating:

Ah, nice, I'd forgotten or not read that bit!  Smiley

// This next bit could be implemented more efficiently probably if the list had some sort of truncation method

Subclassing ArrayList and using removeRange(..) might be slightly more efficient?
6  Game Development / Newbie & Debugging Questions / Re: Best way to iterate through ArrayList? on: 2014-10-16 10:15:13
About the loops: GoToLoop's (heh) is better than Cero's for ArrayList simply because it avoids large copies.

If order isn't important to you! In fact, @Cero's answer would also be problematic if order was important.  I remember someone (think @princec) posting a technique in an old thread on this using two ArrayLists, and ping-ponging valid values between them, which avoids most large array copies and retains the ordering.

As I said in my answer above, there is not really a way to answer the OP's question without context, and for that matter the question may be incorrect assuming ArrayList answers that problem in the first place.  One rarely iterates ArrayLists just for the hell of it!  Wink
7  Game Development / Newbie & Debugging Questions / Re: Best way to iterate through ArrayList? on: 2014-10-15 09:47:50
Just as a note, I will be iterating through it a lot so what is actually the best way which is easiest and the best?

What about modifying it a lot?  Do you need to modify the list while iterating it?

Both those questions may impact on the right solution.  In Praxis LIVE I have various 'collections' which are iterated often, modified rarely and occasionally modified while iterating.  I'm actually using arrays and this simple class which handles adding or removing an item and returning a copy of the array.  It's basically externalising some of the functionality of CopyOnWriteArrayList.  It has the added benefit of allowing to use the enhanced-for loop without creating an iterator.
8  Discussions / General Discussions / Re: Pico Boards in Java? on: 2014-10-13 20:39:46
This might be a start?  Looks interesting - may have to have a play myself.
9  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-10-13 18:11:44
I can also count the number of times I've tried to move the mouse pointer across laptops on more than one hand!  Roll Eyes

Got to be a Linux equivalent somewhere!  Cool
10  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-10-13 18:06:20
Finished the initial implementation of distributed hubs in Praxis LIVE. Having fun editing code (Java & GLSL) on one laptop and watching it seamlessly compiled and inserted in a running video patch on another laptop.  Grin

I can also count the number of times I've tried to move the mouse pointer across laptops on more than one hand!  Roll Eyes
11  Game Development / Networking & Multiplayer / Re: Using UDP and TCP? on: 2014-10-13 10:58:33
I tried that but there was lag problems...


Anyone here tried using SCTP? -
12  Discussions / Miscellaneous Topics / Re: Something like libgdx for business logic on: 2014-10-10 09:58:14
The same gamesmay fit into a smartphone screen and a huge desktopscreen, but the same won't work for business programms.

I don't think that's true.  Given at least the link I posted is about rendering to HTML as the display, you want to look into responsive design - it's quite possible to make business applications that work across multiple form factors.
13  Java Game APIs & Engines / OpenGL Development / Re: [LWJGL] GLSL Link fails with no error on intel graphics on: 2014-10-10 09:06:36
Thinking about why the similar shaders linked fine and this one didn't helped though. Smiley

Could even be the same reason - should have been more generic in my answer!  Wink  Looking at something like this ( ) arrays of samplers are not valid below 1.30.  Are you using a #version pragma?

According to the GLSL spec ( )

If a #version‚Äč directive does not appear at the top, then it assumes 1.10, which is almost certainly not what you want.

What I've found is that AMD & nVidia cards seem to allow features above version to work, whereas Intel cards seem to follow that spec and fail.  The int <> float thing is not the only time I've fallen foul of this, but just the one I keep repeating!  Roll Eyes
14  Discussions / Miscellaneous Topics / Re: Something like libgdx for business logic on: 2014-10-10 08:56:27
This might be worth a read too -  Talks about RoboVM for iOS, but also use of Bck2Brwsr & TeaVM for running in the browser (both translate Java bytecode into JS).
15  Discussions / Miscellaneous Topics / Re: Who's using RoboVM? on: 2014-10-09 12:15:57
Especially would love to see a solid solution for Java on the web. As plugins are no longer cool, maybe some thing like RoboVM -> Emscripten/Asm.js.

You looked at TeaVM or Bck2Brwsr?  I know they exist - I have no idea whether they are a "solid solution".  Wink
16  Java Game APIs & Engines / OpenGL Development / Re: [LWJGL] GLSL Link fails with no error on intel graphics on: 2014-10-09 12:02:12
Hi, I am using similar code to

What is "similar"?  One thing that I've found fails on Intel but not other cards is using integers where you mean floats (eg 1 rather than 1.0).  I think the Intel behaviour is actually correct unless you specify #version but it's the one that always seems to bite me.  persecutioncomplex
17  Discussions / General Discussions / Re: Why are people jerks? on: 2014-10-08 09:09:03
I already addressed that.  If you want GPL like coverage there's the choice an equivalent licence.  There's no rejection of an idea.

Yes, because license proliferation is such a good idea  persecutioncomplex  Copyleft as a principle is useful for many reasons completely anathema to RS - rejecting the leading license to achieve that seems pointless.

I refuse to empower RS in any way.  FSF/RS have a tendency to claim (in a way) all GPLed software.

Yes, people say all kinds of crap - you must love hanging around on a Java forumTongue

Thout shalt be called GNU/Linux should come to mind here.  Also notice a software that RS really worked on:  emacs.

Except that the whole GNU/Linux thing has nothing to do with your argument because they're not claiming that name because of the GPL Linux kernel, but because the OS contains a load of stuff the GNU project really worked on.  You know the slash is there precisely not to claim Linux is GNU.  Which is not to say it isn't daft  Grin

My point remains, jerks are associated with or benefit from things we benefit from everyday.
18  Discussions / General Discussions / Re: Why are people jerks? on: 2014-10-08 00:01:15
If someone doesn't want to buy any (say) Nestle products as a statement that's their business. ... Too bad, tell RS to stop being a dick if you care in the slightest ... So screw him and anyone that supports him and his deeds.

Boycotting a company because you find their practices abhorrent I get, boycotting a person too.  But boycotting an idea or invention because of it's association with a person or group that's abhorrent - where do you stop with that?  You'll have nothing left!  Someone using a GPL license because it suits their purposes doesn't necessarily support RS or his deeds, any more than someone flying in a jet aircraft supports ... (damn Godwin  Wink )

Assholes are fine.  I'm an asshole.

Assholes are fine.  I'm an asshole.  Grin
19  Discussions / Miscellaneous Topics / Re: What are possible front ends for a java audio library? on: 2014-10-07 09:44:19
He is also intrigued by JQuery/HTML5, but I am not seeing a clear path to connecting from there to functions presented in a Java .jar file without going through some very high latency steps. Perhaps the only way that might work as a front end is if the Java .jar file is converted to Android or JavaScript? I'm not clear if these languages are fast enough to handle audio processing at a reasonable latency.

To do that, you'd probably want to port your stuff to web audio.

Check these out (in a decent browser!)
20  Discussions / General Discussions / Re: Why are people jerks? on: 2014-10-07 09:35:54
As I mentioned before I refuse to help any GPLed project, other than bug reports, because R.S. is a hateful person in his public persona.  Pretty much feel the same about Eric R. as well.

That's a really weird black and white attitude to take!  Most people writing GPL software probably couldn't care less about RS.  If you're going to have a blanket ban on technology that some asshole may have been associated with, you're going to be living in the stone age.  And if you never want to deal with an asshole, you'll be living as a hermit.  Good people and evil people are found in folk tales (and seemingly the internet) - real life is usually a lot more complicated than that.

<3  Grin
21  Discussions / General Discussions / Re: Why are people jerks? on: 2014-10-03 15:11:45

Is that from the first draft of The Empire Strikes Back?    persecutioncomplex
22  Game Development / Networking & Multiplayer / Re: Kryonet threading on: 2014-10-02 13:52:44
always always always always process network on the game thread
if offloading it to another thread would be more expensive. Pointing

No, if it might block offload to a different thread.  There is no way to measure the expense of that because there may not even be one where you're profiling it.

I agree with you the "never, never" post is false if not explained.

ofc we'd have to deal with timeouts and possible stalls if we'd send directly from the game-thread, it's just not wrong to do so, generally.

Well, of course, if you're happy with the thing freezing for a few seconds, you should have said ...  Tongue
23  Game Development / Networking & Multiplayer / Re: Kryonet threading on: 2014-10-02 13:22:17
i ment network data _and_ NIO.

I wasn't talking about vs nio

I meant in general you need to know whether the code you're calling can have unbounded execution time.  IO is one thing among many to be wary of.

if it would be based on old school IO, not NIO, using the game-thread would freeze the VM in no time.

Bearing in mind that NIO is blocking by default  Wink

What I'm saying is that you need to know what you're using - the OP's case is probably fine, while saying

always always always always process network on the game thread

is (IMO) not.
24  Game Development / Networking & Multiplayer / Re: Kryonet threading on: 2014-10-02 08:40:26
always always always always process network on the game thread if offloading it to another thread would be more expensive. just use a profiler and your brain = win.

Do you mean process network data or IO?  A profiler is pretty useless for IO!  You're basically doing soft real-time programming, and the issue there is dealing with worst case execution time.  If the IO process may block for an unknown amount of time, then off-load it to another thread, though if @Gibbo3771 is correct this is already handled in Kryonet.  OTOH, if you're talking processing the data for IO, then I'd probably agree with you.
25  Game Development / Newbie & Debugging Questions / Re: UI Skin and fonts appears white if there is a background image on: 2014-10-01 17:06:26
is this openGL ?

No, OpenGL has never been fixed.  Grin

Wish people wouldn't remove posts like this.  Roll Eyes
26  Game Development / Newbie & Debugging Questions / Re: Slow Thread for loading on: 2014-09-27 10:39:15
Generally I agree with @BurntPizza, but if you do really need to do this and are new to concurrency, I'd also start by looking at some of the higher level utilities in the JDK, such as ExecutorService and Future, rather than dealing with Threads directly.
27  Game Development / Newbie & Debugging Questions / Re: warning: [options] bootstrap class path not set in conjunction with -source 1.6 on: 2014-09-25 14:07:15
or use a newer JDK (the one javac uses).

Think you mean use an older JDK!  Wink

AFAIK this warning was introduced with the javac in 1.7 to warn you that even though you're specifying to compile as compatible with 1.6, if you compile against newer (1.7+) JDK classes your code may still not actually work on 1.6

Unless you're specifically targeting 1.6 (in which case set its JDK as the bootstrap class path) then I assume you're using an IDE where the project has the source level set.  If you set that to the same as your JDK, this warning should disappear.
28  Discussions / General Discussions / Re: Are Java applets really "dead" for indie developers? on: 2014-09-22 15:16:18
Processing also offers an approach to working in Java and deploying to JS, with 3D (WebGL) support -
29  Game Development / Newbie & Debugging Questions / Re: [LibGDX]Get points of rotated rectangle? on: 2014-09-22 14:39:21
Assuming you know the centre point of your entity, which should be x + halfWidth, y+ halfHeight.  You also need an array of your 4 white points - ie. float[8] {x1,y1,x2,y2, etc.

It should be something like (untested!) -

float[] pts = ...
AffineTransform at = new AffineTransform();
at.rotate(Math.radians(angle), centreX, centreY);
at.transform(pts, 0, pts, 0, 4);

After which the pts array will contain the transformed points.

I'm slightly wary of why you are having to flip the y-axis in the code you posted.  Undecided

30  Discussions / General Discussions / Re: Website Content Management on: 2014-09-22 10:54:24
IMO Wordpress or Drupal are probably the quickest, most flexible and future proof ways to go.

Choose the right tool for the task!   Wink

Drupal isn't the quickest way to get up and running - it IMO rightly positions itself as a content management platform  If you want the flexibility choose Drupal (I spend half my life at the moment developing with it), but if you need something quick and easy to run OOTB, choose WordPress.

Or any of numerous other options, just don't roll your own!  Grin
Pages: [1] 2 3 ... 31

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

The first screenshot will be displayed as a thumbnail.

Longarmx (52 views)
2014-10-17 03:59:02

Norakomi (43 views)
2014-10-16 15:22:06

Norakomi (33 views)
2014-10-16 15:20:20

lcass (37 views)
2014-10-15 16:18:58

TehJavaDev (68 views)
2014-10-14 00:39:48

TehJavaDev (67 views)
2014-10-14 00:35:47

TehJavaDev (60 views)
2014-10-14 00:32:37

BurntPizza (73 views)
2014-10-11 23:24:42

BurntPizza (45 views)
2014-10-11 23:10:45

BurntPizza (86 views)
2014-10-11 22:30:10
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06 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!