Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (499)
Games in Android Showcase (118)
games submitted by our members
Games in WIP (568)
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
  ignore  |  Print  
  Wilderness To Home  (Read 5930 times)
0 Members and 1 Guest are viewing this topic.
Online trollwarrior1
« Reply #30 - Posted 2014-02-25 12:16:08 »

Added A* path finding algo.. I though it would be much more difficult Cheesy

Now don't have to go around stuff manually Cheesy
Online trollwarrior1
« Reply #31 - Posted 2014-03-05 11:39:24 »

Hmmmmmmmm. So today I was messing around with a new feature which has something to do with lighting. Basically calculating how lit the player was from lighting, and if light was 0, than damage the player or something like that, so that player would have to have light source always.
Previous to this moment, I was calculating lighting on the GPU which was really fast.
I then transferred that code to the CPU so I could calculated lighting for player and know how lit player is.
I then thought I would try to calculate all the lighting on the CPU. Here are the results.

Here are some features of different kind of lighting modes that I will implement today. Hopefully everyone will be able to play the game now Cheesy

Here are pros/cons/features of different lighting modes:
GPU Lighting with dynamic indexing (i++)
* Almost no cost;
* Infinite amount of lights (theoretically, if you have infinite computing power);
* Smallest amount of computers can run this code;

GPU Lighting with NO dynamic indexing
* Almost no cost;
* Finite amount of lights. This depends on how many lights you write in vertex shader;
* Middle amount of computers can run this code;

CPU Lighting
* Kinda big cost. When I added 10 lights on my level (fires) performance dropped from 500fps to 340-350 fps (30% performance drop)
* Infinite amount of lights.
* Probably any computer can run this .


I will need to do some more testing and confirm my hypothesis Cheesy

After that, I will polish some bumps on my game, and will release a new version Cheesy

Online trollwarrior1
« Reply #32 - Posted 2014-03-09 16:14:55 »

0.2 version is 'officially' released or something like that.
Original post has been updated with information and download link.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Drenius
« Reply #33 - Posted 2014-03-09 17:59:11 »

Quite nice!
But you should really add some kind of ingame explanation how to craft what.
And the water: The beaches might look quite ok, but the water is too blue. It is way more intensive than anything else.
Online trollwarrior1
« Reply #34 - Posted 2014-03-09 18:11:12 »

Do you think this water color looks nicer?

Offline Drenius
« Reply #35 - Posted 2014-03-09 18:14:23 »

No. What did you change?
I ment the color. It is blue; deep blue; all the other colors are somehow ... gray ... bright; pale!
The water is not. Some gray and maybe a (really) little bit green would be nice.
Online trollwarrior1
« Reply #36 - Posted 2014-03-09 20:57:37 »

After a crap load of experimenting(paintnet), I managed to do this image.


Got to respect artists even more now.. Art is hard work, for me at least Cheesy





Ok now some 'experiment' images
hue +5


hue +10
Offline Drenius
« Reply #37 - Posted 2014-03-09 21:04:20 »

Good job!
Offline Jacob Pickens
« Reply #38 - Posted 2014-03-09 21:06:50 »

Sadly, It doesnt run on mac. Cry
Online trollwarrior1
« Reply #39 - Posted 2014-03-09 21:08:44 »

Sadly, It doesnt run on mac. Cry

!T SHULF RAI IN NAF RII RARRLR LJS
(Translation: It should run on Mac, error please)
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline opiop65

JGO Kernel


Medals: 154
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #40 - Posted 2014-03-09 21:10:13 »

Wut

Is that troll language?

Offline Drenius
« Reply #41 - Posted 2014-03-09 21:10:50 »

Why is the border from the sand to the water brown again?
Offline Jacob Pickens
« Reply #42 - Posted 2014-03-09 21:11:32 »

Haha I don't know how to find errors. I'll open it up in terminal, but if it doesnt spew out an error message I'm useless.
Online trollwarrior1
« Reply #43 - Posted 2014-03-09 21:15:03 »

@opiop
Its my special brain powered encryption.
You place fingers on random letters and type as if you were typing real text, but without moving your fingers, or sometihng like that.

@Drenius
Should it be darker/bluer or what? I changed only water color.

@Jacob
What does System.getProperty("os.name"); say on Mac?


EDIT-----------------
mac native folder name is off. you can manually change it to 'mac' from 'macosx' or wait till I upload newer file.
EDIT----------------------------
I found a huge bug, don't know how I didn't notice it sooner. If you say pick up flint, and open right click box when you're already running to pick it up, you can pick up 2 flints from 1 flint on the ground.
Offline Jacob Pickens
« Reply #44 - Posted 2014-03-09 21:21:44 »

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
Exception in thread "main" java.lang.reflect.InvocationTargetException
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.lang.UnsatisfiedLinkError: Can't load library: /Users/iBGEnt/Desktop/WTH 0.20/nat\mac/liblwjgl.dylib
   at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1846)
   at java.lang.Runtime.load0(Runtime.java:795)
   at java.lang.System.load(System.java:1061)
   at org.lwjgl.Sys$1.run(Sys.java:70)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.lwjgl.Sys.doLoadLibrary(Sys.java:66)
   at org.lwjgl.Sys.loadLibrary(Sys.java:95)
   at org.lwjgl.Sys.<clinit>(Sys.java:112)
   at org.lwjgl.opengl.Display.<clinit>(Display.java:135)
   at com.cig.survival.WildernessToHome.makeWindow(WildernessToHome.java:101)
   at com.cig.survival.WildernessToHome.<init>(WildernessToHome.java:34)
   at com.cig.survival.WildernessToHome.main(WildernessToHome.java:122)
   ... 5 more


