initial commit
This commit is contained in:
85
player.tscn
Normal file
85
player.tscn
Normal file
@@ -0,0 +1,85 @@
|
||||
[gd_scene load_steps=10 format=3 uid="uid://clh8told15mah"]
|
||||
|
||||
[ext_resource type="Script" path="res://player.gd" id="1_jh72x"]
|
||||
[ext_resource type="Texture2D" uid="uid://ct3rmsru1s17x" path="res://assets/player1/untitled_0001.png" id="1_uk6hx"]
|
||||
[ext_resource type="Texture2D" uid="uid://cqmuysiqs2apc" path="res://assets/player1/untitled_0005.png" id="2_kkwhx"]
|
||||
[ext_resource type="Texture2D" uid="uid://eqyoffrsod4i" path="res://assets/player1/untitled_0002.png" id="3_83v7l"]
|
||||
[ext_resource type="Texture2D" uid="uid://lapvfkp8cf4r" path="res://assets/player1/untitled_0003.png" id="4_bfdm1"]
|
||||
[ext_resource type="Texture2D" uid="uid://cktd41a7ky8p1" path="res://assets/player1/untitled_0004.png" id="5_4g1sb"]
|
||||
|
||||
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_wvdrw"]
|
||||
bounce = 0.35
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_8lff6"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("1_uk6hx")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"air",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("2_kkwhx")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"dead",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("3_83v7l")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("1_uk6hx")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"idle",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("4_bfdm1")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("5_4g1sb")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"scared",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_ogije"]
|
||||
radius = 20.0
|
||||
height = 58.0
|
||||
|
||||
[node name="Player" type="RigidBody2D"]
|
||||
collision_layer = 2
|
||||
physics_material_override = SubResource("PhysicsMaterial_wvdrw")
|
||||
lock_rotation = true
|
||||
script = ExtResource("1_jh72x")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
scale = Vector2(2, 2)
|
||||
sprite_frames = SubResource("SpriteFrames_8lff6")
|
||||
animation = &"idle"
|
||||
frame_progress = 0.708992
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(0, 10)
|
||||
scale = Vector2(2, 2)
|
||||
shape = SubResource("CapsuleShape2D_ogije")
|
||||
one_way_collision_margin = 32.1
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
offset_left = 38.0
|
||||
offset_top = 7.0
|
||||
offset_right = 78.0
|
||||
offset_bottom = 30.0
|
||||
|
||||
[node name="Line2D" type="Line2D" parent="."]
|
||||
scale = Vector2(2, 2)
|
||||
points = PackedVector2Array(148, 120)
|
||||
width = 5.0
|
||||
Reference in New Issue
Block a user