2025-04-20 16:15:26 +10:00
|
|
|
[gd_scene load_steps=5 format=3 uid="uid://cpukut4kdy4pg"]
|
|
|
|
|
|
|
|
|
|
[ext_resource type="Script" uid="uid://joar7fypug07" path="res://player.gd" id="1_onrkg"]
|
|
|
|
|
[ext_resource type="SpriteFrames" uid="uid://c7ceeyn5e3kgr" path="res://playerSprites.tres" id="2_onrkg"]
|
|
|
|
|
|
|
|
|
|
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_onrkg"]
|
|
|
|
|
friction = 0.0
|
|
|
|
|
bounce = 1.0
|
|
|
|
|
|
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_4flbx"]
|
|
|
|
|
radius = 4.0
|
|
|
|
|
|
2025-04-20 17:31:40 +10:00
|
|
|
[node name="Player" type="RigidBody2D" node_paths=PackedStringArray("animated_sprite") groups=["player"]]
|
2025-04-20 16:15:26 +10:00
|
|
|
physics_material_override = SubResource("PhysicsMaterial_onrkg")
|
|
|
|
|
gravity_scale = 0.0
|
|
|
|
|
lock_rotation = true
|
2025-04-20 17:31:40 +10:00
|
|
|
contact_monitor = true
|
|
|
|
|
max_contacts_reported = 1
|
2025-04-20 16:15:26 +10:00
|
|
|
linear_damp_mode = 1
|
|
|
|
|
script = ExtResource("1_onrkg")
|
|
|
|
|
start_speed = 2000
|
|
|
|
|
animated_sprite = NodePath("AnimatedSprite2D")
|
|
|
|
|
|
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
|
|
|
texture_filter = 1
|
|
|
|
|
scale = Vector2(0.527602, 0.527602)
|
|
|
|
|
sprite_frames = ExtResource("2_onrkg")
|
|
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
|
|
|
shape = SubResource("CircleShape2D_4flbx")
|
2025-04-20 17:31:40 +10:00
|
|
|
|
|
|
|
|
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|