lots of new features
This commit is contained in:
parent
278cddcf22
commit
337c4fbb71
3 changed files with 28 additions and 5 deletions
3
Tools.gd
3
Tools.gd
|
|
@ -9,5 +9,6 @@ func time_to_seconds(hours_value : int, minutes_value : int) -> int:
|
|||
func seconds_to_time(seconds : int) -> Dictionary:
|
||||
var hours : int = floori(float(seconds)/3600)
|
||||
var minutes : int = int(float(seconds % 3600)/60)
|
||||
return {"h":hours,"m":minutes}
|
||||
var just_seconds : int = int(float(seconds % 60))
|
||||
return {"h":hours,"m":minutes,"s":just_seconds}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue