proto3 initial commit
This commit is contained in:
24
proto3/godot/ui/loading.gd
Normal file
24
proto3/godot/ui/loading.gd
Normal file
@@ -0,0 +1,24 @@
|
||||
extends Control
|
||||
|
||||
|
||||
# Declare member variables here. Examples:
|
||||
# var a = 2
|
||||
# var b = "text"
|
||||
|
||||
|
||||
# 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.
|
||||
var off = 200.0
|
||||
func _process(delta):
|
||||
var pos = $bg/v/ReferenceRect/ref.position
|
||||
pos.x += off * delta
|
||||
$bg/v/ReferenceRect/ref.position = pos
|
||||
$bg/v/ReferenceRect/ref.rotate(PI * delta)
|
||||
if pos.x > $bg/v/ReferenceRect.rect_size.x - 20.0:
|
||||
off = -off
|
||||
if pos.x < 0.0:
|
||||
off = -off
|
||||
Reference in New Issue
Block a user