diff options
Diffstat (limited to 'Characters/Tux.tscn')
-rw-r--r-- | Characters/Tux.tscn | 125 |
1 files changed, 77 insertions, 48 deletions
diff --git a/Characters/Tux.tscn b/Characters/Tux.tscn index b3f110a..fdda659 100644 --- a/Characters/Tux.tscn +++ b/Characters/Tux.tscn @@ -1,84 +1,113 @@ -[gd_scene load_steps=14 format=2] +[gd_scene load_steps=14 format=3 uid="uid://ddkfppytp3bje"] -[ext_resource path="res://Characters/Tux.gd" type="Script" id=1] -[ext_resource path="res://Assets/Characters/Tux/Front.png" type="Texture" id=2] -[ext_resource path="res://Assets/Characters/Tux/Wall.png" type="Texture" id=3] -[ext_resource path="res://Assets/Characters/Tux/Back.png" type="Texture" id=4] -[ext_resource path="res://Assets/Characters/Tux/Walk1.png" type="Texture" id=5] -[ext_resource path="res://Assets/Characters/Tux/Walk2.png" type="Texture" id=6] -[ext_resource path="res://Assets/Characters/Tux/Jump.png" type="Texture" id=7] -[ext_resource path="res://Assets/Characters/Tux/Slide.png" type="Texture" id=8] -[ext_resource path="res://Assets/Characters/Tux/Fall1.png" type="Texture" id=9] -[ext_resource path="res://Assets/Characters/Tux/Fall1Wings.png" type="Texture" id=10] -[ext_resource path="res://Assets/Characters/Tux/Fall2Wings.png" type="Texture" id=11] +[ext_resource type="Script" path="res://Characters/Tux.gd" id="1"] +[ext_resource type="Texture2D" uid="uid://fg3wtt3q51ly" path="res://Assets/Characters/Tux/Front.png" id="2"] +[ext_resource type="Texture2D" uid="uid://djpwy1c8mbri4" path="res://Assets/Characters/Tux/Wall.png" id="3"] +[ext_resource type="Texture2D" uid="uid://cw26jrhhcu4wk" path="res://Assets/Characters/Tux/Back.png" id="4"] +[ext_resource type="Texture2D" uid="uid://b0femqwgwmyco" path="res://Assets/Characters/Tux/Walk1.png" id="5"] +[ext_resource type="Texture2D" uid="uid://dndtpfv7o2mf" path="res://Assets/Characters/Tux/Walk2.png" id="6"] +[ext_resource type="Texture2D" uid="uid://b87ss8k4j8qu0" path="res://Assets/Characters/Tux/Jump.png" id="7"] +[ext_resource type="Texture2D" uid="uid://ds2u0youtlt34" path="res://Assets/Characters/Tux/Slide.png" id="8"] +[ext_resource type="Texture2D" uid="uid://biuuco5wr0gvb" path="res://Assets/Characters/Tux/Fall1.png" id="9"] +[ext_resource type="Texture2D" uid="uid://kxdfm0mdwdom" path="res://Assets/Characters/Tux/Fall1Wings.png" id="10"] +[ext_resource type="Texture2D" uid="uid://dty1utxtd8qne" path="res://Assets/Characters/Tux/Fall2Wings.png" id="11"] -[sub_resource type="SpriteFrames" id=1] -animations = [ { -"frames": [ ExtResource( 2 ) ], +[sub_resource type="SpriteFrames" id="1"] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": ExtResource("4") +}], "loop": true, -"name": "idle", +"name": &"back", "speed": 5.0 }, { -"frames": [ ExtResource( 4 ) ], +"frames": [{ +"duration": 1.0, +"texture": ExtResource("9") +}], "loop": true, -"name": "back", +"name": &"fall", "speed": 5.0 }, { -"frames": [ ExtResource( 7 ) ], -"loop": true, -"name": "jump", +"frames": [{ +"duration": 1.0, +"texture": ExtResource("10") +}], +"loop": false, +"name": &"fall_stop", "speed": 5.0 }, { -"frames": [ ExtResource( 10 ) ], -"loop": false, -"name": "fall_stop", +"frames": [{ +"duration": 1.0, +"texture": ExtResource("11") +}], +"loop": true, +"name": &"fall_stop_landing", "speed": 5.0 }, { -"frames": [ ExtResource( 5 ), ExtResource( 6 ) ], +"frames": [{ +"duration": 1.0, +"texture": ExtResource("2") +}], "loop": true, -"name": "walk", +"name": &"idle", "speed": 5.0 }, { -"frames": [ ExtResource( 9 ) ], +"frames": [{ +"duration": 1.0, +"texture": ExtResource("7") +}], "loop": true, -"name": "fall", +"name": &"jump", "speed": 5.0 }, { -"frames": [ ExtResource( 8 ) ], +"frames": [{ +"duration": 1.0, +"texture": ExtResource("8") +}], "loop": true, -"name": "run", +"name": &"run", "speed": 5.0 }, { -"frames": [ ExtResource( 3 ) ], +"frames": [{ +"duration": 1.0, +"texture": ExtResource("5") +}, { +"duration": 1.0, +"texture": ExtResource("6") +}], "loop": true, -"name": "wall", +"name": &"walk", "speed": 5.0 }, { -"frames": [ ExtResource( 11 ) ], +"frames": [{ +"duration": 1.0, +"texture": ExtResource("3") +}], "loop": true, -"name": "fall_stop_landing", +"name": &"wall", "speed": 5.0 -} ] +}] -[sub_resource type="RectangleShape2D" id=2] -extents = Vector2( 9.21901, 11.2317 ) +[sub_resource type="RectangleShape2D" id="2"] +size = Vector2(13, 20) -[node name="Tux" type="KinematicBody2D"] +[node name="Tux" type="CharacterBody2D"] +position = Vector2(-1, 0) collision_mask = 15 -script = ExtResource( 1 ) +script = ExtResource("1") -[node name="Sprite" type="AnimatedSprite" parent="."] -scale = Vector2( 0.7, 0.7 ) -frames = SubResource( 1 ) -animation = "idle" -playing = true +[node name="Sprite2D" type="AnimatedSprite2D" parent="."] +scale = Vector2(0.7, 0.7) +sprite_frames = SubResource("1") +animation = &"idle" [node name="CollisionShape2D" type="CollisionShape2D" parent="."] -shape = SubResource( 2 ) +position = Vector2(0.5, -2.38419e-07) +shape = SubResource("2") [node name="CheckFallStop" type="RayCast2D" parent="."] -enabled = true -cast_to = Vector2( 0, 150 ) +target_position = Vector2(0, 150) [node name="CheckFallLanding" type="RayCast2D" parent="."] -enabled = true |