Game
Tsalagi

2 years ago

Decided to do some work on the save/load. Name, Chapter, and even Total Play Time CORRECTLY FORMATTED Will work on the chapter banners later. Free time formatting code below


(Sorry for the poor formatting)

func _process(delta):

your_time_variable += delta

func format_my_time():
var time_elapsed = float(your_time_variable)

var s = int(time_elapsed) % 60

var min = int(time_elapsed) / 60

var m = min % 60

var h = min / 60

if m < 10:

m = str("0" + str(m))

if s < 10:

s = str("0" + str(s))

time.text = str(h) + ":" + str(m) + ":" + str(s).pad_decimals(0)

You could theoretically go up to days and years, just using 24 and 365. That is not necessary for my game, but the pattern remains the same. If you need something really precise, accounting for leap years or leap seconds, then I might recommend using something in the Time singleton



0 comments

Loading...

Next up

Doing some designing of the main village, mostly so I can get some connections in and get the next part of the opening cutscenes roughed in.

Oh no! Jelly blobs of doom!

They're only supposed to be the size of a mini-yux

But doesn't he look so much more prepared for adventure?

And yes, she is carrying a deer foot staff, modeled after one hanging in our house

Lots of modeling the last few days. Got some houses made, remade some of my terrain blocks (rebuilt the harbor), and started on the NPC models. Also worked on the battle system and the follower system, now with 1/10th the code but 10x more efficient

A quick look at Ryn: And the thread of Life, our game in development, platforms and traps in action.

#gamedev #indiedev #godot

Battle State Machine is working Player chooses what to do, enemies choose what to do, and they even have variable rates of attack/defend/flee. Next step will be to actually start dealing damage

Hyperslice releases on January 16 (yes in just 2 days!) on Steam and Itch 🎉 ⚡ Hyperslice is a fast paced arena roguelite where your only weapon is your dash!

Wishlists appreciated 🥰 (Demo available on Steam and here) https://s.team/a/2977820

Ah, yes, Grandpa and Grandma's old farmhouse, with a million rooms, basement full of mason jars, and the old '57 Chevy in the garage

I mean, not my Gramma and Grampa, but someone's, right?

Behold my beautiful canoe!

Here's the last two attacks for Augusto! First we have a spinning charge, then a foot claw swipe if you get too close.

Working on battles. A little different than last time, aesthetically, but still the same basic idea