Goblin Game Dev Posts in Thrall of Time Games Community

Share your creations!

New Ore Vein System seems to be working.
Testing it here only having them spawn from the Starting Area, they can spread into adjacent ones though which makes things a bit more connected.

Looks like the Ore Vein and object spawn code still works with this version. I'll probably still do a rework of it tomorrow though so its not just picking a random tile from the entire room

Would be better if it used the area data so its never in the void

OK! Got Entrances and Exit Stairs being created in the correct places.

Now I just need to work out how I broke the Underground
I probably turned off the Gen code for it when I disabled the old Cave Gen method.

Got Stairs to enter and leave the floor spawning in the correct places...wait why is there more than one!?
Urgh, it's not destroying them when you leave!??!
It should definitely be doing that. Please don't make me manually do it

Better Cave Gen v2.0

Now with minimum distance check between entrance and exit, and a room gen retry if a condition fails too many times.

SIGH.

On the one hand, my path check code works, I kept trying till it was able to path the entrance to the exit image2

on the other hand, urgh big inaccessible room image1

That shape shouldn't be possible, since it starts the floor gen from the same xy

Fishing is no longer Shore object related, now just checks the grid for Deep or deeper water.
This means I can have Underground fishing!

Still need to add bait and a UI, but does this look easy enough to understand, play?

Loading...

I LIED, still awake, did the code.
Grid collision now flips so you can't walk into the ocean, and can't sail on the land!

You can do both on Shallows
Woop!

now slep

Added a bit of code to stop Items getting stuck in walls...might need to disable the throw/bounce code when doing it

Barrels (and the other Underground things)

Because Rocks get squash/squeezed when you hit them I should really work out the correct offset for Barrels, but MWEH! If I give them 1 HP it doesn't matter

now I've drawn them, I get to sleep