Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (523)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (592)
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 ... 39
1  Discussions / Miscellaneous Topics / Re: C#, did Microsoft just want to be different? on: 2014-11-24 20:26:48
At my work there is a lib made by some guy who used to work there and List's .size funcion is called .Usage() o-o
2  Game Development / Newbie & Debugging Questions / Re: [Libgdx] Basic code stuttering on HTC Desire 816 on: 2014-11-23 12:00:58
Ok after 10 hours I finally managed to get a rotated square with native code. Seems that it also stutters, which means its the device's fault.
3  Discussions / General Discussions / Re: LWJGL or Unity, UDK, Cryengine on: 2014-11-23 11:39:07
Why does everyone think they need to 'upgrade' to 3D? There are more than many pro game developers who only develop 2D games.
4  Game Development / Newbie & Debugging Questions / [Libgdx] Basic code stuttering on HTC Desire 816 on: 2014-11-22 12:15:20
I started making my little game for Android (Not so little anymore), using Libgdx. Recently I started testing it on some shit device (Sony Ericson Xperia, really old, slow device) and the game was running pretty well. Then I borrowed android device from my bro, and the game seemed to stutter like crazy.

I created an empty Libgdx project with nothing in it, and ran this basic code.
http://www.java-gaming.org/?action=pastebin&id=1135
Even when rendering this basic rotating square, the app seems to stutter. (Running on HTC Desire 816)

Any ideas? I wouldn't really want to rewrite all the code I have written so far in C++ o-o
5  Discussions / General Discussions / Re: Sprite DLight - Instant normal maps for 2D graphics on: 2014-11-22 08:59:56
Is this written in Java or are you just plugging another one of your kickstarters?

It's still an interesting project regardless, but this may not have been the appropriate place to advertise it if it isn't java-related.

Who cares.. The project seems amazing.. And by the looks of the UI kit used, it is Java.

@Dee
Very nice project you have there. Now all the 2D indie games will be normal mapped o-o
6  Games Center / WIP games, tools & toy projects / Re: KeepMeBusy Java2D Game!!! [Update 6] - 10.000 AI | NO LAG + New Player Sprites!! on: 2014-11-22 07:59:51
So far you have just copied Minicraft. I wonder how the source looks like.

If you don't add anything more than Minicraft, than this is gonna be a very disappointing project.
7  Game Development / Newbie & Debugging Questions / Re: Saving only one value in preferences file - libgdx on: 2014-11-21 08:48:00
Then why would you want to save them to preferences file? Can't you just keep it in memory? The whole process of saving to file is so that you can read the file after the program has been restarted with the state it previously had.
8  Game Development / Newbie & Debugging Questions / Re: Saving only one value in preferences file - libgdx on: 2014-11-21 07:29:50
I don't understand what your problem. You just said that you only want 1 value to be saved. Then you said you want all values to be saved.
9  Game Development / Newbie & Debugging Questions / Re: Generate 2D terrain like hill climb racing / tiny wings ? on: 2014-11-16 20:29:58
Dem bike seems a bit springy Cheesy
10  Game Development / Newbie & Debugging Questions / Re: Well i have tried but cant get it to work "Prevented Collision Detection" on: 2014-11-16 14:27:03
Instead of
1  
2  
3  
4  
5  
speed = 5;
if (level.canMove(position + speed))
{
     position += speed;
}


Do this:

1  
2  
3  
4  
5  
6  
7  
8  
9  
speed = 5;

for (int i = 0; i < speed; i++)
{
     if (level.canMove(position + 1))
     {
          position += 1;
     }
}
11  Game Development / Networking & Multiplayer / Re: UDP packages on: 2014-11-16 14:03:39
Are you talking about serializing data? If so, you should try .json format. There are a billion json libraries for java.
12  Game Development / Newbie & Debugging Questions / Re: Well i have tried but cant get it to work "Prevented Collision Detection" on: 2014-11-16 14:01:15
The tutorial is not about libgx or OpenGL, its about collision detection.
13  Game Development / Newbie & Debugging Questions / Re: Well i have tried but cant get it to work "Prevented Collision Detection" on: 2014-11-16 13:45:24
http://www.java-gaming.org/topics/2d-collision-detection/31488/view.html
14  Game Development / Newbie & Debugging Questions / Re: Implementing 2D platoformer wall jumping on: 2014-11-14 22:08:48
If player is colliding with a wall and he presses a certain key / key combination, increase / decrease x and y velocities, or change the speed (depends on how you use those values)
15  Game Development / Newbie & Debugging Questions / Re: Why would i want to use runOnUiThread ??? on: 2014-11-06 13:54:47
Because everything you do to change UI should be done on UI thread, so undefined stuff doesn't happen.
16  Game Development / Newbie & Debugging Questions / Re: [Libgdx] Asset file availability on file system? on: 2014-11-05 19:06:56
I have long since solved my issues.

I just read the file in java, and write it where ever I want. Then I can access it like I need to.
17  Game Development / Newbie & Debugging Questions / Re: [Libgdx] Asset file availability on file system? on: 2014-11-05 16:58:23
You guyz don't understand my problem. I need the file path. The file path has to be valid. You can check if it is valid by doing new File(path).exists().

