Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (804)
Games in Android Showcase (237)
games submitted by our members
Games in WIP (867)
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 / Re: LibGDX Draw item in players hand (2D top down view) on: 2015-05-19 23:35:04
Draw the sprite as you'd want it to show instead of trying to make some special stuff with code.

See this:
2  Game Development / Game Play & Game Design / Re: Perlin Noise? on: 2015-05-18 20:19:37

If you are just going to copy something, copy something that will make it easy to use instead.
3  Game Development / Newbie & Debugging Questions / Re: 1D Perlin Noise on: 2015-05-01 18:41:47
4  Game Development / Newbie & Debugging Questions / Re: LibGDX A* Pathfinding Assistance on: 2015-04-24 08:07:21
You follow the rest of the guide. All you are doing is checking all tiles, including the one it's currently on, if it's blocked or not. You are doing no calculation of costs or anything.
5  Game Development / Newbie & Debugging Questions / Re: Really strange bug with collision on: 2015-03-13 15:21:19
Usualy you solve the problems by just trying to create an MCVE, and you do that easily by trying to remove everything that has nothing to do with the problem/bug, and when you have just got the bug left, bam, there is the problem free from any other code that can steal your attention.
6  Game Development / Game Play & Game Design / Re: Getting Adjacent Tiles on: 2015-03-10 08:04:50
This is part of my bitwise autotiler. I havent used bitwise or counted in bits before so it's not perfect.

This is inside of a loop that checks every tile.
Tile temp;

            if (cleanMap[w - 1][h - 1] == 1)      temp.corner += 8;
            if (cleanMap[w - 1][h] == 1)         temp.side += 128;
            if (cleanMap[w - 1][h + 1] == 1)      temp.corner += 4;

            if (cleanMap[w][h - 1] == 1)         temp.side += 16;
            if (cleanMap[w][h + 1] == 1)         temp.side += 64;

            if (cleanMap[w + 1][h - 1] == 1)      temp.corner += 1;
            if (cleanMap[w + 1][h] == 1)         temp.side += 32;
            if (cleanMap[w + 1][h + 1] == 1)      temp.corner += 2;

            tilemap[w][h] = temp;

Corner and Side är chars that holds the values for the sides and corners.  It checks all 8 directions and adds them. But you can use one char for this, as i said, i'm a noob and havent refactored this yet.

Then i loop though all of the tiles again when i draw and decide which sprite to draw (C++)
if (tilemap[w][h].side == 32 && (tilemap[w][h].corner < 4)) draw->drawSprite(map, w*tileSize, h*tileSize, 5, 2);

This checks if it has a blocked/water tile to the right and a blocked in upper and bottom right corners.


I followed this guide:

It is far from the best method though. I'll be changing to this method in the future:

Using transparent tiles instead of tiles that contains everything.
7  Game Development / Game Mechanics / Re: Making GUIs on: 2015-03-04 23:06:54
Yes, but why?

There are libraries that can do it for you a hundred times more fancy.
Here is one i found a year ago or so, but haven't tried in a game yet
8  Game Development / Newbie & Debugging Questions / Re: Random 2d map for scroller (like terraria) on: 2015-02-25 22:38:49