Sorry to say but, you have a lot of errors for mac.  Undecided

EDIT: Changing the native's folder name for macosx does not fix the problem. Or maybe it fixes one of the problems shown above.
Online Riven
« League of Dukes »

JGO Overlord


Medals: 803
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #45 - Posted 2014-03-09 21:25:21 »

1  
2  
3  
Can't load library: /Users/iBGEnt/Desktop/WTH 0.20/nat\mac/liblwjgl.dylib
                                                      ^
                                                      |

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Online trollwarrior1
« Reply #46 - Posted 2014-03-09 21:26:49 »

1  
2  
3  
Can't load library: /Users/iBGEnt/Desktop/WTH 0.20/nat\mac/liblwjgl.dylib
                                                      ^
                                                      |


+1, but works on windows Cheesy

Online trollwarrior1
« Reply #47 - Posted 2014-03-09 21:32:53 »

Uhmmmmmm please work now Cheesy Cheesy plis plis
Uploaded new file.
Online trollwarrior1
« Reply #48 - Posted 2014-03-10 06:42:58 »

So can some mac user test the new file to see if it works?
Offline Jacob Pickens
« Reply #49 - Posted 2014-03-10 06:45:29 »

I'd love to, could u link the file in the next post?
Online trollwarrior1
« Reply #50 - Posted 2014-03-10 06:46:38 »

0.2 version in the main post. I reuploaded the file, so even the link doesn't change, because that's how mediafire handles files.
Offline Jacob Pickens
« Reply #51 - Posted 2014-03-10 06:47:07 »

oh ok thank you
Offline Jacob Pickens
« Reply #52 - Posted 2014-03-10 06:59:24 »

Works great! I love it! I still don't understand why the screen goes black and then you die.
Online trollwarrior1
« Reply #53 - Posted 2014-03-10 07:00:29 »

Need to add some sounds to that.
The idea is that you die when the night comes if you don't have a light source.

EDIT--------------------------------------
you can make a torch by combining flintstone with stick. Then you equip the torch with E.
Offline LiquidNitrogen
« Reply #54 - Posted 2014-03-10 07:02:18 »

can you limit the frame rate? its making my laptop too hot.

v-sync = true : 160 fps, 160 ups.
v-sync = false: 160 fps, 60 ups .

Online trollwarrior1
« Reply #55 - Posted 2014-03-10 07:54:02 »

can you limit the frame rate? its making my laptop too hot.

v-sync = true : 160 fps, 160 ups.
v-sync = false: 160 fps, 60 ups .
I think I fixed it(0.20 in the main post). Since my monitor is only capable of 60hz, didn't notice this issue up until now.
Offline LiquidNitrogen
« Reply #56 - Posted 2014-03-10 08:12:23 »

Thats better. The v-sync option doesnt make any difference now, maybe you dont need that option.

I find it becomes night well before Ive worked out how to get a fire going. Would it be better if the things in the dark killed you, rather than the darkness itself? Then you could make the first 2 nights be moonlit with no threat of death, then after that a dark stormy night where you really need to be prepared.

Online trollwarrior1
« Reply #57 - Posted 2014-03-10 08:13:36 »

You need vsync.
Even if it doesn't affect fps/ups, without it i get screen tearing.
Offline LiquidNitrogen
« Reply #58 - Posted 2014-03-10 08:15:19 »

I mean you dont need the option to turn it on or off.

Online trollwarrior1
« Reply #59 - Posted 2014-03-15 08:04:46 »

Added some kind of table crafting menu. Now I can make various interesting recipes.



You can also search for items..


Pages: 1 [2] 3
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

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

The first screenshot will be displayed as a thumbnail.

Riven (9 views)
2014-10-02 14:36:20

Pippogeek (41 views)
2014-09-24 16:13:29

Pippogeek (32 views)
2014-09-24 16:12:22

Pippogeek (22 views)
2014-09-24 16:12:06

Grunnt (48 views)
2014-09-23 14:38:19

radar3301 (30 views)
2014-09-21 23:33:17

BurntPizza (65 views)
2014-09-21 02:42:18

BurntPizza (37 views)
2014-09-21 01:30:30

moogie (44 views)
2014-09-21 00:26:15

UprightPath (53 views)
2014-09-20 20:14:06
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
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!