I need a valid file path for FreeType. FreeType is a native library. It loads font files. It doesn't accept java.File. It just wants a file path from which to load a font. When I pass any of the values you guys suggested, it doesn't load my font, because the file doesn't exist!
18  Game Development / Newbie & Debugging Questions / Re: [Libgdx] Asset file availability on file system? on: 2014-11-05 11:34:58
1  
2  
3  
String path = Gdx.files.internal("Tahoma-Bold.ttf").file().getAbsolutePath();
File file = new File(path);
file.exists(); // This has to return true. Otherwise it means that file doesn't exist.


On Windows file exists, on Android file doesn't exist.
19  Game Development / Newbie & Debugging Questions / Re: [Libgdx] Asset file availability on file system? on: 2014-11-05 09:01:40
Please read the original post.
20  Game Development / Newbie & Debugging Questions / Re: [Libgdx] Asset file availability on file system? on: 2014-11-05 08:40:41
That is a problem, because file needs to be available on the file system for FreeType to load the font - I need to specify file name. (I think thats how it works)
21  Game Development / Newbie & Debugging Questions / Re: Making your own font on: 2014-11-05 06:45:00
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
{
   "chars": [
      "A": {
         "width": 6,
         "height": 8
      },
      "B": {
         "width": 6,
         "height": 8
      },
      "I": {
         "width": 3,
         "height": 8
      }
   ]
}
22  Game Development / Newbie & Debugging Questions / Re: Making your own font on: 2014-11-05 06:34:29
Well you can make your own file format and store letter sizes in there, so you don't have to do that in code.
23  Game Development / Newbie & Debugging Questions / Re: Making your own font on: 2014-11-05 06:03:11
Download the source and learn from the God Cheesy

http://ludumdare.com/compo/ludum-dare-22/?action=preview&uid=398
24  Game Development / Newbie & Debugging Questions / Re: [Libgdx] Asset file availability on file system? on: 2014-11-05 05:36:28
This isn't really a problem for me to handle, but it is painful that Gdx didn't handle that for me.

I can just read the file and save it where ever I want. It doesn't really matter since I only need this for fonts, which are only a few.
25  Game Development / Newbie & Debugging Questions / [Libgdx] Asset file availability on file system? on: 2014-11-04 18:59:57
Doing some work on my JFreeType lib. Juts managed to compile my natives successfully on Android (At last..).

Now the problem is that when I do
1  
String path = Gdx.files.internal("Tahoma-Bold.ttf").file().getAbsolutePath();


path is equals to:
1  
"/Tahoma-Bold.ttf"


When running the same code on Windows, I get this path:
1  
"C:\Users\Work\Desktop\libgdx workspace\PlaneSimWorkspace\PlaneSim\android\assets\Tahoma-Bold.ttf"


Does this mean that on Android gdx doesn't have files available on files system or something? I have no idea how to describe it, but I think you get the point. The path on android should be like:
1  
"/android/apps/MyApp/Assets/Tahoma-Bold.ttf"
26  Games Center / WIP games, tools & toy projects / Re: Minigun Massacre (My first "Game" !!!!) on: 2014-11-04 18:49:56
There is something really wrong with your game. I downloaded it, double clicked the .exe file, nothing happened. I thought it was a glitch or something. Then, after 10-15 minutes, a windows confirmation dialog pops up asking if I want to run your program.
27  Game Development / Newbie & Debugging Questions / Re: [LibGDX][Box2D] Casting Body ClassCastException on: 2014-11-04 13:49:04
The way I would do it is in your Physics object, have a Body object.

As a side note, there is also Body.SetUserData or something like that, which holds whatever object you put in there. Just throwing this 'out there', because you might need it sometime.
28  Game Development / Newbie & Debugging Questions / Re: Libgdx JSON saving problem? on: 2014-11-04 05:56:24
So what is wrong? Putting value X to json, serializing it, saving it to file, reading it from file, parsing json and getting value X somehow is a different value than what you put in the json?
29  Game Development / Newbie & Debugging Questions / Re: How to handle clicking on tiled map on: 2014-11-03 16:08:26
1  
xTile = (map.xOffset + mouse.x) / Tile.SIZE;
30  Game Development / Newbie & Debugging Questions / Re: lwjgl exception handling on: 2014-11-02 18:23:00
It doesn't matter. It just tells you that "YOU" didn't close it, because you might want to close it by yourself. The error by itself probably means nothing, it just notifies you.
Pages: [1] 2 3 ... 39
 

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

The first screenshot will be displayed as a thumbnail.

SHC (22 views)
2014-11-25 12:00:59

SHC (20 views)
2014-11-25 11:53:45

Norakomi (18 views)
2014-11-25 11:26:43

Gibbo3771 (22 views)
2014-11-24 19:59:16

trollwarrior1 (36 views)
2014-11-22 12:13:56

xFryIx (74 views)
2014-11-13 12:34:49

digdugdiggy (52 views)
2014-11-12 21:11:50

digdugdiggy (46 views)
2014-11-12 21:10:15

digdugdiggy (41 views)
2014-11-12 21:09:33

kovacsa (67 views)
2014-11-07 19:57:14
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
java-gaming.org 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‑gaming.org
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!