Initial Commit
This commit is contained in:
parent
2dce133760
commit
dbb0f17743
63 changed files with 2881 additions and 1 deletions
46
Units/NPC.tscn
Normal file
46
Units/NPC.tscn
Normal file
|
@ -0,0 +1,46 @@
|
|||
[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 )
|
47
Units/Player.tscn
Normal file
47
Units/Player.tscn
Normal file
|
@ -0,0 +1,47 @@
|
|||
[gd_scene load_steps=8 format=2]
|
||||
|
||||
[ext_resource path="res://Scripts/Units/Player.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Graphics/Units/Player.png" type="Texture" id=2]
|
||||
[ext_resource path="res://Graphics/Units/PlayerJump2.png" type="Texture" id=3]
|
||||
[ext_resource path="res://Graphics/Units/PlayerJump1.png" type="Texture" id=4]
|
||||
[ext_resource path="res://Graphics/Animations/PlayerWalk.tres" type="SpriteFrames" id=5]
|
||||
[ext_resource path="res://Graphics/Units/PlayerRecoil.png" type="Texture" id=6]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=1]
|
||||
extents = Vector2( 6, 14 )
|
||||
|
||||
[node name="Player" type="Area2D"]
|
||||
z_index = 1
|
||||
collision_layer = 0
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[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="Walk" type="AnimatedSprite" parent="."]
|
||||
visible = false
|
||||
frames = ExtResource( 5 )
|
||||
offset = Vector2( 0, -15 )
|
||||
|
||||
[node name="Jump1" type="Sprite" parent="."]
|
||||
visible = false
|
||||
texture = ExtResource( 4 )
|
||||
offset = Vector2( 0, -15 )
|
||||
|
||||
[node name="Jump2" type="Sprite" parent="."]
|
||||
visible = false
|
||||
texture = ExtResource( 3 )
|
||||
offset = Vector2( 0, -15 )
|
||||
|
||||
[node name="Recoil" type="Sprite" parent="."]
|
||||
visible = false
|
||||
texture = ExtResource( 6 )
|
||||
offset = Vector2( 0, -15 )
|
||||
|
||||
[connection signal="area_entered" from="." to="." method="_on_Player_area_entered"]
|
Loading…
Add table
Add a link
Reference in a new issue