initial commit
This commit is contained in:
11
scenes/gear/Gear.cs
Normal file
11
scenes/gear/Gear.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using Godot;
|
||||
using System;
|
||||
|
||||
public class Gear : Area2D
|
||||
{
|
||||
public override void _Process(float delta)
|
||||
{
|
||||
Sprite sprite = GetNode<Sprite>("Sprite");
|
||||
sprite.Rotate(Mathf.Deg2Rad(2));
|
||||
}
|
||||
}
|
17
scenes/gear/Gear.tscn
Normal file
17
scenes/gear/Gear.tscn
Normal file
@@ -0,0 +1,17 @@
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://assets/gear/gear.png" type="Texture" id=1]
|
||||
[ext_resource path="res://scenes/gear/Gear.cs" type="Script" id=2]
|
||||
|
||||
[sub_resource type="CircleShape2D" id=1]
|
||||
radius = 15.0333
|
||||
|
||||
[node name="Gear" type="Area2D"]
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="."]
|
||||
texture = ExtResource( 1 )
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
visible = false
|
||||
shape = SubResource( 1 )
|
Reference in New Issue
Block a user