Java-Gaming.org Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (563)
Games in Android Showcase (151)
games submitted by our members
Games in WIP (605)
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 ... 43
1  Game Development / Game Play & Game Design / Re: Best Approach at HUD and Fonts on: 2015-03-23 06:42:47
Render text to a texture and display that texture like you would any other sprite.
2  Game Development / Newbie & Debugging Questions / Re: Basic enemy movement where A* isn't really needed? on: 2015-03-21 19:46:45
Please don't use state machines for AI.

http://gameprogrammingpatterns.com/contents.html

Read this book about programming patterns.
3  Discussions / Community & Volunteer Projects / Re: Starting a team (Music Composer, Developer, 3d designer, and writer needed) on: 2015-03-16 12:16:33
I believe .obj doesn't support any form of animation.
4  Discussions / Community & Volunteer Projects / Re: Starting a team (Music Composer, Developer, 3d designer, and writer needed) on: 2015-03-16 11:56:02
You are looking for a 3D artist.

What kind of stuff can you import to the engine? (From files generated by main stream 3D art programs like Blender, 3DS stuff and so on)
5  Discussions / Community & Volunteer Projects / Re: Starting a team (Music Composer, Developer, 3d designer, and writer needed) on: 2015-03-16 11:38:24
If you are looking to create a game, please don't use your own custom engine. I suggest you go and use UE4 or Unity since they are free as off not too long ago.
6  Game Development / Newbie & Debugging Questions / Re: LibGDX Rendering Issue on: 2015-03-16 06:46:12
Sorry, but I don't think anyone understands what your problem is. Can you please elaborate?

I have already suggested you to add out of bounds check.
7  Game Development / Newbie & Debugging Questions / Re: LibGDX Rendering Issue on: 2015-03-15 09:16:53
Change camera's zoom.

EDIT------

Add out of bounds check in the line where you access the tiles from an array.
8  Discussions / Community & Volunteer Projects / Re: Looking for +1 to join LWJGL RPG on: 2015-03-12 07:17:10
hey minigame I'm not very experienced in anything 3d. But I would like to get some experience. I won't be much help to you initially while I try to familiarize myself with your system but if you need help here's my looking for team thread detailing what experience I have  which isn't very much.

http://www.java-gaming.org/topics/newbie-dev-looking-for-a-team/35741/msg/338816/view.html#msg338816

You are kind of wrong. When working in a group, you don't have to have specific experience. If the code is written properly, you should be able to work on the game without needing to do anything with 3D. For example, you might be working on quest systems, player data systems, optimizing world data flow and stuff like that, which doesn't require 3D graphics knowledge.
9  Game Development / Networking & Multiplayer / Re: Structuring code between client/server on: 2015-03-05 20:30:40
I think that it depends on what kind of game it is a lot, because for some games simple HTTP requests are enough.
10  Game Development / Newbie & Debugging Questions / Re: LibGDX JSON : Changing data and writing to file on Android Device on: 2015-03-05 06:39:48
I'm not really sure what you mean.. I don't see how would passing ArrayList to generate json string would make you a valid json.
11  Game Development / Newbie & Debugging Questions / Re: LibGDX JSON : Changing data and writing to file on Android Device on: 2015-03-04 20:44:34
I think he is asking for how to perform an operation like this:

1  
2  
3  
4  
5  
6  
7  
JSONObject json = new JSONObject();

json.put("name", "JavaGaming");
json.put("age", 10);
json.put("image", "/c/image.png");

String jsonString = json.toString();


But from my experience Libgdx json implementation doesn't support that.
12  Game Development / Newbie & Debugging Questions / Re: Java 'this' syntax on: 2015-02-27 20:02:44
Previously I used to use 'dis' variable to store this Cheesy
13  Game Development / Newbie & Debugging Questions / Re: Java 'this' syntax on: 2015-02-27 13:20:53
Well that was easy Cheesy
14  Game Development / Newbie & Debugging Questions / Java 'this' syntax on: 2015-02-27 13:19:13
I constantly run into this problem:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
class MyClass implements MyInterface {
   
