mirror of
https://github.com/godotengine/regression-test-project.git
synced 2026-01-03 14:09:15 +03:00
Added simple Light and Physics scenes (#4)
This commit is contained in:
@@ -1,21 +1,23 @@
|
||||
extends Node
|
||||
|
||||
const screen_size = Vector2(1024,600)
|
||||
const screen_size = Vector2(1024, 600)
|
||||
|
||||
const RANGE : int = 5
|
||||
const RANGE: int = 5
|
||||
|
||||
var time_to_show: float = -1000.0
|
||||
|
||||
var time_to_show : float = -1000.0
|
||||
|
||||
func _init():
|
||||
for argument in OS.get_cmdline_args():
|
||||
var rr : String = argument
|
||||
if rr.find("tscn") != -1: # Ignore all tscn scenes/names
|
||||
var rr: String = argument
|
||||
if rr.find("tscn") != -1: # Ignore all tscn scenes/names
|
||||
continue
|
||||
time_to_show = argument.to_float()
|
||||
print("Time set to: " + str(time_to_show))
|
||||
break
|
||||
|
||||
func _process(delta : float) -> void:
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
time_to_show -= delta
|
||||
if time_to_show < 0 && time_to_show > -500:
|
||||
get_tree().quit()
|
||||
|
||||
Reference in New Issue
Block a user