Initial Basic Movement
This commit is contained in:
46
player.tscn
Normal file
46
player.tscn
Normal file
@@ -0,0 +1,46 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://btlutggxxokno"]
|
||||
|
||||
[ext_resource type="Script" path="res://player.gd" id="1_8jh48"]
|
||||
[ext_resource type="Texture2D" uid="uid://yfxicvvu3j1k" path="res://art/player/Player1.png" id="1_wikqw"]
|
||||
[ext_resource type="Texture2D" uid="uid://ctik1n8vyproe" path="res://art/player/Player2.png" id="2_31x2h"]
|
||||
[ext_resource type="Texture2D" uid="uid://c5jkrxnrk8s4y" path="res://art/player/Player3.png" id="3_xoeqj"]
|
||||
[ext_resource type="Texture2D" uid="uid://bxg6vu3byvcfa" path="res://art/player/Player4.png" id="4_08rsg"]
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_obpd0"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("1_wikqw")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("2_31x2h")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("3_xoeqj")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("4_08rsg")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"still",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_m60wa"]
|
||||
size = Vector2(28, 46)
|
||||
|
||||
[node name="Player" type="CharacterBody2D"]
|
||||
script = ExtResource("1_8jh48")
|
||||
|
||||
[node name="PlayerSprite" type="AnimatedSprite2D" parent="."]
|
||||
texture_filter = 1
|
||||
position = Vector2(0, -24)
|
||||
scale = Vector2(2, 2)
|
||||
sprite_frames = SubResource("SpriteFrames_obpd0")
|
||||
animation = &"still"
|
||||
frame = 1
|
||||
frame_progress = 0.999076
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(0, -23)
|
||||
shape = SubResource("RectangleShape2D_m60wa")
|
||||
Reference in New Issue
Block a user