Updated to 4.4
This commit is contained in:
parent
eaa26d1361
commit
1aff15069a
151 changed files with 593 additions and 100 deletions
7
UI/TestBG/InsectSprite.tscn
Normal file
7
UI/TestBG/InsectSprite.tscn
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://b5w6sbmjalthh"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://d7wntyuu1fcl" path="res://UI/TestBG/insect_sprite.gd" id="1_k4jda"]
|
||||
|
||||
[node name="InsectSprite" type="Sprite2D"]
|
||||
scale = Vector2(0.1, 0.1)
|
||||
script = ExtResource("1_k4jda")
|
||||
13
UI/TestBG/insect_sprite.gd
Normal file
13
UI/TestBG/insect_sprite.gd
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
extends Node2D
|
||||
|
||||
var rotation_speed: float = 0.0
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
rotation_speed = randf_range(-PI/4.0, PI/4.0)
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
rotation += rotation_speed * 0.01
|
||||
1
UI/TestBG/insect_sprite.gd.uid
Normal file
1
UI/TestBG/insect_sprite.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://d7wntyuu1fcl
|
||||
Loading…
Add table
Add a link
Reference in a new issue