AAAA
This commit is contained in:
parent
279b5e5599
commit
4f70414ed9
46 changed files with 1485 additions and 170 deletions
|
@ -2,3 +2,22 @@ extends Node
|
|||
|
||||
func boolToNumb(val, offset=0):
|
||||
return float(val) + offset
|
||||
|
||||
func getCurrentActions():
|
||||
var actionsList = InputMap.get_actions()
|
||||
var validActions = {}
|
||||
for action in actionsList:
|
||||
if not "ui_" in action:
|
||||
if Input.is_action_just_pressed(action):
|
||||
validActions[action] = 1
|
||||
elif Input.is_action_just_released(action):
|
||||
validActions[action] = 2
|
||||
return validActions
|
||||
|
||||
func getRecordingFrameCount(recording):
|
||||
var frameSort = []
|
||||
for frame in recording:
|
||||
frameSort.append(frame)
|
||||
|
||||
frameSort.sort()
|
||||
return frameSort[-1]
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
extends Node
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta):
|
||||
pass
|
Loading…
Add table
Add a link
Reference in a new issue