the-crypt/Player/Player.tscn

160 lines
4.9 KiB
Plaintext
Raw Normal View History

2020-07-21 23:22:33 -05:00
[gd_scene load_steps=16 format=2]
2020-07-17 10:33:15 -05:00
2020-07-22 00:41:29 -05:00
[ext_resource path="res://Player/player.gd" type="Script" id=1]
2020-07-17 19:18:59 -05:00
[ext_resource path="res://ui/PlayerStats.tscn" type="PackedScene" id=2]
[ext_resource path="res://meta/BoundedCamera.tscn" type="PackedScene" id=3]
[ext_resource path="res://script/PlayerStateMachine.gd" type="Script" id=4]
2020-07-18 15:58:23 -05:00
[ext_resource path="res://ui/Inventory.tscn" type="PackedScene" id=5]
2020-07-21 23:22:33 -05:00
[ext_resource path="res://art/Elf.png" type="Texture" id=6]
2020-07-19 18:36:36 -05:00
[ext_resource path="res://script/WandPosition.gd" type="Script" id=7]
2020-07-20 14:24:15 -05:00
[ext_resource path="res://art/Paralax Dungeon.png" type="Texture" id=8]
2020-07-21 15:20:55 -05:00
[ext_resource path="res://Sound Effects/Enemy Hit.wav" type="AudioStream" id=9]
2020-07-17 10:33:15 -05:00
2020-07-17 11:26:02 -05:00
[sub_resource type="OccluderPolygon2D" id=1]
2020-07-22 00:41:29 -05:00
polygon = PoolVector2Array( -5, 4, -5, -3, -7, -3, -7, -5, -6, -5, -6, -8, -7, -8, -7, -9, -7, -9, -6, -9, -6, -12, -5, -12, -5, -13, -4, -13, -4, -14, 5, -14, 5, -13, 6, -13, 6, -12, 7, -12, 7, -11, 8, -11, 8, -9, 7, -9, 7, -9, 7, -8, 6, -8, 6, -10, 5, -10, 5, -5, 6, -5, 6, -3, 5, -3, 5, 3, 4, 3, 4, 4, 1, 4, 1, 3, -2, 3, -2, 4, -5, 4 )
2020-07-17 10:33:15 -05:00
2020-07-18 17:07:40 -05:00
[sub_resource type="CapsuleShape2D" id=2]
radius = 6.0
2020-07-19 20:06:49 -05:00
height = 2.0
2020-07-18 17:07:40 -05:00
2020-07-17 10:33:15 -05:00
[sub_resource type="Animation" id=3]
resource_name = "Idle"
length = 0.8
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.2, 0.4, 0.6 ),
"transitions": PoolRealArray( 1, 1, 1, 1 ),
"update": 1,
"values": [ 0, 1, 2, 3 ]
}
2020-07-17 11:26:02 -05:00
[sub_resource type="Animation" id=4]
2020-07-17 10:33:15 -05:00
resource_name = "Jumping"
length = 0.01
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 1,
"values": [ 11 ]
}
2020-07-17 11:26:02 -05:00
[sub_resource type="Animation" id=5]
2020-07-17 10:33:15 -05:00
length = 0.4
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.1, 0.2, 0.3 ),
"transitions": PoolRealArray( 1, 1, 1, 1 ),
"update": 1,
"values": [ 4, 5, 6, 7 ]
}
2020-07-21 23:22:33 -05:00
[sub_resource type="Animation" id=6]
resource_name = "Hit"
length = 0.1
step = 0.05
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.1 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 1,
"values": [ Color( 10, 10, 10, 1 ), Color( 1, 1, 1, 1 ) ]
}
2020-07-17 10:33:15 -05:00
[node name="Player" type="KinematicBody2D"]
2020-07-17 13:37:48 -05:00
collision_mask = 2
2020-07-17 10:33:15 -05:00
script = ExtResource( 1 )
2020-07-18 15:58:23 -05:00
[node name="Inventory" parent="." instance=ExtResource( 5 )]
2020-07-17 19:18:59 -05:00
[node name="Stats" parent="." instance=ExtResource( 2 )]
[node name="Camera" parent="." instance=ExtResource( 3 )]
2020-07-24 02:06:29 -05:00
position = Vector2( 0, 3 )
2020-07-17 12:07:59 -05:00
current = true
2020-07-17 11:26:02 -05:00
smoothing_enabled = true
drag_margin_left = 0.0
drag_margin_top = 0.75
drag_margin_right = 0.0
drag_margin_bottom = 0.0
2020-07-17 10:33:15 -05:00
[node name="PlayerStateMachine" type="Node" parent="."]
2020-07-17 19:18:59 -05:00
script = ExtResource( 4 )
2020-07-17 10:33:15 -05:00
2020-07-19 18:36:36 -05:00
[node name="WandPosition" type="Position2D" parent="."]
2020-07-20 14:24:15 -05:00
position = Vector2( 0, -9 )
2020-07-18 15:58:23 -05:00
script = ExtResource( 7 )
2020-07-17 19:30:27 -05:00
2020-07-17 10:33:15 -05:00
[node name="Sprite" type="Sprite" parent="."]
2020-07-21 23:22:33 -05:00
position = Vector2( 0, -16 )
2020-07-17 19:30:27 -05:00
texture = ExtResource( 6 )
2020-07-17 10:33:15 -05:00
vframes = 3
hframes = 4
[node name="LightOccluder2D" type="LightOccluder2D" parent="Sprite"]
position = Vector2( 0, 12 )
2020-07-17 11:26:02 -05:00
occluder = SubResource( 1 )
2020-07-17 10:33:15 -05:00
2020-07-18 17:07:40 -05:00
[node name="WorldCollision" type="CollisionShape2D" parent="."]
2020-07-19 20:06:49 -05:00
position = Vector2( 0, -7 )
2020-07-18 17:07:40 -05:00
shape = SubResource( 2 )
2020-07-17 10:33:15 -05:00
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
anims/Idle = SubResource( 3 )
2020-07-17 11:26:02 -05:00
anims/Jumping = SubResource( 4 )
anims/Running = SubResource( 5 )
2020-07-17 10:33:15 -05:00
2020-07-21 23:22:33 -05:00
[node name="HitAnimation" type="AnimationPlayer" parent="."]
anims/Hit = SubResource( 6 )
2020-07-17 10:33:15 -05:00
[node name="CoyoteTimer" type="Timer" parent="."]
wait_time = 0.1
one_shot = true
2020-07-17 13:37:48 -05:00
2020-07-17 15:43:22 -05:00
[node name="ShootDelay" type="Timer" parent="."]
wait_time = 0.4
one_shot = true
2020-07-17 13:37:48 -05:00
[node name="Hitbox" type="Area2D" parent="."]
visible = false
position = Vector2( 0, -7 )
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Hitbox"]
visible = false
2020-07-18 17:07:40 -05:00
polygon = PoolVector2Array( -6, -12, -6, -5, -7, -5, -7, -3, -6, -3, -6, 2, -5, 2, -5, 4, -6, 4, -6, 5, -7, 5, -7, 7, 5, 7, 5, 3, 6, 3, 6, -1, 5, -1, 5, -2, 6, -2, 6, -3, 7, -3, 7, -5, 6, -5, 6, -6, 5, -6, 5, -7, 4, -7, 4, -8, 3, -8, 3, -9, 1, -9, 1, -10, -3, -10, -3, -11, -4, -11, -4, -12, -6, -12 )
2020-07-20 14:24:15 -05:00
[node name="ParallaxBackground" type="ParallaxBackground" parent="."]
[node name="ParallaxLayer" type="ParallaxLayer" parent="ParallaxBackground"]
2020-07-22 00:41:29 -05:00
motion_mirroring = Vector2( 64, 64 )
2020-07-20 14:24:15 -05:00
[node name="Paralax Dungeon" type="Sprite" parent="ParallaxBackground/ParallaxLayer"]
position = Vector2( 192, 90 )
texture = ExtResource( 8 )
2020-07-21 15:20:55 -05:00
2020-07-21 15:50:32 -05:00
[node name="Enemy Hit" type="AudioStreamPlayer2D" parent="."]
2020-07-21 15:20:55 -05:00
stream = ExtResource( 9 )
2020-07-21 23:22:33 -05:00
volume_db = 1.0