Water Shader Rework
Adventures in Shaders! Trying to make my water look better...mistakes were made along the way, but I learned a lot! Still don't understand shaders though X'D
Changed the shallow water to look like sand, figured that makes more sense?
Added some under the shoreline, to remove the gap.
Made a nice blue, but this caused issues with other stuff.
Like Swamps. As it was, the shader applied to all water, so I had to figure out how to split them.
Didn't work.
This worked, but really inefficient and slow, look at those huge numbers next to the FPS!
Wish I could remember how I made this radioactive water, that could be fun for something!
Also this, really love these colours! (forgot to turn off the shader)
And here. Also put the x/y values into the scale, so moving up and left shrank everything X'D
Trying a different shader, doesn't really work.
This looks better!
Checking how this look with the shader off.
I like this, but it's too metallic/marble?
Same but with less white.
Cycling through some blend options
--
Ended on this for now!
1707
Reworked how I'm doing it to make it faster and less cpu/gpu heavy. I'm now drawing the water and land separate and merging the surfaces.
World Gen
Spent about a day messing with the World Gen values to make sure that the Island doesn't touch the map boundaries
Here's some 3x3 chunk maps!
Since I've got SubChunks set up I've started working on some patterns for variations on terrain types. So a Grass Biome can be a Plain, a Forrest, a Field etc...
1710
1711
1712
1713
Items
Terraforming Potions
Fixed a bug where Terraforming didn't change tree ground overlay, or destroy them if the new terrain couldn't support that tree type.
1708
Buildings
Added Tables and updated Stools to both the main build menu and house build menu.
1714
Fixed wandering Training Dummies...
1715
NPC's
Ok ok! Musical Chairs time!
1717
Goblins can now find a chair, claim it and sit in it for a while. They also randomly pick a direction to look at!
Had an issue with placing things in their way...seems you can't use the mp_grid_path to recheck your path, so I had to find another solution.
1719
Fixed the Pathfinding by working out where they are in their path, getting that as x/y values as well as the next path spot and it's x/y's and doing a collision line. Repeat that until you hit something or get to the line end. Sorted!
1718
I think that's all sorted now, they smoothly get on and off chairs, and check for a valid path to them and a free place to leave
1728
Turns out there was a mistake in my code for leaving chairs where they'd get stuck in things when leaving left or right and there was something diagonally down to it. So fixed that. Also made it so they can use chairs in houses (if unowned)
1734
You can also now talk to Goblins (and Animals?) that are sitting in chairs or using things.
1740
Also when you're sitting in chairs!
1742
Also took this opportunity to fix my debug spawn Goblin code, so that it wouldn't let them spawn inside objects (like Yolie Leaf has there)
1734
Did a full rework of the Pathfinding especially in relation to Jobs
1739
Goblins will now check if they have the tools for the job (seeds in this case), or if there is a task they can do without it. If so and it's work hours they'll move in range of their Jobsite and do what tasks they can. When they can't they'll wander about nearby (had to stop them wandering too far away).
Minor Bug Fixes/Changes
-Fixed Shadows on Tall Grass and Reeds.
-Fixed Shoreline animation speed, and it missing a frame.
-Fixed some bugs with world gen and the world edges, checking out of bounds not returning the correct results and spawning erroneous shoreline.
-Fixed World Gen not taking the height of the world into account when Generating tile types.
-Fixed Training Dummies not being saved
-Fixed Chairs and Training Dummies not being culled
-Fixed Houses not saving/loading Training Dummies.
-Fixed House Object Load limit bug.
-Replaced the various Draw Goblin code (sprite/menu/etc) with a single script so everything is universal.
-Fixed Chair Surfing
-Fixed Farm soil being saved independent of the farm
-Fixed Farm watering glitch
Thank you all so much for your interest and support, it really means the world to me and helps keep me working hard!
I hope you all have a fantastic December, please wrap up warm and mind your footing.
Look after yourselves everyone and keep being awesome!
4 comments