Java-Gaming.org Hi !
 Featured games (91) games approved by the League of Dukes Games in Showcase (804) Games in Android Showcase (239) games submitted by our members Games in WIP (868) games currently in development
 News: Read the Java Gaming Resources, or peek at the official Java tutorials
Pages: 1 2 [3] 4 5
 ignore  |  Print
 Astrofirm  (Read 87511 times) 0 Members and 2 Guests are viewing this topic.
Opiop
 « Reply #60 - Posted 2013-10-15 01:56:46 »

No, that just gives me a out of bounds exception, which makes sense. Oh well, thanks for trying I'll keep messing with it!
kingroka123
 « Reply #61 - Posted 2013-10-15 02:02:33 »

Ill keep trying, please tell me if you get it.
Opiop
 « Reply #62 - Posted 2013-10-15 02:09:51 »

Wow, sorry everyone for so many posts! I feel bad :/

Well, I got it working. But my terrain is very rigid, I guess I'll just have to play with more values!
HeroesGraveDev

JGO Kernel

Medals: 383
Projects: 11
Exp: 4 years

┬─┬ノ(ಠ_ಠノ)(╯°□°)╯︵ ┻━┻

 « Reply #63 - Posted 2013-10-15 05:27:06 »

Simple Noise usage:

 1 `double h = SimplexNoise.noise((x + xoffset)/xscale, (y + yoffset)/yscale) * heightscale + heightoffset;`

x is the x coordinate. y is the y coordinate. For 2D terrain like you want, one of these must be constant.

xoffset and yoffset are irrelevant in this situation.

xscale and yscale define the smoothness of the terrain. The higher, the smoother.

heightscale is the multiplier for the height. Normal simplex noise ranges from -1 to 1. A heightscale of 10 will give -10 to 10 etc.

heightoffset is the offset for the average value (0 in normal simplex noise) of the noise.

So the following would give terrain that ranges from 10 to 20, with a smoothness of 15:

 1 `SimplexNoise.noise(x/15f, 0) * 5 + 15;`

(the height offset and scale mean that the terrain is in the range 15-5 to 15+5)

Opiop
 « Reply #64 - Posted 2013-10-15 20:17:42 »

Wow, that helps immensely! Seeing as this is the first time I've delved into noise functions, that was exactly what I needed to find values that work.

A few questions. Is height scale typically the size of the tile? For example, I'm using 32x32 pixel tiles. Should height scale be 32 so it only returns noise in iterations of 32 pixels? (If that makes sense).

Second question, is height offset's purpose simply to spread the tiles out farther on the y axis?
Thanks a lot!
+1 medal by the way
HeroesGraveDev

JGO Kernel

Medals: 383
Projects: 11
Exp: 4 years

┬─┬ノ(ಠ_ಠノ)(╯°□°)╯︵ ┻━┻

 « Reply #65 - Posted 2013-10-16 04:10:47 »

Heightscale and heightoffset are relative to the map.

Raw values from SimplexNoise are in the range -1 to 1.

What you need to do is transform those into the appropriate place for your world.

If I have a map that is 50 tiles high, and I want the deepest valley to go no lower than 20, and the highest mountain no higher than 40, then I'd put the heightscale as 20 (max-min) and the heightoffset to 30 (min+(max-min)/2)

kingroka123
 « Reply #66 - Posted 2013-10-18 00:18:48 »

new screenshot with sunlight
Opiop
 « Reply #67 - Posted 2013-10-18 00:52:47 »

Wow, I'm loving that The lighting looks a little off though, I can't tell why however :/ I think you need to change how much light is lost each tile just a little bit!
kingroka123
 « Reply #68 - Posted 2013-10-18 00:58:48 »

thanks man, what you are seeing may be the quality of the image being a 85% clarity .jpg image.
kingroka123
 « Reply #69 - Posted 2013-10-30 01:16:19 »

Okay so new update (pre-Alpha 2.0):
- day night cycle
- enemies (press k)
- zoom (ctrl+ mouse Scroll)

new Instructions:
press "m" for a mining task, "n" for a waypoint and "b" for building
press x after clicking a mining task to select blocks to mine
press v after clicking building task to enter build mode

saucymeatman
 « Reply #70 - Posted 2013-10-30 01:54:52 »

This game is really cool! I read your blog, and saw some of the
original screeshots and it's come a long way.

It needs :
-Tutorial, or at least a how to page. I dont understand the controls.
-Better night lighting, I cant see anything at all. Maybe this is better
more challlenging for the complete game, if so please add in a night vision until we can spawn lights

Other than that its a wicked fun game!

kingroka123
 « Reply #71 - Posted 2013-10-30 02:22:43 »

Thanks,I really appreciate your post , I really do need a tutorial page. I'll start on a google sites wiki for it. You actually can spawn lights (the red item when building) but I'll raise the light level at night for now.

thanks again, one question though, what's the average fps you get. I didn't release this earlier because I was having performance issues but I think I fixed them. If you could tell me your fps it would help a lot.
wessles
 « Reply #72 - Posted 2013-10-30 22:45:37 »

I ran it and got an error for missing "window.png".
I looked in the jar (you only need resources in the jar, not in the folder...), and saw a "Window.png" with a capital 'W'. So I fixed it, and then this came up:

 1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  17  18 `Exception in thread "LWJGL Application" com.badlogic.gdx.utils.GdxRuntimeException: com.badlogic.gdx.utils.GdxRuntimeException: Couldn't load file: Stickman Head.png   at com.badlogic.gdx.backends.lwjgl.LwjglApplication\$1.run(LwjglApplication.java:113)Caused by: com.badlogic.gdx.utils.GdxRuntimeException: Couldn't load file: Stickman Head.png   at com.badlogic.gdx.graphics.Pixmap.(Pixmap.java:140)   at com.badlogic.gdx.graphics.glutils.FileTextureData.prepare(FileTextureData.java:64)   at com.badlogic.gdx.graphics.Texture.load(Texture.java:175)   at com.badlogic.gdx.graphics.Texture.create(Texture.java:159)   at com.badlogic.gdx.graphics.Texture.(Texture.java:133)   at com.badlogic.gdx.graphics.Texture.(Texture.java:122)   at com.me.main.Game.create(Game.java:76)   at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:127)   at com.badlogic.gdx.backends.lwjgl.LwjglApplication\$1.run(LwjglApplication.java:110)Caused by: com.badlogic.gdx.utils.GdxRuntimeException: File not found: Stickman Head.png (Internal)   at com.badlogic.gdx.files.FileHandle.read(FileHandle.java:127)   at com.badlogic.gdx.files.FileHandle.length(FileHandle.java:580)   at com.badlogic.gdx.files.FileHandle.readBytes(FileHandle.java:215)   at com.badlogic.gdx.graphics.Pixmap.(Pixmap.java:137)   ... 8 more`
saucymeatman
 « Reply #73 - Posted 2013-10-30 22:49:21 »

Hope im not too late to anwser the Adverage frames per second question.
I get low (5-20) fps when loading a new map, and then
it jumps up signifigantly to about 60 for anything else I did.
Opiop
 « Reply #74 - Posted 2013-10-30 22:56:16 »

Yeah, when I played the game I maintained a high FPS the whole time, it felt super smooth and really nice!!
kingroka123
 « Reply #75 - Posted 2013-10-30 23:21:36 »

I ran it and got an error for missing "window.png".
I looked in the jar (you only need resources in the jar, not in the folder...), and saw a "Window.png" with a capital 'W'. So I fixed it, and then this came up:

 1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  17  18 `Exception in thread "LWJGL Application" com.badlogic.gdx.utils.GdxRuntimeException: com.badlogic.gdx.utils.GdxRuntimeException: Couldn't load file: Stickman Head.png   at com.badlogic.gdx.backends.lwjgl.LwjglApplication\$1.run(LwjglApplication.java:113)Caused by: com.badlogic.gdx.utils.GdxRuntimeException: Couldn't load file: Stickman Head.png   at com.badlogic.gdx.graphics.Pixmap.(Pixmap.java:140)   at com.badlogic.gdx.graphics.glutils.FileTextureData.prepare(FileTextureData.java:64)   at com.badlogic.gdx.graphics.Texture.load(Texture.java:175)   at com.badlogic.gdx.graphics.Texture.create(Texture.java:159)   at com.badlogic.gdx.graphics.Texture.(Texture.java:133)   at com.badlogic.gdx.graphics.Texture.(Texture.java:122)   at com.me.main.Game.create(Game.java:76)   at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:127)   at com.badlogic.gdx.backends.lwjgl.LwjglApplication\$1.run(LwjglApplication.java:110)Caused by: com.badlogic.gdx.utils.GdxRuntimeException: File not found: Stickman Head.png (Internal)   at com.badlogic.gdx.files.FileHandle.read(FileHandle.java:127)   at com.badlogic.gdx.files.FileHandle.length(FileHandle.java:580)   at com.badlogic.gdx.files.FileHandle.readBytes(FileHandle.java:215)   at com.badlogic.gdx.graphics.Pixmap.(Pixmap.java:137)   ... 8 more`

Hmm... for some reason, the .jar doesn't run without the resources in the file with the jar. Check to see if Stickman Head.png is in the folder with it. I seems that there are a lot of errors of the same type (that ...8 more thing at the end)

Yeah, when I played the game I maintained a high FPS the whole time, it felt super smooth and really nice!!