9  Discussions / Miscellaneous Topics / Re: Drawing a Minimap on: 2015-02-25 19:08:06
Do you really have to draw everything on the minimap all the time? Will the terrain be changed often? Draw the terrain on an image, used that as background, on that add the rest of the stuff. Only draw a new image of the terrain when the terrain has changed.
10  Discussions / General Discussions / Re: Randomly generated items on: 2015-02-24 19:43:20
Could look at games like Dungeon Siege. They work(At least the first, and second?) by having different kinds of weapons but they can have on them Prefixes and Suffixes that gives different types of boosts or negative stuff. So you can have your pre-made sword, but have random chances for the Prefix/Suffix just as Gibbo says. So you can have your Deadly Iron Sword, your Iron Sword of Poison, Deadly Iron Sword of Poison, etc. Same sword, but different stuff added to it.
11  Game Development / Game Play & Game Design / Re: What's The Best Way To Define Items? on: 2015-02-19 19:24:34
Save your item info in a database, bam, only need one or at most one class for every type, melee, ranged, armor pieces, potions, etc.
For classes you check what things has in common, and order them in classes.
All items have names, prize, whatever, so thats an item class. Weapons also got damage, etc, so thats a weapon class, but there might be different types of animation, so maybe a sub class sword, axe, whatever, but wouldnt need that if you can just specify animation in a variable instead.
Etc. etc.
12  Game Development / Newbie & Debugging Questions / Re: Minimap using tilemap! on: 2015-02-16 12:01:42
You do the same thing, but instead draw to the minimap. Many people create a new view that hosts the minimap. So like a second game window inside your window.
But dunno if you are using a library or something and i haven't worked in java for a while so can't give any tips on how that is done.
13  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-02-15 19:11:17
Made a bitwise autotiler. Woop.
14  Discussions / General Discussions / Re: 95 free high resolution tiles for your games on: 2015-02-14 11:18:42
Thanks, was just about to start working on auto tiling and needed some better tiles. Smiley
15  Game Development / Newbie & Debugging Questions / Re: True sprite centering libgdx on: 2015-01-27 17:23:26
it is not typically a bad idea; OP mentioned pokemon which does exactly that.
Also your solution is very specific... it depends if its top down, side scroller, 3D, depends what you can do and where enemies can come from, game mechanics, map layout, art style and your artistic vision and aaalll that

Of course the point being: Be thoughtful when programming the camera since its very important, is absolutely valid.

There is a difference in drawing the character in the middle of the camera and centering the camera on the character.
16  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-01-04 21:16:19
I wasted several ours on this:

Bullet::Bullet(Spritesheet *sheet, etc, etc..){
   this->spritesheet = spritesheet;

Thats what i did today... wooo.
(C++, but still something i did today!)
17  Game Development / Newbie & Debugging Questions / Re: Creating a map like in banished on: 2015-01-02 20:31:10
If you want a 2dmap you simply go trough and decide what tile should be at what number, between this and that is sea tile, between these land, etc.
If you want a 3dmap you'll have a heightmap, use it to make the 3dmap.

18  Game Development / Newbie & Debugging Questions / Re: Creating a map like in banished on: 2014-12-27 22:11:56
Look around for Perlin/Simplex noise or Diamond-Square algorithm. Your answer most likely lies in there plus some sort of rivercreation. The voronoi-stuff isn't what you are looking for.
The guy behind Banished made some youtube clips during creation, probably speaks about map making in there, or in a blog-post.

As for language, Java is fine. C++ is used more because it lies in the history, they use it because they have used it before and don't want to spend time and money. It's great for games, but not an absolute must for games. In today's world with a lot of indies everyone is free to chose whatever, depending on what platforms they want to release on.
19  Game Development / Newbie & Debugging Questions / Re: 2D Random Map Generation: Where to start on: 2014-12-17 18:16:09
There are plenty of examples on google.
20  Discussions / Suggestions / Re: Ability to Remove a Medal on: 2014-12-11 21:45:31
Do people care about medals?

Do you care about getting recognized for an accomplishment?

Recognized? You mean feeling superior to other?
I am completly fine with someone saying "Thank you" if i have helped them, or told me directly that my ideas or whatever were good, instead of giving me some gamificationmedals.
21  Discussions / Suggestions / Re: Ability to Remove a Medal on: 2014-12-07 20:29:38
Do people care about medals?
22  Game Development / Newbie & Debugging Questions / Re: LibGDX & Tiled is stressing me out! on: 2014-10-28 09:23:31
You should stop and think if you really need it though, with procedural generation you won't get the same detail, I for one would want more detail in a platformer. Do you need procedural generation? Or does it just sound hip?
23  Game Development / Newbie & Debugging Questions / Re: LibGDX & Tiled is stressing me out! on: 2014-10-27 18:15:32
For platformer you could use those methods to make some landscapes, ups and downs and such. To make a mario out of it would be hard, you need to tackle the random generation with different methods, like creating parts and then randomly fitting them together. Atleast that's what i would think, never done or thought of doing any platformer though.
24  Game Development / Newbie & Debugging Questions / Re: LibGDX Tiled Collision on: 2014-10-27 17:53:10
Pasting my answer from your other thread here as well in case someone does a search looking for the same answer.

Follow dermetfans tutorial on LibGDX + Tiled collision.

Here his collision tutorial:

And the code:
25  Game Development / Newbie & Debugging Questions / Re: LibGDX & Tiled is stressing me out! on: 2014-10-27 17:50:17
I started working with making the maps procedurally, random, instead of having to manually make them, will suit my rts game more.
If you wanna give that a go look up some texts about Perlin Noise, Simplex Noise, Diamond Square(This one gave me the nicest result).

Here are some bookmarks i kept from jgo about that stuff:

Some other:

This thing is pretty awesome:
Gonna give that a try some day just for the heck of it.

Well, procedural generation is all the hype nowadays so you shouldn't have any problems finding tutorials for it.
26  Game Development / Game Play & Game Design / Re: Procedural cave challenge on: 2014-10-27 17:39:51
I found some cave generation stuff on this page:

Such as this:
27  Game Development / Game Play & Game Design / Re: Unlocking features of a game on: 2014-10-27 17:36:16
Players might get pissed off an not being able to use everything in the game. Tutorial stuff for new functions is only really needed at the beginning when you are totally new, let the user try the other stuff out themselves. I don't think i received a little tutorial on how to use the hookshot in zelda, or did i? Let them use trial and error.
28  Game Development / Newbie & Debugging Questions / Re: LibGDX & Tiled is stressing me out! on: 2014-10-27 17:31:20
I followed dermetfans YouTube-tutorials when i fiddled with libgdx and tiled, now i don't touch tiled anymore due to doing the maps procedurally instead.

Here his collision tutorial:

And the code:

And yes, there aren't much documentation, from the developers. They are usually busy developing, everything to use the library is in it. This isn't just libgdx and whatever, but true for unity and others, they usually give only the basics and then you have to learn on your own or from others who have learned themselves.
29  Game Development / Newbie & Debugging Questions / Re: What kind of game should a noob make for his first one? on: 2014-08-31 12:55:06
Space Invaders as many have said is a fine start.
It has many different things you can use for other games, you got movement, both yours by keyboard and enemy by code. You got shooting the same way. If you go basic SI you got your cities which have 'health' and different sprites. You got sound. And it is easy to improve of the game, animations, different weapons, powerups, you can make it a sidescroller, etc etc.
Same is true for many of the good old classics, they are simple, but allow for 'endless' improvements. My first game was Asteroids, improved it with resource management and stuff, different asteroids, drop different resources, and so on and you could upgrade and buy stuff.
30  Game Development / Newbie & Debugging Questions / Re: How to get if image is touched and not the background? LIBGDX on: 2014-07-30 08:29:17
I think he is after a more advanced collision detection, one that counts the hound as a round blob within a square(the 'background'?). No?

If not, then you can just create rectangles over the image, then use the .contains() on it?
Pages: [1] 2 3
Riven (463 views)
2019-09-04 15:33:17

hadezbladez (5323 views)
2018-11-16 13:46:03

hadezbladez (2249 views)
2018-11-16 13:41:33

hadezbladez (5598 views)
2018-11-16 13:35:35

hadezbladez (1164 views)
2018-11-16 13:32:03

EgonOlsen (4600 views)
2018-06-10 19:43:48

EgonOlsen (5474 views)
2018-06-10 19:43:44

EgonOlsen (3138 views)
2018-06-10 19:43:20

DesertCoockie (4033 views)
2018-05-13 18:23:11

nelsongames (4782 views)
2018-04-24 18:15:36
A NON-ideal modular configuration for Eclipse with JavaFX
by philfrei
2019-12-19 19:35:12

Java Gaming Resources
by philfrei
2019-05-14 16:15:13

Deployment and Packaging
by philfrei
2019-05-08 15:15:36

Deployment and Packaging
by philfrei
2019-05-08 15:13:34

Deployment and Packaging
by philfrei
2019-02-17 20:25:53

Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04: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!