   private Runnable runnable = new Runnable() {
      @Override
      public void run() {
         // SecondClass class = new SecondClass(this);
         // I want to pass 'MyClass' as 'this' parameter.
         // Is it possible to achieve somehow?
      }
   };
}

class SecondClass {
   SecondClass(MyInterface interface) {
   }
}


Is there a proper way to handle this?
15  Game Development / Newbie & Debugging Questions / Re: LibGDX:How to create Key Value pairing holding info for different datatypes on: 2015-02-25 12:25:18
Use json:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
{
   "book_list": [
      {
         "autor": "Dr. Seuss",
         "title": "Dr. Seuss",
         "subtitle": "Dr. Seuss",
         "year": "Dr. Seuss",
         "button_image": "/path/to/image.png"
         "main_image": "/path/to/image.png"
      },
      {
         "autor": "Dr. Seuss",
         "title": "Dr. Seuss",
         "subtitle": "Dr. Seuss",
         "year": "Dr. Seuss",
         "button_image": "/path/to/image.png"
         "main_image": "/path/to/image.png"
      },
      {
         "autor": "Dr. Seuss",
         "title": "Dr. Seuss",
         "subtitle": "Dr. Seuss",
         "year": "Dr. Seuss",
         "button_image": "/path/to/image.png"
         "main_image": "/path/to/image.png"
      },
      {
         "autor": "Dr. Seuss",
         "title": "Dr. Seuss",
         "subtitle": "Dr. Seuss",
         "year": "Dr. Seuss",
         "button_image": "/path/to/image.png"
         "main_image": "/path/to/image.png"
      }
   ]
}


Then somewhere in your java code:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
Map<String, Book> books = new HashMap<String, Book>();

JSONObject json; // Parse json object

JSONArray jsonBooksList = (JSONArray) json.get("book_list");

for (int i = 0; i < jsonBooksList.size(); i++)
{
   JSONObject jsonBook = (JSONObject) jsonBooksList.get(i);

   String author = jsonBook.getString("author");
   String title = jsonBook.getString("title");
   String subtitle = jsonBook.getString("subtitle");
   int year = jsonBook.getInt("year");
   String buttonImage = jsonBook.getString("buttonImage");
   String mainImage = jsonBook.getString("mainImage");

   Book book = new Book(author, title, subtitle, year, buttonImage, mainImage);
   books.put(title, book);
}


The implementation of getting data from json objects will differ from json lib to json lib.
16  Game Development / Newbie & Debugging Questions / Re: LibGDX Tilemap Rendering on: 2015-02-25 08:49:06
Should be .getWidth() / 2 and .getHeight() / 2

Also, maybe Tiled map renderer wants tile positions? In which case you also need to divide these coordinates by tile size.
17  Game Development / Newbie & Debugging Questions / Re: LibGDX:How to create Key Value pairing holding info for different datatypes on: 2015-02-24 14:38:31
@Narokomi please just go with what @KevinWorkman suggested.
18  Java Game APIs & Engines / OpenGL Development / Re: How to set texture coords without duplicate vertex positions on: 2015-02-24 06:58:59
Does your "Gui" mean a UI element?
19  Discussions / Miscellaneous Topics / Art peoples on: 2015-02-22 20:05:06
Does anybody know places to find art peoples who would do art "for free" as in most of us are making games "not for profit"? I guess I'm just looking for people who want their art to be put in the game for free Cheesy

I have been making a game and I'm at a point where I probably need to start integrating some art, because most of the other stuff is pretty much done.
20  Game Development / Newbie & Debugging Questions / Re: bounds.contains() problem on: 2015-02-21 10:53:08
What is the class of 'bounds' and on what platform are you getting this error?

