proto3 initial commit

This commit is contained in:
Segey Lapin
2020-04-13 12:45:25 +03:00
parent 69410badf6
commit 1084b6d5c3
1588 changed files with 368852 additions and 23 deletions

View 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