Featured games (81)
games approved by the League of Dukes
Games in Showcase (480)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (547)
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 / Game Mechanics / Re: Scroller game mechanics on: 2014-08-14 10:12:06
It's pretty easy using Libgdx with Tiled maps and Box2D after you set up the Camera and Box2d world. Just keep centering the camera on the player's position for scrolling. Let box2d handle all the physics.
2  Game Development / Newbie & Debugging Questions / Re: EXCEPTION_ACCESS_VIOLATION (0xc0000005) on: 2014-08-11 23:41:24
What does "at the same time" mean ? Are you messing with multiple threads ?

The bullets get destroyed when they hit an enemy, or after a period of time. I think the Timer I use creates a new thread
3  Game Development / Newbie & Debugging Questions / Re: EXCEPTION_ACCESS_VIOLATION (0xc0000005) on: 2014-08-11 07:54:47

Thank you both for the replies, I really didn't expect to get any replies because this problem seemed uncommon.

Can I find out where the body is being created while the world is locked? The game seems to crash when I fire a "bullet", but I've added a check using if (!world.isLocked()) before creating a body.

I'm using the Oracle JDK, and I've just reinstalled JRE and the problem is still there.

I can see that it's crashing at Projectile.initialise(), but I'm checking the whole initialise() method to make sure that world.isLocked() is false.

The error is being trigged in here somewhere:

public void initialise() {

      if (!world.isLocked()) {
            Gameplay.worldBusy = true;
            shape.setAsBox(hwidth, hheight);
            body = world.createBody(bodyDef);
            body.setTransform(initPos.x, initPos.y, 0);
            fixture = body.createFixture(fixtureDef);
            body.applyLinearImpulse(initImpulse, body.getLocalCenter(),
            Gameplay.worldBusy = false;

but I can't see a problem with it. I'm already checking that the world isn't locked. Can anyone see a problem that would cause the error?

I've even made sure that the world doesn't step if the boolean worldBusy is true, so it can't be creating a body while stepping.

Edit: Well I've spent pretty much the whole day trying to solve this but still can't Sad. Is there a temporary solution to suppress this error (kinda like how you would catch an exception), so that the program will keep running?

I've been playing around with the game, and it seems to crash when I try to fire while a Projectile(body) is being destroyed at the same time. Can't say for sure that this is the problem, but it feels like it when playing. For now I'm just going to make the projectiles that the weapons fire sensors; hopefully that'll get rid of the problem for now.
4  Game Development / Newbie & Debugging Questions / EXCEPTION_ACCESS_VIOLATION (0xc0000005) on: 2014-08-11 02:50:08
I'm getting this error randomly while playing the game I've created in Libgdx. Here's the error log it generated:

Could anyone explain what it means and how I should try fixing it?

Edit: This is what it says in the console after it crashes: AL lib: (EE) alc_cleanup: 1 device not closed
5  Game Development / Newbie & Debugging Questions / Re: Libgdx concept and purpose of the classes on: 2014-08-11 02:47:37
I don't quite understand what you mean, but my Libgdx classes are like this:

I have a class which extends Game, so it has the create(), dispose(), render() etc methods. In the create() method I set the screen to a new screen (another class which implements the Screen interface).

In the render() method of the screen, I draw sprites/textures using a spritebatch. To change the position of an image on a click, I would use an Actor which has a ClickListener(), which sets the new position of the image on click.

6  Game Development / Game Play & Game Design / Phone Controls for Desktop Game on: 2014-08-09 09:54:18
Hey everyone,

I've been working on a game for the last couple of months and it's turning out great! It's a platformer where the player can move around and hit or shoot enemies. I'm polishing it up and getting ready to test it on android and iOS, but I'm not quite sure how I should implement the controls. On keyboard and mouse, the player moves and jumps using WAD (W-Jump, A,D move sideways), F for a punch and mouse + Left click to aim and shoot.

I've been considering removing the aim to shoot feature and only allow horizontal shooting, but my maps have slopes and the enemies can fly.

I've also considered an auto-targeting mechanism but that seems like it would take the fun away from the game.

Any suggestions would really be appreciated Smiley
7  Game Development / Newbie & Debugging Questions / Re: Bullet shooting in mouse direction on: 2014-08-07 12:53:20
Get the position of the mouse (mouseX, mouseY), and the position of the gun (gunX, gunY). The vector from the gun to the mouse is (mouseX-gunX, mouseY-gunY).

Create a bullet at (gunX, gunY), and depending on how you handle movement: increment the position of the bullet by (mouseX-gunX, mouseY-gunY), multiplied by a constant depending on the speed of the bullet. The constant would be 1 if you want it to hit straight away, 0.5 if you want it to hit in two frames etc.
8  Discussions / General Discussions / Re: What hosting do you use for your websites? on: 2014-07-20 10:06:30
I've used Justhost ( for a few months now and they've been pretty reliable so far. It's $11 for one single month, or $8 a month for 3 months, $3 a month for 24 months.
9  Game Development / Newbie & Debugging Questions / Re: LibGDX - Tiled collisions? on: 2014-06-03 13:39:26
Looks like you found a solution Smiley. Just wanted to mention the Box2D methods because I use it and it works well. You could create a static body for each tile if the worlds are not extremely large. Or you could manually create objects in Tiled that correspond to collision regions, and use Box2D to generate static bodies there. This allows for more physics options in the future if you intend to use Box2D.
10  Game Development / Game Mechanics / Re: How To Make 2D Customizable Sprites and Animations on: 2014-01-07 12:18:31
Hey, a quick question with the sprite based animations - because there are separate sprites in each complete character animation, does that mean I have to animate each of the pieces individually, so one walking animation for each style of "legs", "body" etc?

Also, a more practical question, how would you actually go about creating the animation? I'm okay at creating spritesheets for entire characters whole, but animating, say, arms only for walking seems a bit more difficult. Like I said, I'm not good at art/graphics. I guess the issue is more to do with timing and putting all the pieces together.
11  Discussions / General Discussions / Re: How do you manage your ideas and resources on: 2014-01-05 04:10:20
I use the most basic tools - Windows notepad and iOS 7 reminders app.

I have all my ideas and "to dos" in a text file, and add to the reminders app when I think of something away from the computer. Quick, easy and effective.
12  Game Development / Game Mechanics / Re: How To Make 2D Customizable Sprites and Animations on: 2014-01-05 04:05:43

It seems like using separate sprites is the way to go from what I've read, as bone animations may be hard to work with. I thought about the overlaying and composite sprites ideas but I'm not sure how to implement it.

I also just came up with an idea but don't know if it's good, could someone please give some suggestions? I was thinking I can set a position  for each part of the sprite that can be customised, for example, a position for the head, body, legs, both arms etc, and render different sprite animations at those positions. Each character sprite will be the same size. Something like this:

What do you guys think?
13  Game Development / Game Mechanics / Re: How To Make 2D Customizable Sprites and Animations on: 2014-01-04 14:05:27
Hi, thanks for the reply. I considered that method, and maybe I'm misunderstanding it, but it seems like there are going to be way too many sprites. For example, even if there are 4 different armours, and 4 different weapons, and 4 walking animations for each direction, you would have to make 64 different sprite animations.
14  Game Development / Game Mechanics / Re: How To Make 2D Customizable Sprites and Animations on: 2014-01-04 13:52:18
Hey, thanks for the really quick reply. I had a look at your suggestion of 2D bone animation and came across Spine. I will look into Spine and try it out, but there doesn't seem to be many tutorials on using it (with libgdx). Once you export the animation as a JSON, how do you render it? And how does that allow you to customize the parts of the animation?

Spine looks really good and I plan on purchasing it once I have an idea of how to use it with my project.
15  Game Development / Game Mechanics / How To Make 2D Customizable Sprites and Animations on: 2014-01-04 13:26:07

I've been working on my project for a while and I'm stuck on one part, which is implementing customizable sprite animations. I would like to be able to have many different sprites for, for example, character animations with different armours and weapons. The game view is top down / 3/4, and characters have different walking animations for different directions. I'm not sure if my explanation is clear, but I'm sure you'll know what I mean.

What is the best way to achieve this? Art and graphics design has always been the most difficult part of any kind of work for me, so any help will be greatly appreciated.

Thanks, and I hope everyone has had a happy new year!
16  Game Development / Newbie & Debugging Questions / Re: Kryonet Packet Recieving Issues on: 2013-12-21 12:20:38
Did you try registering the packets before adding the Listener? I don't know if this will fix it, but I think i had this problem before, and that was one of the things I did and it worked.
17  Game Development / Networking & Multiplayer / Re: Online RPG Secure Login and Player Actions on: 2013-12-12 12:53:49
Wow that was a fast reply lol, thanks!

I understand your idea, but how would you generate a key, and where would it be stored on the server? In the actual server application, or the database?
18  Discussions / General Discussions / Re: Did you ever cut corners to solve a problem? on: 2013-12-12 12:44:17
I can definitely relate to the "temporary working solution". Another corner I cut, although not to solve a particular problem, is using static a lot, because it's quicker and easier, and I don't seem to run into any problems.
19  Game Development / Networking & Multiplayer / Online RPG Secure Login and Player Actions on: 2013-12-12 12:35:03

I'm working on an online RPG type thing, where user stats are stored in a MySQL database. Basically I'm not sure how to allow the players to perform actions securely after they've logged in. I could have done it by letting the client know that the player successfully logged in, and allowing actions to be sent to the server, but my friend (who can hack games) said it's not very secure.

The other method I thought of is to check whether the username and password entered by the player is correct every time he/she tries to perform an action, but that seems inefficient.

EDIT: I'm using Kryonet for the networking.

Any ideas?


20  Game Development / Game Play & Game Design / Re: Damage Types in RPGs and Roguelikes on: 2013-12-12 12:15:38
What about different subsets together, like elemental (fire, water, lightning etc), and effect or whatever it's called (stun, poison, confuse etc). So you can have a weapon which does water and stun damage.
21  Discussions / General Discussions / Re: Give me a game or program idea! on: 2013-12-06 05:35:40
Wow, before I didn't know what to do because I had no ideas. Now I don't know what to do because there's so many.

@SHC: Depends on the idea - how original and interesting it is
22  Game Development / Game Play & Game Design / Re: RPG stats on: 2013-12-04 10:58:17
Just my opinion, but for combat, i like having a few different skills which affect the weapons which can be used and how effective they are. For example, strength, dexterity, magic, stamina etc.

I'm not sure what type of game you're making, but a wide variety of non-combat skills which all have an impact on the player would also be nice.

Oh, and on the archery stuff, in my experiences, it seems to be more dexterity based rather than strength, but strength also helps. Maybe you can make weapons depend on more than one skill.
23  Games Center / WIP games, tools & toy projects / Re: The Entropy Game Engine on: 2013-12-04 10:50:24
I'm excited for this, seems like it can be a really great engine!
24  Game Development / Game Play & Game Design / Libgdx 2D Lighting on Tiled Map on: 2013-12-02 12:26:52

Could anyone please explain a method to create 2D lighting on a Tiled map? I would like to be able to place a tile or object with set properties which define the light, then have the light be produced in game. The light should just increase the brightness, and change the colour tint of the surrounding area, within a set radius. How would you go about implementing the lighting effect? Would you somehow modify the graphics of the tile, or maybe draw a layer above it?

Any ideas will be greatly appreciated.

25  Game Development / Game Mechanics / Re: Fading in and out music in libgdx on: 2013-12-02 12:20:11
I haven't actually used sound in libgdx, but I have in Java. I believe in libgdx you would create a Music, which you can set the volume of, using music.setVolume(float). Then you can tween the volume.
26  Game Development / Game Play & Game Design / Re: 2D vs 3D World Immersion on: 2013-12-02 11:54:53
Wow Oskuro, that's a lot of really useful information! Now that I think about it, I can totally relate to what you said - games that immersed me the most, like the old runescape, tetris, and the elder scrolls have all those elements you described.

Great advice for anyone aiming to make an immersive and engaging game.

I'm actually saving that post so I can refer to it later Tongue

And, Oskuro, I would like to hear your opinion on how graphics play a role in immersion?
27  Discussions / General Discussions / Re: Give me a game or program idea! on: 2013-12-01 23:44:10
I really wanted to make mmorpg like runescape. It really brings back memories Always wanted to make mmorpg games like old runescape.

Me too! Runescape was one of my favourite games of all time back when I was a newb at it.

Thank's for the ideas everyone. I'm now trying to decide between a 2D top down shooter or a 2D rpg similar to runescape.

AI seems a bit advanced, especially something like chess. Perhaps something less complex like checkers would be more suitable.
28  Discussions / General Discussions / Give me a game or program idea! on: 2013-12-01 13:17:34
Hey JGO,

I've finally finished my exams a couple of weeks ago, and now I have a 3 month break with nothing much constructive to do (besides a bit of volunteer work).

if anyone has a video game or program idea, something reasonable for my level of experience, I'll work on getting it done and show the end product, and maybe also make updates on the progress. I have about 3 years of game programming experience in java, which might not be much compared to a lot of people on here, but I can still get things done.

All suggestions are welcome; they may also inspire others here.

Happy holidays everyone!
29  Discussions / General Discussions / Re: A Reminder To Everyone Here on: 2013-12-01 13:01:39
I'm low ranked on this forum but I haven't experienced the problem of high ranks looking down on me, or other people because of their rank. People seem very nice here Smiley , that's why I love JGO, even though I don't post too much (I browse this forum almost daily)
30  Game Development / Game Play & Game Design / Re: 2D vs 3D World Immersion on: 2013-11-18 22:35:28
That's a great video, I learned some things from it that will definitely help with my projects. Thanks!
Pages: [1] 2 3

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

The first screenshot will be displayed as a thumbnail.

atombrot (25 views)
2014-08-19 09:29:53

Tekkerue (24 views)
2014-08-16 06:45:27

Tekkerue (23 views)
2014-08-16 06:22:17

Tekkerue (13 views)
2014-08-16 06:20:21

Tekkerue (20 views)
2014-08-16 06:12:11

Rayexar (58 views)
2014-08-11 02:49:23

BurntPizza (38 views)
2014-08-09 21:09:32

BurntPizza (30 views)
2014-08-08 02:01:56

Norakomi (37 views)
2014-08-06 19:49:38

BurntPizza (67 views)
2014-08-03 02:57:17
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

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08 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!