Jam10/Units/NPC.tscn

47 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

2023-01-26 18:25:40 +00:00
[gd_scene load_steps=7 format=2]
[ext_resource path="res://Scripts/Units/NPCExample.gd" type="Script" id=1]
[ext_resource path="res://Graphics/Units/NPC.png" type="Texture" id=2]
[ext_resource path="res://Graphics/Animations/NPCWalk.tres" type="SpriteFrames" id=3]
[ext_resource path="res://Graphics/Units/NPCJump2.png" type="Texture" id=4]
[ext_resource path="res://Graphics/Units/NPCJump1.png" type="Texture" id=5]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 6, 14 )
[node name="NPC" type="Area2D"]
collision_mask = 2
script = ExtResource( 1 )
unit_type = 1
tick_duration = 2.0
action_sequence_map = {
[ [ "MOVE" ], [ 0.0 ] ]: 1
}
action_duration_map = {
"MOVE": 1.0
}
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 0, -14 )
shape = SubResource( 1 )
[node name="Idle" type="Sprite" parent="."]
visible = false
texture = ExtResource( 2 )
offset = Vector2( 0, -15 )
[node name="Jump1" type="Sprite" parent="."]
visible = false
texture = ExtResource( 5 )
offset = Vector2( 0, -15 )
[node name="Jump2" type="Sprite" parent="."]
visible = false
texture = ExtResource( 4 )
offset = Vector2( 0, -15 )
[node name="Walk" type="AnimatedSprite" parent="."]
visible = false
frames = ExtResource( 3 )
offset = Vector2( 0, -15 )