Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (753)
Games in Android Showcase (228)
games submitted by our members
Games in WIP (842)
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 ... 18
1  Game Development / Newbie & Debugging Questions / Re: [LibGDX] Seperate scaling for UI and Game Screen on: 2018-04-12 09:47:08
Its a good idea to use 2 separate cameras for the game screen and the UI, then they can behave differently. Using multiple batches would provide no advantage.
2  Java Game APIs & Engines / Engines, Libraries and Tools / Re: Libgdx zoom and pan map on: 2018-03-03 09:36:53
question #1: you can use Camera.unproject() to change mouse screen coordinates into game world coordinates, which accounts for the zoom and translation.
3  Game Development / Newbie & Debugging Questions / Re: How many cameras should I use for an LibGDX game? on: 2018-02-08 21:50:09
I usually use 2 cameras for each screen, one for the game/background display, and one for the UI.
4  Java Game APIs & Engines / Engines, Libraries and Tools / Re: [LibGDX] Weird texture scaling on: 2018-01-31 22:50:18
it could be that the transparent pixels in your texture are a different color, and are causing interference when interpolated. Id try filling all the transparent pixels in with white, then deleting them again.
5  Games Center / WIP games, tools & toy projects / Re: Mortal Terminus on: 2018-01-26 03:01:49
I've started working on a level editor so that I can make maps more easily, and to help get all the messy level data and rendering code in better order. Also made a terrain blending shader, which looks much better than the old blocky terrain tiles and allows thousands of different terrain variants without having to hand draw any of them.



6  Games Center / WIP games, tools & toy projects / Re: Mortal Terminus on: 2018-01-20 20:52:37
The first line of my post tells you what things you can do Cheesy There's no real goals at present, but I wanted to get a demo up before moving onto coding more systems.
7  Games Center / WIP games, tools & toy projects / Mortal Terminus on: 2018-01-20 11:47:35
Kill pirates, make burgers out of their corpses, get lost in the desert.

I've been making this with LibGdx over the last couple of months and it's now somewhat playable, although the eventual gameplay will be completely different from what currently appears to be a 3d shooter. There's still a lot of place holders in there too.

Download (.jar 36mb): https://drive.google.com/open?id=10gEO8-6vewz07SjoAgELhQ80G6tCVGKH


8  Game Development / Newbie & Debugging Questions / Re: [Libgdx] Using progress bar as health bar on: 2018-01-13 00:38:23
About healthBar.setColor, problem with that it makes the whole screen to the color and not just the health bar :/

I would suspect that either the health bar's background, or perhaps the container/table that its in is filling the whole screen. Or the sprite batch color isnt being reset to (1,1,1,1) for some reason before other things are drawn. setting color that way is definitely going to be the easiest solution if you can work out what is causing that problem.
9  Game Development / Newbie & Debugging Questions / Re: [Libgdx] Using progress bar as health bar on: 2018-01-12 17:32:30
Since your health bar is an actor, you can use healthBar.setColor(). You probably want to give it a white image so that the colour tint works as expected.
10  Discussions / Miscellaneous Topics / Re: What I did today on: 2017-12-28 08:27:57
Completed the main features of yet another prototype, corpse cooking fun.
Now to just refactor the whole thing, remove the placeholder gfx and finish it.

11  Java Game APIs & Engines / OpenGL Development / Re: Seams rendering tilemap on: 2017-12-24 22:40:25
The lines in the image are part of a tile beside the one you are drawing in the tile sheet (the blue line is the cliff edge). so the problem is edge bleeding, which can be easiest fixed by adding some duplicate pixels padding around each tile in the tile sheet. Its usually more common with linear filtering but I think it can happen even with nearest filtering, due to the camera scaling not matching 1:1 with screen pixel size.
12  Game Development / Newbie & Debugging Questions / Re: Lighting problems on: 2017-11-02 07:49:56
its hard to follow that much code, but you probably want to smooth the normals like:


im not sure thats the only problem though cos your images look like a lot of the terrain is not getting light at all?
13  Discussions / Miscellaneous Topics / Re: What I did today on: 2017-08-21 12:49:16
My weather experiments are turning out interesting. The mountains and forests alter the wind flow, and the weather patterns change over the seasons. Now it needs to do something with heat and moisture so it can create rain and snow in the right places.

14  Discussions / Miscellaneous Topics / Re: What I did today on: 2017-08-14 14:16:18
I spent another day messing around with my water and lighting. Fixed up the sun light to allow for seasonal rise/set time and angle variation, which helped improve the coloring.



15  Discussions / Miscellaneous Topics / Re: What I did today on: 2017-08-09 11:15:56
I made some very simple procgen trees which sway around individually in the wind gusts, and some slightly creepy triangular people.

16  Discussions / Miscellaneous Topics / Re: What I did today on: 2017-08-02 11:46:21
I tried improving my water by using a more complex algorithm, but it ran too slowly and I don't know enough about shaders/math to fix it. So instead I tried a simpler approach of adding several layers of moving normal maps onto the basic wave vertex shader, which manages to run fast and looks half decent.



17  Discussions / General Discussions / Re: JGO Twitter List on: 2017-07-27 07:14:47
@CosmicMenace
18  Discussions / Miscellaneous Topics / Re: What I did today on: 2017-07-26 12:41:09
figured out how to calculate normals!

19  Discussions / Miscellaneous Topics / Re: What I did today on: 2017-07-21 23:51:07
I've been wanting to try making height map terrain for a long time, pretty rough still but it runs really fast and is satisfying to walk around. Now I've learnt how to use meshes that will be very useful for other things.

20  Discussions / Miscellaneous Topics / Re: What I did today on: 2017-07-10 12:54:47
Almost reached the end of my GUI building fun.