Even though you can compile using that method, when running on say android, some methods might not be available at runtime or something like that, causing errors like these.
21  Game Development / Game Mechanics / Re: Releasing resources on: 2015-02-20 15:39:26
You might need to manually call Texture.dispose, because it is GL memory and not memory that will be collected by GC.
22  Game Development / Game Play & Game Design / Re: Terrain Chunk Sizes on: 2015-02-18 18:48:02
The reason you use power of 2 sizes is so that you can do bit shifting stuff, because it is faster than multiplication / division.

1  
2  
int chunkIndX = tileX / 16;
int chunkIndX = tileX >> 4; // should be faster than the first one


But maybe I'm wrong..
23  Java Game APIs & Engines / Java 2D / Re: VSync on: 2015-02-18 15:52:31
It is possible. Get the monitor's refresh rate then cap your game loop to that number.

I believe that's all vsync is.

No it is not. It is called sync for a reason.
This is what you would get if you just cap your loop to the monitors refresh rate, which still gets you screen tearing.
----------------------------------------------
   |   |   |   |   |   |   |   |   |   |   |   |   |
----------------------------------------------
 |   |   |   |   |   |   |   |   |   |   |   |   |   
----------------------------------------------

vsync does this:
----------------------------------------------
   |   |   |   |   |   |   |   |   |   |   |   |   |
----------------------------------------------
   |   |   |   |   |   |   |   |   |   |   |   |   |
24  Java Game APIs & Engines / OpenGL Development / Re: [Solved] Rendering text in lwjgl without slick on: 2015-02-18 11:21:59
@Icass

Would probably be better to just render the text to texture and then only render 1 texture instead of rendering VBO each time.

PS
dat code style though
25  Discussions / General Discussions / Re: What's your day job? on: 2015-02-16 07:44:08
My friends are still in high school and I work for this:
www.on-5.com

Its been an amazing experience, because they hired me even though I had no formal education and almost no programming experience, and over the last 10 months period I worked hear I would think that my programming capabilities at least doubled or even tripled compared to what it was before.
26  Game Development / Newbie & Debugging Questions / Re: [LibGDX] How to strech my game on android device? on: 2015-02-15 07:03:35
Change your matrix to use Gdx.graphics.getWidth() instead of 800
27  Discussions / Miscellaneous Topics / Re: What is your line/char count? on: 2015-02-14 09:07:55
Dayum I thought my project was a bit bigger Cheesy

Only 7k lines with lots of empty lines Smiley
28  Game Development / Performance Tuning / Re: FPS drop when screen recording a libGDX developed game on: 2015-02-14 06:41:33
Did you try busy loop running your game to see how much FPS it can make without recording? Maybe your game is barely able to put out 60 fps, which could explain the double drop in FPS.
29  Game Development / Newbie & Debugging Questions / Re: WorkerThread, how to pass an undefined method to be executed..? on: 2015-02-13 21:59:43
You create another thread and then wait for it?
30  Game Development / Newbie & Debugging Questions / Re: WorkerThread, how to pass an undefined method to be executed..? on: 2015-02-13 21:36:34
Like cylab said, I also don't really understand why would you not just use a simple Runnable interface for this purpose and want to hack stuff like that.
Pages: [1] 2 3 ... 43
 
wxwsk8er (49 views)
2015-03-20 15:39:46

Fairy Tailz (42 views)
2015-03-15 21:52:20

Olo (26 views)
2015-03-13 17:51:59

Olo (29 views)
2015-03-13 17:50:51

Olo (33 views)
2015-03-13 17:50:16

Olo (40 views)
2015-03-13 17:47:07

ClaasJG (29 views)
2015-03-10 11:36:42

ClaasJG (36 views)
2015-03-10 11:33:01

Pippogeek (45 views)
2015-03-05 14:36:23

Pippogeek (37 views)
2015-03-05 13:56:12
How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21

Resources for WIP games
by kpars
2014-12-18 10:26: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
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!