Game
Tsalagi

9 months 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

Basically just made today a Database day, so here's a screenie of the player talking to the local fisherman

NEW PACKAGES AVAILABLE NOW!

Version 1.1.0 is now available for Linux and Windows

-Platform bugs fixed where player fell through the floor

-Area 2 accessible through Level 8

-Minor spiffing up, wax and polish

Behold my beautiful canoe!

we're back into track!

Art day today. Did a little messing around with the cupboards and some furniture. Got a wine cellar, shower and tub and such. Probably redo appliances, spiff them up a bit Once I get all the major stuff in, then I'll go through and build the levels

Zombie in action! #GameDev #Art #PixelArt

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

Did some rough level work in the cave system. Got the long tunnel, and this one is the first puzzle place (if anyone is familiar with the four stairs/doors puzzle in Paper Mario 2, this is going to be very similar).

Jump, climb, fall and repeat...

#gamedev #indiedev

Did some more work trying to fix up whatever went wrong and...yeah, let's just cut to the end where it didn't work

Started a new project, made some changes, derped around a little, made this cute little guy