|
@@ -1,4 +1,4 @@
|
|
|
-[gd_scene load_steps=11 format=2]
|
|
|
+[gd_scene load_steps=18 format=2]
|
|
|
|
|
|
[ext_resource path="res://Client.gd" type="Script" id=1]
|
|
|
[ext_resource path="res://Server.gd" type="Script" id=2]
|
|
@@ -9,6 +9,32 @@
|
|
|
[ext_resource path="res://enemiessprite.gd" type="Script" id=7]
|
|
|
[ext_resource path="res://font/tiny.tres" type="DynamicFont" id=8]
|
|
|
[ext_resource path="res://Debug.tscn" type="PackedScene" id=9]
|
|
|
+[ext_resource path="res://art/Untitledcxz.png" type="Texture" id=10]
|
|
|
+[ext_resource path="res://Textures.gd" type="Script" id=11]
|
|
|
+
|
|
|
+[sub_resource type="AtlasTexture" id=2]
|
|
|
+atlas = ExtResource( 10 )
|
|
|
+region = Rect2( 0, 0, 112, 113 )
|
|
|
+
|
|
|
+[sub_resource type="AtlasTexture" id=3]
|
|
|
+atlas = ExtResource( 10 )
|
|
|
+region = Rect2( 112, 0, 112, 113 )
|
|
|
+
|
|
|
+[sub_resource type="AtlasTexture" id=4]
|
|
|
+atlas = ExtResource( 10 )
|
|
|
+region = Rect2( 224, 0, 112, 113 )
|
|
|
+
|
|
|
+[sub_resource type="AtlasTexture" id=5]
|
|
|
+atlas = ExtResource( 10 )
|
|
|
+region = Rect2( 336, 0, 112, 113 )
|
|
|
+
|
|
|
+[sub_resource type="SpriteFrames" id=6]
|
|
|
+animations = [ {
|
|
|
+"frames": [ SubResource( 2 ), SubResource( 3 ), SubResource( 4 ), SubResource( 5 ) ],
|
|
|
+"loop": true,
|
|
|
+"name": "default",
|
|
|
+"speed": 5.0
|
|
|
+} ]
|
|
|
|
|
|
[sub_resource type="GDScript" id=1]
|
|
|
script/source = "extends Node
|
|
@@ -31,6 +57,59 @@ func _physics_process(delta):
|
|
|
|
|
|
[node name="Node" type="Node"]
|
|
|
|
|
|
+[node name="Textures" type="Node" parent="."]
|
|
|
+script = ExtResource( 11 )
|
|
|
+
|
|
|
+[node name="Goblin1" type="Viewport" parent="Textures"]
|
|
|
+size = Vector2( 64, 64 )
|
|
|
+own_world = true
|
|
|
+transparent_bg = true
|
|
|
+render_target_v_flip = true
|
|
|
+
|
|
|
+[node name="Goblin" type="AnimatedSprite" parent="Textures/Goblin1"]
|
|
|
+frames = SubResource( 6 )
|
|
|
+frame = 3
|
|
|
+playing = true
|
|
|
+offset = Vector2( 32, 32 )
|
|
|
+
|
|
|
+[node name="Goblin2" type="Viewport" parent="Textures"]
|
|
|
+size = Vector2( 64, 64 )
|
|
|
+own_world = true
|
|
|
+transparent_bg = true
|
|
|
+render_target_v_flip = true
|
|
|
+
|
|
|
+[node name="Goblin" type="AnimatedSprite" parent="Textures/Goblin2"]
|
|
|
+frames = SubResource( 6 )
|
|
|
+frame = 2
|
|
|
+speed_scale = 0.8
|
|
|
+playing = true
|
|
|
+offset = Vector2( 32, 32 )
|
|
|
+
|
|
|
+[node name="Goblin3" type="Viewport" parent="Textures"]
|
|
|
+size = Vector2( 64, 64 )
|
|
|
+own_world = true
|
|
|
+transparent_bg = true
|
|
|
+render_target_v_flip = true
|
|
|
+
|
|
|
+[node name="Goblin" type="AnimatedSprite" parent="Textures/Goblin3"]
|
|
|
+frames = SubResource( 6 )
|
|
|
+frame = 2
|
|
|
+speed_scale = 1.2
|
|
|
+playing = true
|
|
|
+offset = Vector2( 32, 32 )
|
|
|
+
|
|
|
+[node name="Goblin4" type="Viewport" parent="Textures"]
|
|
|
+size = Vector2( 64, 64 )
|
|
|
+own_world = true
|
|
|
+transparent_bg = true
|
|
|
+render_target_v_flip = true
|
|
|
+
|
|
|
+[node name="Goblin" type="AnimatedSprite" parent="Textures/Goblin4"]
|
|
|
+frames = SubResource( 6 )
|
|
|
+speed_scale = 0.9
|
|
|
+playing = true
|
|
|
+offset = Vector2( 32, 32 )
|
|
|
+
|
|
|
[node name="Server" type="Node" parent="."]
|
|
|
script = ExtResource( 2 )
|
|
|
database = NodePath("../Database")
|