21  Games Center / WIP games, tools & toy projects / Re: TritonForge || 2D RPG Sandbox (New DL Soon, project revived) on: 2017-07-10 00:11:37
That looks pretty fun to explore, but I wonder if you could apply some kind of modifier using a low frequency of noise to create more variety at a larger scale.. that map looks very homogenous in general, where ever you go you are guaranteed to find similar structures of caves and resources. where ever you are, you can be sure that you can dig a few blocks in one direction and quickly find a new tunnel.
22  Game Development / Newbie & Debugging Questions / Re: I.T. professional: bored of being a tool - "Please Advise" on: 2017-06-17 23:46:15
https://github.com/libgdx/libgdx/wiki

This is the best starting place for working out how to do things.
23  Game Development / Newbie & Debugging Questions / Re: Right RGB Colors for day&night cycle? on: 2017-04-08 02:28:22
Here are some values I've used. I wanted everything to still be quite easily visible at night so that you can see what you're doing, so it doesn't get overly dark. I also used values for each hour, rather than only each time period because dawn and dusk have a more rapid light level transition compared to the gradual transitions going into and after mid day and mid night, so this gives better control over that transition rate.

      {{0.4f, 0.4f, 0.7f},// 12am
      {0.4f, 0.4f, 0.7f},// 1am
      {0.4f, 0.4f, 0.7f},// 2am
      {0.4f, 0.4f, 0.7f},// 3am
      {0.4f, 0.4f, 0.7f},// 4am
      {0.7f, 0.4f, 0.7f},// 5am //before sunrise
      {1.0f, 0.6f, 0.7f},// 6am //sunrise
      {1.0f, 0.8f, 0.8f},// 7am //after sunrise
      {1.0f, 1.0f, 0.9f},// 8am
      {1.0f, 1.0f, 1.0f},// 9am
      {1.0f, 1.0f, 1.0f},// 10am
      {1.0f, 1.0f, 1.0f},// 11am
      {1.0f, 1.0f, 1.0f},// 12pm
      {1.0f, 1.0f, 1.0f},// 1pm
      {1.0f, 1.0f, 1.0f},// 2pm
      {1.0f, 1.0f, 1.0f},// 3pm
      {1.0f, 1.0f, 1.0f},// 4pm
      {1.0f, 1.0f, 1.0f},// 5pm
      {1.0f, 1.0f, 1.0f},// 6pm
      {1.0f, 1.0f, 0.9f},// 7pm
      {1.0f, 0.8f, 0.8f},// 8pm //before sunset
      {1.0f, 0.6f, 0.7f},// 9pm //sunset
      {0.7f, 0.4f, 0.7f},// 10pm //after sunset
      {0.4f, 0.4f, 0.7f}}// 11pm
24  Java Game APIs & Engines / Java 2D / Re: Axonometric Projection? on: 2017-03-08 02:26:30
It's also interesting to note that you don't have to stick to 45 degrees, although it does look most correct.. you can use whatever rotation angle you want, which gives you the ability to view the scene from any angle and smoothly rotate the camera. It can be difficult to make objects on top of the map fit in properly with rotation however, but the option is there.
25  Java Game APIs & Engines / Java 2D / Re: Axonometric Projection? on: 2017-03-07 10:01:27
I was doing something similar to that recently. First I rotated a square by 45 degrees, then scaled its vertical size by 0.5, then translated it to the correct position. I don't think you need atan in there, its just a 45 degree angle.
26  Discussions / Miscellaneous Topics / Re: What I did today on: 2017-01-03 23:40:58
Here's a short video showing the fog in motion and a quick walk around the forest.

<a href="http://www.youtube.com/v/z6r_sy721yQ?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/z6r_sy721yQ?version=3&amp;hl=en_US&amp;start=</a>
27  Discussions / Miscellaneous Topics / Re: What I did today on: 2017-01-03 07:50:02
After many unfinished prototypes I think I have something that will work. It's actually based on something I designed when I was a kid but didn't have any skills to create it back then. It's a pseudo-3d orthographic rendering in third person, with free rotating camera. Today I did some work on improving the fog (which looks more interesting when its moving).

28  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-07-04 10:05:46
I got a start on my flowing water, it's still very rough and needs a lot of work to get right, but it certainly flows! The bulge in the middle is from dumping a bunch of water in one place.

29  Game Development / Newbie & Debugging Questions / Re: Line of sight on: 2016-07-02 01:40:55
That algorithm is pretty efficient, I've used it for constructing tile based field of view for the player, checking every tile every frame with no problem. The only thing is you may want to do some kind of additional tests if the target is blocked, since it can often get snagged on corners which you should be able to see past. (Although that might be more of an issue when detecting visibility of wall tiles, more so than detecting objects within a room)
30  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-06-19 06:34:44
I've added variable water depth to my isometric terrain. Each tile has its own separate water depth, although they are currently all set to 'seaLevel'. This is in preparation for implementing dynamic flowing water. But it might be a good idea to leave flowing for a while so that I can actually get some gameplay type things happening.

Click to Play
Pages: [1] 2 3 ... 18
 
ivj94 (583 views)
2018-03-24 14:47:39

ivj94 (48 views)
2018-03-24 14:46:31

ivj94 (374 views)
2018-03-24 14:43:53

Solater (61 views)
2018-03-17 05:04:08

nelsongames (109 views)
2018-03-05 17:56:34

Gornova (151 views)
2018-03-02 22:15:33

buddyBro (693 views)
2018-02-28 16:59:18

buddyBro (91 views)
2018-02-28 16:45:17

xxMrPHDxx (493 views)
2017-12-31 17:17:51

xxMrPHDxx (733 views)
2017-12-31 17:15:51
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05
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!