Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (707)
Games in Android Showcase (208)
games submitted by our members
Games in WIP (781)
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  Game Development / Newbie & Debugging Questions / [LibGDX - HTML5] Not able to remove query string from URL on: 2014-10-27 01:59:05
Hi guys! I'm trying to start working on web projects. This is all new for me, and I'm having some weird issues.

I created a new project with "gdx-setup" (libgdx 1.3.1, desktop and html only, with projects files for eclipse). I didn't use gradle to import it into eclipse luna, just used the old way of "import existing projects into workspace".
So far, so good. I can run without problems the desktop version, and also the html version (RUN AS-->Web Application).
The URL that eclipse gives me looks something like this:

SuperDev button appears (but it doesn't seems to work) and game starts (runs at 2-3 fps, which is pretty normal, right?)
So...everything looks "fine" at this point, except for the SuperDev button.
Then...I want to remove the query string from the URL to be able to test the game at full speed, so I use this URL:

A message box from chrome shows up saying that "GWT module 'html' has to be recompiled", I click OK and...nothing happens.
Checking eclipse IDE everything looks that is still running. But on the "Development Mode" tab, shows:

-Module html has been loaded.
-Unloading module html (html).

I tried a LOT of things. I cant get this work. On the RUN as Wep Application the config is:
Project: TestingWEB-html
Main class:
Server: run build-in (yes)
GWT: both definitions xml files
Arguments: -war "C:\Proyectos Java\TestingHTML\html\war" -remoteUI "${gwt_remote_ui_server_port}:${unique_id}" -startupUrl index.html -logLevel INFO -codeServerPort 9997 -port 8888 com.shuken.testing.GdxDefinitionSuperdev com.shuken.testing.GdxDefinition

I'm really lost. What is missing?
2  Games Center / Showcase / Re: Spacejumper! on: 2014-10-16 16:12:17
Dude, is that Megaman?  Smiley

I like it, looks cool and the music fits the pace well.
I am sorry to say I am rubbish at it though, I kept jumping into the laser beams. Not a successful strategy.

Yeah, he is Megaman (I Am very bad at drawing so I simply took at the sprites) xD

Thank you for playing! My next game will be not that hard xD
The secret is calculate the time interval between lasers. There is always a patron Wink
3  Games Center / Showcase / Spacejumper! on: 2014-10-14 22:04:58

Hello everybody! Long time I've been on this amazing forum and this is my first public game!
I made it last year and its no longer in development but any comment will be appreciated! This is a continuously learning Smiley

This game it's based on a very old game called "Caverns of Bob". In that game, you were a pretty nasty guy who had to touch all the pixels of the floor to win the level. On a fast computer, it was almost impossible (fps based instead of time intervals).
I tried to re-create that gameplay, and the final game it's pretty hard too lol

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

Made with libGdx. You can find it here:

Enjoy and thank you very much for your time!
4  Games Center / Showcase / Re: 2DRacer - Online Multiplayer 2D Racing Game on: 2014-09-03 18:05:40
Im from Argentina.

The collision between cars is the big problem. Leaving that appart, you can do a local gameplay at 60fps. Every...lets say 100ms or 200ms the server will have info about that player (the local one). In this case, a different thread in the client is necessary to send and receive packages from the server. 1second you will have (luckily) 10 or 5 fps for that car (on the server). One simple way to solve that is "believing" that the car will have the same speed and direction until next package arrives. You do the same on the client side for the other cars and something more or less playable will come out of there (Tm Nations looks that works that way But, with this approach there is NO COLLISION between cars. Instead you are getting a decent gameplay.

If you want to have collisions, there will be probably the necessity of interpolation.
Here Valve shows how the Source engine works on this point:

The client must run in the "past", so the server can calculate the exact position of everyone on the race and do the maths and then give the results to every client.
This is the hell of hells lol
5  Games Center / Showcase / Re: 2DRacer - Online Multiplayer 2D Racing Game on: 2014-09-02 17:33:42
wow pretty nice. I didn't expect collisions between players. Looks like all the code its working fine, but I must say that with a ping of 250ms the gameplay becomes kinda weird. Maybe you could try to implement some "user prediction techniques" or "interpolation/extrapolation" to avoid lag problems and make the client game more fluid. This is kinda hard to do, btw.
Here some info (the demo it's pretty clear about what it's this about):

You made a fast-paced multiplayer game wich is one of the most difficult thing to do (at least for me xD)

Congratz and very nice work!
6  Games Center / WIP games, tools & toy projects / Re: Battle for the Solar System: Tactics on: 2014-01-07 03:17:18
Problems over here (win7 64bits)

23:20:36 [main] ERROR com.parallelrealities.tbftss.Main - Unhandled error occurred. Game exiting.
org.lwjgl.LWJGLException: Failed to create window
   at org.lwjgl.opengl.WindowsDisplay.createWindow( ~[TBFTSS.jar:na]
   at org.lwjgl.opengl.Display.createWindow( ~[TBFTSS.jar:na]
   at org.lwjgl.opengl.Display.create( ~[TBFTSS.jar:na]
   at org.lwjgl.opengl.Display.create( ~[TBFTSS.jar:na]
   at org.lwjgl.opengl.Display.create( ~[TBFTSS.jar:na]
   at com.parallelrealities.tbftss.GameWindow.<init>(Unknown Source) ~[TBFTSS.jar:na]
   at com.parallelrealities.tbftss.Main.<init>(Unknown Source) [TBFTSS.jar:na]
   at com.parallelrealities.tbftss.Main.main(Unknown Source) [TBFTSS.jar:na]
7  Games Center / Showcase / Re: [LD28] PotatOne on: 2013-12-18 19:49:55
A month or so ago I made my own skeletal animations library.

I haven't completely finished it yet, but I decided that I would use it for Ludum Dare.

Wow thats very cool! Nice work!
8  Games Center / Showcase / Re: [LD28] PotatOne on: 2013-12-16 01:56:16
Pretty interesting! Besides..."potato" is always a funny word   Tongue

Considering that is a type of "slow-game", a quiet background music could make the game a lot more enjoyable!  Smiley are using skeletal animations, thats very cool! Can I ask you how you did it or what you used for it?
9  Game Development / Game Play & Game Design / Re: RPG stats on: 2013-12-03 01:58:10

This reminds me of something that was puzzling me a long time. Why do bow skills usually depend on dexterity? I understand that skills like throwing depend on dexterity more than strength, but in case of bows it surprised me that games make them depend on dexterity, even add damage to the shots with higher dexterity.

lol its pretty hard to use a bow, actually. It really have sense if you think on it. If you are good using it, you can perform better shoots and do more damage.
10  Game Development / Game Play & Game Design / Re: RPG stats on: 2013-12-02 15:39:21
I suppose depends of the game. Neverwinter's games, for example, are pretty complex in all sense and have a lot of differents stats. But if you want to make a simple game, with a simple gameplay mechanic, with simple graphics, simple history, etc...then you should do simple stats too.

Dunno...thats what i think  persecutioncomplex
11  Game Development / Game Play & Game Design / Re: Libgdx 2D Lighting on Tiled Map on: 2013-12-02 15:29:19
Look at here:
12  Discussions / General Discussions / Glyph Advances and Glyph Positions on: 2013-11-26 17:14:56
Hello guys! I been curious about these concepts and I did a search on the web. I found this:

Click to Play

But still dont get it...I understand the "Glyph Advances" concept but still dont understand the "Glyph Positions".

Those chars had the same glyph position? is the baseline? If thats correct...then the glyph position its something like "y-axis coord"?

Im trying to understand better this method (I am using it to calculate text distances in differents fonts):, com.badlogic.gdx.utils.FloatArray, com.badlogic.gdx.utils.FloatArray)

Thanks Smiley
13  Discussions / General Discussions / [Talks] Tim Schafer, Zach Gage, Rom Carmel and more. on: 2013-10-31 19:35:33
Hello guys! In Technopolis (Argentina), a few days ago were some talks of game designers as Tim Schafer and the rest of the guys in the topic title. Nathan Vella (Sword & Sorcery) was there too but cant find the video yet.

They talked about indie games, how to promote them and about a lot of things that is pretty nice to hear from people who have had success on this industry.

Was very interesting. Especially Zach Gage and Nathan Vella talks. Of course, the talks are in english except for other designers like Andrés Bordeu (Ace team - Zeno Clash) or Tobias Rusjan (Doorways) who are from Chile and Argentina, respectively.

You can see all the videos here:

14  Game Development / Newbie & Debugging Questions / Re: [LibGDX] Tiled map problem... on: 2013-10-13 21:52:42
Mmh...I use ints just for the camera and works well. The rest of the calculus uses floats.
After all, the screen is in pixels. And you cant draw something on the pixel "150.34544f". Its just 150 (I guess).

Maybe you have another problem here, but I repeat, i had a similar issue and fixed it when starting using ints. Just a comment. If it doesn't work then must be something else.
15  Game Development / Newbie & Debugging Questions / Re: [LibGDX] Tiled map problem... on: 2013-10-13 21:13:43
Try using int positions for the camera instead of float...maybe is that. I had similar issues few time ago.
16  Games Center / Android Showcase / Re: Drone Invaders (new .jar file available) on: 2013-10-13 20:34:00
Very very nice! Worked perfectly! You should definitely put this on google play, dude.
Very nice work.

Btw, on desktop you probably should set to false the resize option. I changed accidentally a few times the window size with the mouse lol
17  Games Center / Android Showcase / Re: Star Dust (boss levels, .jar file available) on: 2013-10-10 17:46:20
Very nice! I like the style.

But the boss never came! After a few waves nothing more happened.
18  Game Development / Newbie & Debugging Questions / Re: 2D lighting without shaders in libgdx on: 2013-10-02 15:13:44
I been triying this a lot and finaly did something that works.

What I do is:
1- Render to a FrameBufferObject (FBO) the entire scene of the game. With any blend you want (without any "light" or "shadow" here).

//******** PRE-RENDER OF THE SCENE ***********//
//Render scene...use any blendfunc you want.
//******** END PRE-RENDER ***********//

2- Render what I call an "environtment shadow". Just a black rectangle with some transparency.

//Normal alpha blending for the environtment shadow...
batch.setBlendFunction(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA);
batch.setColor(1, 1, 1, shadowIntensity);
batch.draw(shadow, 0, 0,,;
batch.setColor(1, 1, 1, 1);

3- Render to the alpha mask the lights.

4, false, false, true);
batch.setBlendFunction(GL10.GL_ONE, GL10.GL_ONE_MINUS_SRC_ALPHA);
for(int i= 0; i < lights.size(); i++) lights.get(i).render(batch);

4- Render the scene again (its already on the FBO, so you only need to render the FBO). This time, you render considering the values of transparency of the alpha mask.

//Now we render the scene pre-rendered considering the alpha mask..., true, true, true);  
batch.setBlendFunction(GL10.GL_DST_ALPHA, GL10.GL_DST_ALPHA);
batch.draw(fboRegion, 0, 0);

5- And finally, if you want lights with color, you need to do one more render on top of all this mess to add colors.

batch.setBlendFunction(GL10.GL_SRC_ALPHA, GL10.GL_ONE);
for(int i= 0; i < lights.size(); i++) lights.get(i).renderLightColor(batch);

Hope it helps.
If you need the Light class just ask for it, but its quite simple.

With this technique I been able to do something like this (the lantern light also change size over time):

PD: sorry for bad english xD
19  Game Development / Newbie & Debugging Questions / Re: Fake pooling? on: 2013-10-01 21:23:20
Well the garbage collector in most Java implementations that I know of (that includes Android) are pretty damn descent nowadays. As they said in the comments of the thread you linked, object pooling should be implemented if and when you find the gc is stalling your game.

The possible exception to this is if you're using OpenGL and need lots of Buffers. Reusing them is a must and pooling is a pretty descent way of doing this.

Unless You talk about several millions of objects, then this is a non-issue Smiley
I believe there was a there was a thread here somewhere where more concrete numbers were mentioned.
Anyway, at least on the desktop, You should more or less never worry about gc.

Thank you guys. You are right. I'll not worry about GC right now. If this gets bigger and I encounter problems, I'll try to fix them then.
20  Game Development / Newbie & Debugging Questions / Re: Fake pooling? on: 2013-10-01 20:46:57
Java stores objects by reference (you could also call them pointers). So all the variables are just references to the objects. When you assign a new object to a variable you are changing the value of that reference so that it points to the position in memory of the new object.

Whilst you are reusing the memory of the reference, that is only 4 / 8 bytes. If you want to reuse memory, you must use mutable classes and have a stack of final (const) instances of the class which you populate with the appropriate data when you need it.

mmh...I see. So...Im not reusing the memory of the previus object. Too bad. I will try something more then. Just one sec.
Edit: nop, another bad idea that doesn't work (tried to make an ilegal cast xD).

Are You sure You need object pooling ? Or are You doing this as a learning task ?

The problem is that the game will create this objects during gameplay. Over the time, they will be a lot. Thats why Im trying this.
21  Game Development / Newbie & Debugging Questions / Fake pooling? on: 2013-10-01 19:56:15
Hello guys, I have a doubt about what really does one piece of code.

I have pooling implemented this way (not entirely, just the simple way):

But, I made some little changes.

The "newObject" method of the factory always returns null. Why is that? Because I want to reuse an abstract class which has a lot of sub-classes which implement the abstract methods. Something like this:

abstract BaseClass ____ ConcreteClass1
                         |____ ConcreteClass2
                         |____ etc...

Every ConcreteClassN has his own vars and stuff. And I dont want to do a pool for every one of them. I want to make a pool for the abstract class and reuse that "memory space" for a ConcreteClass (any).

So...I "get" an object this way:

BaseClass base= basePool.get();

Remember, the newMethod returns always null. So, if no objects are on the stack, get() will return null (I dont mind).
But lets see when the get() returns something. That something is a ConcreteClass object (don't know exactly which one of them) that has been recycled somewhere. It uses memory and then what I do, for example, is:

base= new ConcreteClass2(data);

Is this code reusing the memory used by the "base" object which is actually a recycled ConcreteClassN object? Im not very sure lol

(btw, this works as expected)

Thank you guys for the help!
22  Discussions / General Discussions / Re: Off-Topic: Java and Framework Alternatives - 'Friendly' Discussion. on: 2013-09-30 01:55:10
Someone tried cocos2D?
23  Game Development / Newbie & Debugging Questions / Re: [libGDX] [Box2D] Character Controller on: 2013-09-18 17:43:05

Damn I knew it! The javadoc description is "Set this body to have fixed rotation. This causes the mass to be reset." WTF

Thanks for the reply, it works!.

Also found this (one min ago):

Will be very usefull.
24  Game Development / Newbie & Debugging Questions / Re: [libGDX] [Box2D] Character Controller on: 2013-09-18 17:32:43
Guys I have the same problem. First of do you prevent rotating? The player fixture its a rectangle and his angle must remaing intact (zero ¿?). Tried with:


But it doesn't work. The only way that I found was setting the density of the fixture to 0. ¿That's the right way?
25  Game Development / Shared Code / Re: Box2DMapObjectParser: edit Box2D with your map editor on: 2013-09-17 20:22:27
Amazing! This should be part of gdx!
26  Games Center / Showcase / Re: Endosin (Tetra Master Re-make) on: 2013-09-09 14:33:41
ShuKen, I appreciate the feedback and after much consideration I have decided to change the images.  I had previously done research and thought it would be okay but as they always say...better safe than sorry.  Let me know what you think of the new images!

Well, they are cool. Its a nice way to create too many cards in a short time. Of course, the card images on a card game are pretty important. Imagine Magic the gattering without the amazing pictures on the cards. The problem with this types of games are the needs of a lot of art. I'm pretty bad on it and that's why decided to not make a card game lol
But I like the cards you made. They fit in the game pretty well. But, let's don't miss something: on the end, they are just "japanese letters". I don't speak/read japanese so I don't know if the cards means something or if they are just cool lines and figures.

On this types of games its kinda normal to add some descriptions or something on each card. To do that you need characters and stories behind them, and at least a picture for everyone. But, there are a lot of card games or similar that just use symbols and they are fun and cool. This one, I believe, is one of them. But be carefull, you planned this game with the characters of FF on every card. When you mix cards, for example, you suppose to mix FF characteres. Now, you are mixing japanise letters. It like: whattt? + whatt?? = double whaaattt?


But looks nice! Good work  and now its legal! Yey! (I guess) Wink
27  Games Center / Showcase / Re: Endosin (Tetra Master Re-make) on: 2013-09-08 14:54:56
Interesting...I wanted to do the TripleTriad, the card game of FFVIII, but then I moved to other projects.

Just one thing, you are selling this. Dude, you can't do that because you are using an IP from Square without permission. Actually, you can't even make a free game with an IP that is not yours.
28  Games Center / WIP games, tools & toy projects / Re: G581g on: 2013-09-05 02:13:03
I like the project! But the download link is broken! Actually...a lot of links in your web: are broken Sad
29  Discussions / General Discussions / Re: LibGDX and HTML5. What should I put into the server? on: 2013-08-31 22:09:15
Thank you very much! Worked!

I had to include the testGame.GwtDefinition, btw.
30  Discussions / General Discussions / LibGDX and HTML5. What should I put into the server? on: 2013-08-31 20:07:23
Hi guys!

I made a "test game" in libGDX and it works on html5 (tested using GWT developer plugin for chrome). Now I wonder...¿what should I upload to the host? I have the 3 projects folder:

testGame-android           <-- just becouse the "assets" folder

This has to be compiled so, I supose that I cant upload these folders. ¿I need a fat jar or what? Im kinda missed here. Also don't know what page should I create/use to execute the game. In the "war" folder there is a index.html. Is that the page that starts the game on the browser?

Thanks guys for the supply, really dont know what to do with this.
Pages: [1] 2 3
Galdo (465 views)
2017-01-12 13:44:09

Archive (619 views)
2017-01-02 05:31:41

0AndrewShepherd0 (1090 views)
2016-12-16 03:58:39

0AndrewShepherd0 (1014 views)
2016-12-15 21:50:57

Lunch (1145 views)
2016-12-06 16:01:40

ral0r2 (1379 views)
2016-11-23 16:08:26

ClaasJG (1474 views)
2016-11-10 17:36:32

CoffeeChemist (1449 views)
2016-11-05 00:46:53

jay4842 (1530 views)
2016-11-01 19:04:52

theagentd (1256 views)
2016-10-24 17:51:53
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!