59 lines
1.8 KiB
Text
59 lines
1.8 KiB
Text
[gd_scene load_steps=12 format=2]
|
|
|
|
[ext_resource path="res://Scripts/Player.gd" type="Script" id=1]
|
|
[ext_resource path="res://Images/Gameplay/PlayerHM3.png" type="Texture" id=2]
|
|
[ext_resource path="res://Images/Gameplay/PlayerHM1.png" type="Texture" id=3]
|
|
[ext_resource path="res://Images/Gameplay/PlayerHM2.png" type="Texture" id=4]
|
|
[ext_resource path="res://Images/Gameplay/PlayerH4.png" type="Texture" id=5]
|
|
[ext_resource path="res://Shaders/offsetshadow.shader" type="Shader" id=6]
|
|
[ext_resource path="res://Images/Gameplay/PlayerHM0.png" type="Texture" id=8]
|
|
|
|
[sub_resource type="ShaderMaterial" id=5]
|
|
shader = ExtResource( 6 )
|
|
shader_param/offset = Vector2( 1, 1 )
|
|
shader_param/modulate = Color( 0, 0, 0, 0.4 )
|
|
|
|
[sub_resource type="SpriteFrames" id=1]
|
|
animations = [ {
|
|
"frames": [ ExtResource( 2 ) ],
|
|
"loop": true,
|
|
"name": "Jumping",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [ ExtResource( 5 ) ],
|
|
"loop": true,
|
|
"name": "Death",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [ ExtResource( 8 ), ExtResource( 3 ), ExtResource( 8 ), ExtResource( 4 ) ],
|
|
"loop": true,
|
|
"name": "Walking",
|
|
"speed": 15.0
|
|
} ]
|
|
|
|
[sub_resource type="RectangleShape2D" id=3]
|
|
extents = Vector2( 16, 40 )
|
|
|
|
[sub_resource type="RectangleShape2D" id=4]
|
|
extents = Vector2( 17.5219, 4.46839 )
|
|
|
|
[node name="Player" type="KinematicBody2D"]
|
|
scale = Vector2( 0.799, 0.799 )
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="PlayerSprite" type="AnimatedSprite" parent="."]
|
|
material = SubResource( 5 )
|
|
scale = Vector2( 4, 4 )
|
|
frames = SubResource( 1 )
|
|
animation = "Walking"
|
|
|
|
[node name="PlayerShape" type="CollisionShape2D" parent="."]
|
|
shape = SubResource( 3 )
|
|
|
|
[node name="EnemyHitZone" type="Area2D" parent="."]
|
|
|
|
[node name="Shape" type="CollisionShape2D" parent="EnemyHitZone"]
|
|
position = Vector2( 9.69788e-07, 41.8395 )
|
|
shape = SubResource( 4 )
|
|
|
|
[connection signal="body_entered" from="EnemyHitZone" to="." method="enemyHitZoneEntered"]
|