Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(1 edit) (+1)

Thanks! Glad you enjoyed it.

Yeah, for the daily map it basically is taking 00:00 GMT of the current day and making that the seed for the randomizer.

var date = OS.get_datetime()    
date['hour'] = 0     
date['minute'] = 0     
date['second'] = 0     
var daily_seed = OS.get_unix_time_from_datetime(date)          
reset(daily_seed)

and then in the reset function itself

func reset(initial_seed: int = 0):
     randomize()
     if initial_seed:
         map_seed = initial_seed
     else:
         map_seed = randi()
     seed(map_seed)
     print("Seed: ", map_seed)
     
     Map.create()

That's a really cool idea. I'll remember that for next time i'm generating level maps 😀