From 75c83f4d7a628077d9ec98bfbd674699bfa20529 Mon Sep 17 00:00:00 2001 From: Sophia Pearson Date: Wed, 20 May 2026 09:39:22 +0200 Subject: initial gdscript rewrite --- components/meteor.tscn | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 components/meteor.tscn (limited to 'components/meteor.tscn') diff --git a/components/meteor.tscn b/components/meteor.tscn new file mode 100644 index 0000000..6b1fdf1 --- /dev/null +++ b/components/meteor.tscn @@ -0,0 +1,23 @@ +[gd_scene load_steps=4 format=3 uid="uid://7n650wm14il0"] + +[ext_resource type="SpriteFrames" uid="uid://bskfnkqnofmxv" path="res://assets/spritesheets/meteor.tres" id="1_8c42w"] +[ext_resource type="Script" uid="uid://cpi64jvpvbdah" path="res://components/meteor.gd" id="1_10gax"] + +[sub_resource type="CircleShape2D" id="CircleShape2D_hyb7h"] +radius = 14.0 + +[node name="Meteor" type="RigidBody2D"] +script = ExtResource("1_10gax") + +[node name="Sprite" type="AnimatedSprite2D" parent="."] +texture_filter = 3 +position = Vector2(-2, -55) +rotation = -0.785398 +sprite_frames = ExtResource("1_8c42w") +animation = &"fly" + +[node name="CollisionShape2D" type="CollisionShape2D" parent="."] +shape = SubResource("CircleShape2D_hyb7h") + +[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."] +rect = Rect2(-16, -123, 32, 138) -- cgit v1.2.3