Hope im not too late to anwser the Adverage frames per second question.
I get low (5-20) fps when loading a new map, and then
it jumps up signifigantly to about 60 for anything else I did.

Absolutely wonderful. I will continue to upgrade the rendering system however.

What do you guys think about the art style? I might implement texture packs in the next update
Opiop
 « Reply #76 - Posted 2013-10-31 00:18:26 »

I like the basic style of your sand, it contrasts nicely with your stone walls. I would say the terrain should be kept simple, while players and the walls or items and the such should have more intricate textures.
kingroka123
 « Reply #77 - Posted 2013-11-04 22:39:56 »

I just uncovered a screenshot from when I first started to work on the game a few months ago:

And here is one from now:

Look at the improvements  . Just wanted to say thanks for the help along the way!

Still got a long way to go though
lcass
 « Reply #78 - Posted 2013-11-04 22:57:36 »

Very neat. Are you going to implement mobs and pathfinding in the future?
kingroka123
 « Reply #79 - Posted 2013-11-04 23:00:33 »

Very neat. Are you going to implement mobs and pathfinding in the future?

Yes, I'm trying to implement some simple path finding into the workers and start on some "other-worldy" mobs to be implemented. There are some very simple enemies in the game right now but those are just to test out a fighting system.
kingroka123
 « Reply #80 - Posted 2013-11-17 19:02:58 »

Hey guys,

Just wanted to share a little Google doc that I made on Astrofirm a while back: here

Next update will have doors and ladders
kingroka123
 « Reply #81 - Posted 2013-12-06 00:58:20 »

new screen shot to show I'm still working on Astrofirm:
Opiop
 « Reply #82 - Posted 2013-12-06 01:46:17 »

Cool! The tree leaves look a little blue though, I don't know if that's intentional to make it look like the sky is shining through, but I would say make them a little more green!
kingroka123
 « Reply #83 - Posted 2013-12-06 02:01:41 »

Cool! The tree leaves look a little blue though, I don't know if that's intentional to make it look like the sky is shining through, but I would say make them a little more green!

Thanks, the blue was intentional but if it doesn't look good I'll change it back
Drenius
 « Reply #84 - Posted 2013-12-06 15:08:38 »

By the way, the sky's blue looks a little bit too green^^
AullenVerch

Senior Newbie

The univertse is vast!!

 « Reply #85 - Posted 2013-12-13 06:44:28 »

I like the way you generate your trees with the different heights, it's a really nice touch. Have you tried adjusting the green parts to match the tree heights as well? Also I like the more blue ever green colors in the last screen shot. Actually the last screen shot has awesome colors all around.
kingroka123
 « Reply #86 - Posted 2013-12-13 11:04:04 »

Thanks, I really like that change color at different heights idea. I might just put that in.

Phibedy

Senior Devvie

Medals: 9

 « Reply #87 - Posted 2013-12-13 13:42:39 »

Frog? I thought that it's a weird cursor
Anyways, I like the idea of the game
Drenius
 « Reply #88 - Posted 2013-12-13 16:39:35 »

Well, it seems like if you have to see it moving to recognize it as a frog.
kingroka123
 « Reply #89 - Posted 2013-12-13 21:13:02 »

Yeah, it jumps and everything. With physiiiiiiiiiicssssssss!!!!
Pages: 1 2 [3] 4 5
 ignore  |  Print

 Riven (579 views) 2019-09-04 15:33:17 hadezbladez (5501 views) 2018-11-16 13:46:03 hadezbladez (2398 views) 2018-11-16 13:41:33 hadezbladez (5761 views) 2018-11-16 13:35:35 hadezbladez (1220 views) 2018-11-16 13:32:03 EgonOlsen (4660 views) 2018-06-10 19:43:48 EgonOlsen (5681 views) 2018-06-10 19:43:44 EgonOlsen (3196 views) 2018-06-10 19:43:20 DesertCoockie (4094 views) 2018-05-13 18:23:11 nelsongames (5114 views) 2018-04-24 18:15:36
 princec 10x Ali-RS 6x VaTTeRGeR 5x KaiHH 5x mudlee 5x philfrei 5x elect 4x Rain8 3x hansolo_ 2x gouessej 2x SteveSmith 2x ral0r2 1x saocrinn 1x Akazan 1x Apo 1x
 A NON-ideal modular configuration for Eclipse with JavaFXby philfrei2019-12-19 19:35:12Java Gaming Resourcesby philfrei2019-05-14 16:15:13Deployment and Packagingby philfrei2019-05-08 15:15:36Deployment and Packagingby philfrei2019-05-08 15:13:34Deployment and Packagingby philfrei2019-02-17 20:25:53Deployment and Packagingby mudlee2018-08-22 18:09:50Java Gaming Resourcesby gouessej2018-08-22 08:19:41Deployment and Packagingby gouessej2018-08-22 08:04:08
 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