added slime sprite and reordered tileset
This commit is contained in:
@@ -39,7 +39,7 @@ layer_1/modulate = Color(1, 1, 1, 1)
|
||||
layer_1/y_sort_enabled = true
|
||||
layer_1/y_sort_origin = 0
|
||||
layer_1/z_index = 0
|
||||
layer_1/tile_data = PackedInt32Array(-262141, 0, 0, -196605, 0, 0, -196604, 0, 0, -196603, 0, 0, -196602, 0, 0, -262138, 0, 0, -262139, 0, 0, -262140, 0, 0, -6, 1, 131072, -262150, 2, 65536, 4, 4, 65536)
|
||||
layer_1/tile_data = PackedInt32Array(-262141, 0, 0, -196605, 0, 0, -196604, 0, 0, -196603, 0, 0, -196602, 0, 0, -262138, 0, 0, -262139, 0, 0, -262140, 0, 0, -6, 0, 131072, -262150, 0, 196608, 4, 0, 65536, 131073, 5, 65536)
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="player" parent="." instance=ExtResource("2_0skrb")]
|
||||
|
@@ -90,6 +90,7 @@ height = 54.0
|
||||
|
||||
[node name="player" type="CharacterBody2D"]
|
||||
process_mode = 1
|
||||
motion_mode = 1
|
||||
script = ExtResource("1_qehox")
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
|
56
scenes/tiles/enemies/slime.tscn
Normal file
56
scenes/tiles/enemies/slime.tscn
Normal file
@@ -0,0 +1,56 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://cpu7t7csffoxg"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://ca1es3hoj53wg" path="res://assets/textures/enemies/slime_green_atlas.png" id="1_bw6us"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_eghup"]
|
||||
atlas = ExtResource("1_bw6us")
|
||||
region = Rect2(0, 0, 64, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_8p5ni"]
|
||||
atlas = ExtResource("1_bw6us")
|
||||
region = Rect2(64, 0, 64, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_j8570"]
|
||||
atlas = ExtResource("1_bw6us")
|
||||
region = Rect2(128, 0, 64, 64)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_bwr2v"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_eghup")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_8p5ni")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_j8570")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_eghup")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_6slvi"]
|
||||
resource_name = "animation"
|
||||
script/source = "extends AnimatedSprite2D
|
||||
|
||||
func _ready():
|
||||
play()
|
||||
"
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_ochsc"]
|
||||
radius = 26.0192
|
||||
|
||||
[node name="slime" type="CharacterBody2D"]
|
||||
|
||||
[node name="animated_sprite_2d" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = SubResource("SpriteFrames_bwr2v")
|
||||
frame_progress = 0.486509
|
||||
script = SubResource("GDScript_6slvi")
|
||||
|
||||
[node name="collision_shape_2d" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_ochsc")
|
@@ -8,6 +8,7 @@ radius = 33.1361
|
||||
[node name="rigid_body_2d" type="RigidBody2D"]
|
||||
collision_layer = 2
|
||||
collision_mask = 3
|
||||
collision_priority = 20.0
|
||||
gravity_scale = 0.0
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
|
Reference in New Issue
Block a user