First Prototype
This commit is contained in:
parent
c321b70bb0
commit
eb11047456
35 changed files with 779 additions and 4 deletions
56
scenes/game/entities/player/player.tscn
Normal file
56
scenes/game/entities/player/player.tscn
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://0duodsosmfpq"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://b18cf4i8v6a1" path="res://scenes/game/entities/entity.tscn" id="1_kmfws"]
|
||||
[ext_resource type="Script" path="res://scenes/game/entities/player/player.gd" id="2_s0pfn"]
|
||||
[ext_resource type="SpriteFrames" uid="uid://dv18sf3aj0n1h" path="res://scenes/game/entities/player/player.tres" id="3_mlsai"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_gk017"]
|
||||
size = Vector2(16, 16)
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_upmug"]
|
||||
radius = 8.0
|
||||
height = 16.0
|
||||
|
||||
[node name="Player" groups=["Player"] instance=ExtResource("1_kmfws")]
|
||||
script = ExtResource("2_s0pfn")
|
||||
|
||||
[node name="Area2D" parent="." index="0" groups=["Player"]]
|
||||
|
||||
[node name="CollisionShape2D" parent="Area2D" index="0"]
|
||||
position = Vector2(0, 8)
|
||||
shape = SubResource("RectangleShape2D_gk017")
|
||||
|
||||
[node name="CollisionShape2D" parent="." index="1"]
|
||||
position = Vector2(0, 8)
|
||||
shape = SubResource("CapsuleShape2D_upmug")
|
||||
|
||||
[node name="AnimatedSprite2D" parent="." index="2"]
|
||||
sprite_frames = ExtResource("3_mlsai")
|
||||
animation = &"DOWN"
|
||||
metadata/_aseprite_wizard_config_ = {
|
||||
"layer": "",
|
||||
"o_ex_p": "",
|
||||
"o_folder": "",
|
||||
"o_name": "",
|
||||
"only_visible": false,
|
||||
"slice": "",
|
||||
"source": "res://Assets/Player/Player.ase"
|
||||
}
|
||||
metadata/_aseprite_wizard_interface_config_ = {
|
||||
"layer_section": false,
|
||||
"slice_section": false
|
||||
}
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="." index="3"]
|
||||
zoom = Vector2(3, 3)
|
||||
limit_smoothed = true
|
||||
position_smoothing_enabled = true
|
||||
|
||||
[node name="RollTimer" type="Timer" parent="." index="4"]
|
||||
one_shot = true
|
||||
|
||||
[node name="RollCooldownTimer" type="Timer" parent="." index="5"]
|
||||
one_shot = true
|
||||
|
||||
[connection signal="timeout" from="RollTimer" to="." method="_on_roll_timeout"]
|
||||
[connection signal="timeout" from="RollCooldownTimer" to="." method="_on_roll_cooldown_timer_timeout"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue