Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (536)
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 ... 5
1  Games Center / Showcase / [LD29] Cave Runner - A multi monitor game on: 2014-04-29 20:56:44
I created this game in 72 hours with a friend for the Ludum Dare game jam!



So, the idea to use more than one monitor was ambitious and has severe bugs on some multi monitor machines!
As far as I'm aware, the game works fine on all single monitor setups however.

If you have issues with the game and you really are desperate to play (which you shouldn't be as the level design was VERY poor  Grin) you can unplug or disable one of your monitors to just play on one.

Ultimately the game was buggy, unfinished, unpolished and game play wise underwhelming, but I am pleased with our attempt to innovate and try something new!

I'd love to hear what you think of this concept!

Ludum Dare Page
2  Game Development / Newbie & Debugging Questions / Bitmasking with multiple tiles on: 2014-04-16 16:31:47
Just took a look at this really great article post from angryfishstudios: http://www.angryfishstudios.com/2011/04/adventures-in-bitmasking/

My question is, what is the best away to achieve this effect if I had more than 2 types of tiles that all needed to connect into eachother. Would I have to draw out every single possible combination of tiles?

Thanks!
3  Game Development / Newbie & Debugging Questions / Re: New book : Fundamental 2D Game Programming With Java on: 2014-04-15 18:38:00
Would be interested to take a look in this one. Look a bit on the expensive side for me at the moment though :S

By the looks of the preview it uses the default Java2D library but all it boasts in its description is :

Quote
application programming, full-screen games, input handling, matrix transformations, basic physics, intersection testing, collision detection, and much more

Unless the 'much more' really is much more, this doesn't really seem all that worth it. These are the kind of relatively basic things you can find and probably learn more about from internet tutorials and forums
4  Games Center / WIP games, tools & toy projects / Re: Square World on: 2014-02-21 22:06:07
No it is not his code. I just learn how to create a game like that and i create my own. The texture of character is from his tutorial but in version 0.2.0 i will change it

Sounds a bit suspicious if you ask me, you should really just make your own art assets, I mean, these aren't exactly that hard to make o0
5  Game Development / Newbie & Debugging Questions / Re: Random Sprites Showing on: 2014-02-19 13:06:49
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
public class User {

    private Code code;

    public static Code getCode() {
        return code;
    }

    public static void main(String[] args) {
        User gibbo3771 = new User();
        System.out.println(gibbo3771.getCode().toString())
    }
}

I get a nullpointerexception.  Emo

Ontop of what trollwarrior suggested, you never actually instantiate the code variable, it should look more like this:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
public class User {

    private Code code = new Code();

    public static Code getCode() {
        return code;
    }

    public static void main(String[] args) {
        User gibbo3771 = new User();
        System.out.println(gibbo3771.getCode().toString())
    }
}
6  Game Development / Newbie & Debugging Questions / Re: Trying to set up a class hierarchy on: 2014-02-18 12:44:21
Maybe try using an init() method to instantiate those variables instead of the constructor like this :

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
public class Player extends Entity {
   Texture texture;
   FixtureDef fixtureDef;
   BodyDef bodyDef;
   CircleShape shape;

   public Player(SpriteBatch spriteBatch, World world, float WORLD_TO_BOX, float BOX_TO_WORLD) {
      super();
      //Planned to define texture, fixtureDef, bodyDef and shape and set their attributes here
     super.init(texture, spriteBatch, world, fixtureDef, bodyDef, shape, WORLD_TO_BOX,
            BOX_TO_WORLD);
      // TODO Auto-generated constructor stub
  }

}
7  Game Development / Newbie & Debugging Questions / Re: 2D layering in OpenGL on: 2014-02-13 22:23:45
I suppose you're right, 100 fps is more than enough to run a game on. I'm just concerned about adding more entities to the screen and that slowing down the game even further
8  Game Development / Newbie & Debugging Questions / Re: 2D layering in OpenGL on: 2014-02-13 22:05:34
Realistically speaking, 50 - 30 fps is not really anywhere near good enough for a 2d game  Undecided
9  Game Development / Newbie & Debugging Questions / Re: 2D layering in OpenGL on: 2014-02-13 20:58:17
I think however, although 100 fps is manageable at the moment, in future, the efficiency of that rendering won't be good enough
10  Game Development / Newbie & Debugging Questions / Re: [Math/Geometry/Mesh-Generation] Planetary Surface on: 2014-02-13 19:46:32
So you're struggling to map the points on your noise graph to a 3D mesh?
11  Game Development / Newbie & Debugging Questions / Re: [LIBGDX] skinning a cube with multiple textures on: 2014-02-13 19:43:32
Could we get a full view of your code?
12  Game Development / Newbie & Debugging Questions / Re: 2D layering in OpenGL on: 2014-02-13 19:35:31
I appreciate creating 10 layers would be easy but...

As I mentioned, I need to render each individual body part of each entity on the correct layer which means with a large amounts of entities i need a more dynamic range of layers so instead of having layers 1, 2, 3, 4 etc. I have an each individual z value for each object
13  Game Development / Newbie & Debugging Questions / Re: [Math/Geometry/Mesh-Generation] Planetary Surface on: 2014-02-13 19:33:02
I don't quite understand what you're saying here. Why do you need to generate points in between the 4 edge points in the first place?
14  Game Development / Newbie & Debugging Questions / Re: 2D layering in OpenGL on: 2014-02-13 19:07:46
Hi appreciate your response and I do realize how absurd it really is to use one VBO for each tile  Grin

I appreciate you said you weren't following this thread but the main issue I'm having, is in a large VBO there is no easy way of layering it with other objects outside the VBO.

For example, usually I would write the code like this without VBOs

1  
2  
3  
4  
5  
6  
7  
8  
      for (int y = chunkH - 1; y >= 0; y--) {
         for (int x = chunkW - 1; x >= 0; x--) {
            //render tiles at coordinate
        }
         for (int x = chunkW - 1; x >= 0; x--) {
            //render entites in tiles at coordinate
        }
      }


This meant that all entities were rendered on top of the necessary tiles and behind the tiles that they shouldn't be in front of.

The issue with a big VBO for each chunk of tiles, is that I can't correctly render the entities layered with the tiles.

By my reckoning the only real way to make this work properly is to enable depth testing and use z values the layer things but this is difficult due to a number of issues:
  • Each tile needs to be rendered on a different z value
  • Each entity needs to rendered on a different z value
  • Each entity is made up of multiple body parts so those body parts will also need to be layered correctly and rendered on different z values
  • I also need to have GUI objects rendered on certain layers, but on top of the main world
15  Game Development / Newbie & Debugging Questions / Re: 2D layering in OpenGL on: 2014-02-13 18:44:19
Having switched to immediate mode, I've dropped from around 150fps to 100fps. It would seem in this case an individual VBO for each tile is the most viable option here.

I think, as layering only takes place on the y axis, I will give each row of tiles its own VBO to be rendered on as this seems the most efficient

EDIT

Upon reflection, a depth based management system does seems like a lot of work here but after a bit of thinking, I reckon i might give this a go, giving gui elements and world elements there own individual depth layers
16  Game Development / Newbie & Debugging Questions / Re: 2D layering in OpenGL on: 2014-02-13 18:16:53
Ok thanks  Cheesy

I will try implementing this now and will report back on how I get on
17  Game Development / Newbie & Debugging Questions / Re: 2D layering in OpenGL on: 2014-02-13 08:53:24
Surely generating a vbo for each individually tile is still quicker though?
18  Game Development / Newbie & Debugging Questions / Re: 2D layering in OpenGL on: 2014-02-12 22:24:09
By some vague calculations i reckon i need to render around 4096 at once though  Undecided.

This is really gonna bug me. I will think while I sleep tonight and see if I come up with anything.

Certainly and interesting problem though
19  Game Development / Newbie & Debugging Questions / Re: 2D layering in OpenGL on: 2014-02-12 22:16:52
The project that I'm working on is a tile based RPG game.

I'm not very confident using a shader at the moment, mainly cause i suck at GLSL, but also I would like to emulate some sort of layering system that's reminiscent of the whole 'last rendered is on top' feature.

Effectively I guess what I'm asking is, whats the fastest way to render out a 16 * 16 area of tiles without rendering them all in the same VBO
20  Game Development / Newbie & Debugging Questions / Re: 2D layering in OpenGL on: 2014-02-12 21:55:32
Any ideas on how to manage this system?

I triad incrementing a global z value by 0.0001 so that every time i rendered on object it would be put slightly in front all of the other objects but this doesn't really work as the VBOs are generated once and then have to be fully recompiled to change their z value
21  Game Development / Newbie & Debugging Questions / Re: 2D layering in OpenGL on: 2014-02-12 21:17:33
That was the original plan, but managing all the z values got very messy :S
22  Game Development / Newbie & Debugging Questions / Re: 2D layering in OpenGL on: 2014-02-12 20:16:14
The reason why I switched them to rendering them individually because I needed the entities within the tiles the be rendered on top of each tile, but not rendered on top of the tiles below the entity so the layering is correct. I'm sorry if I'm being to vague I'm really bad at explaining things  Tongue.

If you really want the code i can try and paste it but it is a very long chunk of code with a lot of additional variables and functions not to do with this topic
23  Game Development / Newbie & Debugging Questions / Re: 2D layering in OpenGL on: 2014-02-12 19:00:35
Each tile is a quad with a texture applied to it. Before I had this depth issue, I was adding each chunk (16 * 16) of tiles to one large buffer object, but now I need to render a row of tiles and all of the entities in that row of tiles which will mean making 16 buffer objects for each row in the chunk which seems very inefficient and has caused large frame drops. The entities in that tile usually are made up of around 6 VBO's themselves as each individual part of the entity needs to be manipulated
24  Games Center / WIP games, tools & toy projects / Re: Society - A city builder on: 2014-02-12 18:14:39
This quite coincidentaly looks a lot like a game project i gave up on a number of months ago:



Wish you all the best with this and will look forward to seeing where this goes Cheesy
25  Game Development / Newbie & Debugging Questions / Re: 2D layering in OpenGL on: 2014-02-12 18:05:56
No one have any ideas for this  Huh
26  Game Development / Newbie & Debugging Questions / Re: 2D layering in OpenGL on: 2014-02-10 08:36:13
I'm now having another issue, because of layering, I want to render each tile and then render the entities within that tile. This means now instead of generated one VBO for each chunk of tiles, I have to generate a VBO for each individual tile and render it with its entities. This, although still playable, has had some big performance impacts that i could really do without.

I have tried giving each type of tile an idividual VBO and then just translating it to its wanted position each time, but this is also way too slow.

Any ideas?
27  Game Development / Newbie & Debugging Questions / Re: 2D layering in OpenGL on: 2014-02-08 15:54:12
Ok, thanks, will try this and get back to you when i have a moment Cheesy
28  Game Development / Newbie & Debugging Questions / Re: 2D layering in OpenGL on: 2014-02-08 15:51:47
unfortunately OpenGL seems to render object the other way round, objects rendered first at the front
29  Game Development / Newbie & Debugging Questions / Re: 2D layering in OpenGL on: 2014-02-08 15:44:22
I'm already using the depth buffer to layer objects. Is there any way i can easily layer objects without using the depth buffer?
30  Game Development / Newbie & Debugging Questions / 2D layering in OpenGL on: 2014-02-08 13:08:28
Having worked in a default Java 2D graphics for a good while, I'm used to the concept that the last thing that is rendered goes on top.

I'd like to simulate this similar layering in a 2D OpenGL game.

Up until now, I have been setting z values of the individual objects to decide what gets rendered on top, but this is getting very awkward and impractical especially when adding transparent objects.

I had the idea of just increasing the z value that each object is rendered on as objects are rendered each frame, but I'm using buffer objects that only get generated once and then rendered each frame. Also, the buffer objects have differing z values within them so it becomes difficult to layer them individually.

I realize a lot of this probably doesn't make any sense but any help would be greatly appreciated Cheesy
Pages: [1] 2 3 ... 5
 

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

The first screenshot will be displayed as a thumbnail.

Riven (18 views)
2014-07-29 18:09:19

Riven (13 views)
2014-07-29 18:08:52

Dwinin (12 views)
2014-07-29 10:59:34

E.R. Fleming (31 views)
2014-07-29 03:07:13

E.R. Fleming (12 views)
2014-07-29 03:06:25

pw (42 views)
2014-07-24 01:59:36

Riven (41 views)
2014-07-23 21:16:32

Riven (28 views)
2014-07-23 21:07:15

Riven (29 views)
2014-07-23 20:56:16

ctomni231 (60 views)
2014-07-18 06:55:21
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!