Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (109)
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   
Pages: 1 2 [3] 4 5
  ignore  |  Print  
  Astrofirm  (Read 14206 times)
0 Members and 1 Guest are viewing this topic.
Offline opiop65

JGO Kernel


Medals: 153
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #60 - Posted 2013-10-15 03: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!

Offline kingroka123

JGO Knight


Medals: 27
Projects: 5
Exp: 1 year


Gamer's Helmet


« Reply #61 - Posted 2013-10-15 04:02:33 »

Ill keep trying, please tell me if you get it.

Offline opiop65

JGO Kernel


Medals: 153
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #62 - Posted 2013-10-15 04: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!

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline HeroesGraveDev

JGO Kernel


Medals: 239
Projects: 11
Exp: 2 years


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


« Reply #63 - Posted 2013-10-15 07: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)

Offline opiop65

JGO Kernel


Medals: 153
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #64 - Posted 2013-10-15 22: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 Wink

Offline HeroesGraveDev

JGO Kernel


Medals: 239
Projects: 11
Exp: 2 years


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


« Reply #65 - Posted 2013-10-16 06: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)

Offline kingroka123

JGO Knight


Medals: 27
Projects: 5
Exp: 1 year


Gamer's Helmet


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

new screenshot with sunlight  Grin

Offline opiop65

JGO Kernel


Medals: 153
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #67 - Posted 2013-10-18 02:52:47 »

Wow, I'm loving that Smiley 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!

Offline kingroka123

JGO Knight


Medals: 27
Projects: 5
Exp: 1 year


Gamer's Helmet


« Reply #68 - Posted 2013-10-18 02:58:48 »

thanks man, what you are seeing may be the quality of the image being a 85% clarity .jpg image.

Offline kingroka123

JGO Knight


Medals: 27
Projects: 5
Exp: 1 year


Gamer's Helmet


« Reply #69 - Posted 2013-10-30 02:16:19 »

 

Okay so new update (pre-Alpha 2.0):
- lighting add
- day night cycle
- enemies (press k)
- task bubbles
- 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

DOWNLOAD

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline saucymeatman
« Reply #70 - Posted 2013-10-30 02: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!
 Smiley
Offline kingroka123

JGO Knight


Medals: 27
Projects: 5
Exp: 1 year


Gamer's Helmet


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

 Thanks,I really appreciate your post Smiley, 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.  Grin

Offline wessles

JGO Wizard


Medals: 66
Projects: 4
Exp: 3 years


Radirius Software Developer


« Reply #72 - Posted 2013-10-30 23:45:37 »

READ THIS:
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.<init>(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.<init>(Texture.java:133)
   at com.badlogic.gdx.graphics.Texture.<init>(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.<init>(Pixmap.java:137)
   ... 8 more

Offline saucymeatman
« Reply #73 - Posted 2013-10-30 23: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.
Offline opiop65

JGO Kernel


Medals: 153
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #74 - Posted 2013-10-30 23:56:16 »

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

Offline kingroka123

JGO Knight


Medals: 27
Projects: 5
Exp: 1 year


Gamer's Helmet


« Reply #75 - Posted 2013-10-31 00:21:36 »

READ THIS:
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.<init>(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.<init>(Texture.java:133)
   at com.badlogic.gdx.graphics.Texture.<init>(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.<init>(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

Offline opiop65

JGO Kernel


Medals: 153
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #76 - Posted 2013-10-31 01: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.

Offline kingroka123

JGO Knight


Medals: 27
Projects: 5
Exp: 1 year


Gamer's Helmet


« Reply #77 - Posted 2013-11-04 23: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  Grin. Just wanted to say thanks for the help along the way!   Pointing

Still got a long way to go though  Wink

Offline lcass
« Reply #78 - Posted 2013-11-04 23:57:36 »

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

JGO Knight


Medals: 27
Projects: 5
Exp: 1 year


Gamer's Helmet


« Reply #79 - Posted 2013-11-05 00: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.

Offline kingroka123

JGO Knight


Medals: 27
Projects: 5
Exp: 1 year


Gamer's Helmet


« Reply #80 - Posted 2013-11-17 20: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

Offline kingroka123

JGO Knight


Medals: 27
Projects: 5
Exp: 1 year


Gamer's Helmet


« Reply #81 - Posted 2013-12-06 01:58:20 »

new screen shot to show I'm still working on Astrofirm:

Offline opiop65

JGO Kernel


Medals: 153
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #82 - Posted 2013-12-06 02: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!

Offline kingroka123

JGO Knight


Medals: 27
Projects: 5
Exp: 1 year


Gamer's Helmet


« Reply #83 - Posted 2013-12-06 03: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

Offline Drenius
« Reply #84 - Posted 2013-12-06 16:08:38 »

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

Senior Newbie




The univertse is vast!!


« Reply #85 - Posted 2013-12-13 07: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.  Smiley
Offline kingroka123

JGO Knight


Medals: 27
Projects: 5
Exp: 1 year


Gamer's Helmet


« Reply #86 - Posted 2013-12-13 12:04:04 »

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

I'm actually surprised that nobody has asked about the frog.

Offline Phibedy

Senior Member


Medals: 8



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

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

Well, it seems like if you have to see it moving to recognize it as a frog.
Offline kingroka123

JGO Knight


Medals: 27
Projects: 5
Exp: 1 year


Gamer's Helmet


« Reply #89 - Posted 2013-12-13 22:13:02 »

Yeah, it jumps and everything. With physiiiiiiiiiicssssssss!!!!  Grin

Pages: 1 2 [3] 4 5
  ignore  |  Print  
 
 

 

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

The first screenshot will be displayed as a thumbnail.

CogWheelz (18 views)
2014-07-30 21:08:39

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

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

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

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

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

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

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

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

Riven (31 views)
2014-07-23 20:56:16
List of Learning Resources
by SilverTiger
2014-07-31 18:29:50

List of Learning Resources
by SilverTiger
2014-07-31 18:26:06

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

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
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!