Rotate the plompy

This commit is contained in:
Nicholas 2025-05-18 14:55:56 +01:00
parent d19ddcb23b
commit 230242aad2
5 changed files with 26 additions and 3 deletions

View File

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View File

@ -3,15 +3,15 @@
importer="texture" importer="texture"
type="CompressedTexture2D" type="CompressedTexture2D"
uid="uid://btgsbvc7gidjq" uid="uid://btgsbvc7gidjq"
path="res://.godot/imported/planet.png-f5f0897f63991c459b7eb98202909edd.ctex" path="res://.godot/imported/planet.png-e822bf70e388ca590b75493654bc8bdc.ctex"
metadata={ metadata={
"vram_texture": false "vram_texture": false
} }
[deps] [deps]
source_file="res://planet.png" source_file="res://planetScene/planet.png"
dest_files=["res://.godot/imported/planet.png-f5f0897f63991c459b7eb98202909edd.ctex"] dest_files=["res://.godot/imported/planet.png-e822bf70e388ca590b75493654bc8bdc.ctex"]
[params] [params]

11
planetScene/planet.tscn Normal file
View File

@ -0,0 +1,11 @@
[gd_scene load_steps=3 format=3 uid="uid://dh0lvt4eb1x5s"]
[ext_resource type="Texture2D" uid="uid://btgsbvc7gidjq" path="res://planetScene/planet.png" id="1_6j83a"]
[ext_resource type="Script" uid="uid://b8kcef36xwy7k" path="res://planetScene/planet_sprite.gd" id="2_jgijx"]
[node name="planet" type="Node2D"]
[node name="planetSprite" type="Sprite2D" parent="."]
position = Vector2(483, 276)
texture = ExtResource("1_6j83a")
script = ExtResource("2_jgijx")

View File

@ -0,0 +1,11 @@
extends Sprite2D
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
rotate(0.01)

View File

@ -0,0 +1 @@
uid://b8kcef36xwy7k