First Version
This commit is contained in:
69
scenes/slime.tscn
Normal file
69
scenes/slime.tscn
Normal file
@@ -0,0 +1,69 @@
|
||||
[gd_scene load_steps=10 format=3 uid="uid://bytmj03vausk8"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://ctoiihii0atb8" path="res://scripts/slime.gd" id="1_n6pvg"]
|
||||
[ext_resource type="Texture2D" uid="uid://dsnq6ldw7nrtq" path="res://assets/sprites/slime_green.png" id="1_p2gj0"]
|
||||
[ext_resource type="PackedScene" uid="uid://c5raqc2u1lqho" path="res://scenes/killzone.tscn" id="2_n6pvg"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_pjw23"]
|
||||
atlas = ExtResource("1_p2gj0")
|
||||
region = Rect2(0, 24, 24, 24)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_2npkn"]
|
||||
atlas = ExtResource("1_p2gj0")
|
||||
region = Rect2(24, 24, 24, 24)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_fd6lc"]
|
||||
atlas = ExtResource("1_p2gj0")
|
||||
region = Rect2(48, 24, 24, 24)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_gstla"]
|
||||
atlas = ExtResource("1_p2gj0")
|
||||
region = Rect2(72, 24, 24, 24)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_v5wyi"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_pjw23")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_2npkn")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_fd6lc")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_gstla")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 10.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_0l8pv"]
|
||||
size = Vector2(10, 12)
|
||||
|
||||
[node name="Slime" type="Node2D"]
|
||||
script = ExtResource("1_n6pvg")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
position = Vector2(-1, -12)
|
||||
sprite_frames = SubResource("SpriteFrames_v5wyi")
|
||||
autoplay = "default"
|
||||
frame = 2
|
||||
frame_progress = 0.7830208
|
||||
|
||||
[node name="Killzone" parent="." instance=ExtResource("2_n6pvg")]
|
||||
position = Vector2(-1, -12)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Killzone"]
|
||||
position = Vector2(0, 5)
|
||||
shape = SubResource("RectangleShape2D_0l8pv")
|
||||
|
||||
[node name="RayCastRight" type="RayCast2D" parent="."]
|
||||
position = Vector2(-1, -7)
|
||||
target_position = Vector2(10, 0)
|
||||
|
||||
[node name="RayCastLeft" type="RayCast2D" parent="."]
|
||||
position = Vector2(-1, -7)
|
||||
target_position = Vector2(-10, 0)
|
||||
Reference in New Issue
Block a user