summaryrefslogtreecommitdiff
path: root/Characters/Monkey.tscn
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2023-06-18 16:43:22 +0200
committerDaniel Weipert <code@drogueronin.de>2023-06-18 16:43:22 +0200
commit395c25b1fbe51f42decf402f97e51eabcc8c0a77 (patch)
tree72a17c71a39b53d328a76e111ae205d9538d64d0 /Characters/Monkey.tscn
parent2686ec6d4af6b5437a5f5a5cac008f3d38295f78 (diff)
Godot v3 -> v4
Diffstat (limited to 'Characters/Monkey.tscn')
-rw-r--r--Characters/Monkey.tscn94
1 files changed, 59 insertions, 35 deletions
diff --git a/Characters/Monkey.tscn b/Characters/Monkey.tscn
index 8ed2938..0c1889a 100644
--- a/Characters/Monkey.tscn
+++ b/Characters/Monkey.tscn
@@ -1,58 +1,82 @@
-[gd_scene load_steps=10 format=2]
+[gd_scene load_steps=10 format=3 uid="uid://dy5pbcj1h7r00"]
-[ext_resource path="res://Characters/Tux.gd" type="Script" id=1]
-[ext_resource path="res://Assets/Characters/Monkey/Front.png" type="Texture" id=2]
-[ext_resource path="res://Assets/Characters/Monkey/Wall.png" type="Texture" id=3]
-[ext_resource path="res://Assets/Characters/Monkey/Jump.png" type="Texture" id=4]
-[ext_resource path="res://Assets/Characters/Monkey/Back.png" type="Texture" id=5]
-[ext_resource path="res://Assets/Characters/Monkey/Walk1.png" type="Texture" id=6]
-[ext_resource path="res://Assets/Characters/Monkey/Walk2.png" type="Texture" id=7]
+[ext_resource type="Script" path="res://Characters/Tux.gd" id="1"]
+[ext_resource type="Texture2D" uid="uid://c338yichhecvr" path="res://Assets/Characters/Monkey/Front.png" id="2"]
+[ext_resource type="Texture2D" uid="uid://b23kvr62xexxi" path="res://Assets/Characters/Monkey/Wall.png" id="3"]
+[ext_resource type="Texture2D" uid="uid://dqnwnuy3e1unr" path="res://Assets/Characters/Monkey/Jump.png" id="4"]
+[ext_resource type="Texture2D" uid="uid://cjmgcegibbs3b" path="res://Assets/Characters/Monkey/Back.png" id="5"]
+[ext_resource type="Texture2D" uid="uid://cv0um2orghk12" path="res://Assets/Characters/Monkey/Walk1.png" id="6"]
+[ext_resource type="Texture2D" uid="uid://cieug1suk3wcv" path="res://Assets/Characters/Monkey/Walk2.png" id="7"]
-[sub_resource type="SpriteFrames" id=1]
-animations = [ {
-"frames": [ ExtResource( 5 ) ],
+[sub_resource type="SpriteFrames" id="1"]
+animations = [{
+"frames": [{
+"duration": 1.0,
+"texture": ExtResource("5")
+}],
"loop": true,
-"name": "back",
+"name": &"back",
"speed": 5.0
}, {
-"frames": [ ExtResource( 2 ) ],
+"frames": [{
+"duration": 1.0,
+"texture": ExtResource("2")
+}],
"loop": true,
-"name": "idle",
+"name": &"idle",
"speed": 5.0
}, {
-"frames": [ ExtResource( 3 ) ],
+"frames": [{
+"duration": 1.0,
+"texture": ExtResource("4")
+}],
"loop": true,
-"name": "wall",
+"name": &"jump",
"speed": 5.0
}, {
-"frames": [ ExtResource( 6 ), ExtResource( 7 ) ],
+"frames": [{
+"duration": 1.0,
+"texture": ExtResource("6")
+}, {
+"duration": 1.0,
+"texture": ExtResource("7")
+}],
"loop": true,
-"name": "walk",
-"speed": 5.0
+"name": &"run",
+"speed": 10.0
}, {
-"frames": [ ExtResource( 4 ) ],
+"frames": [{
+"duration": 1.0,
+"texture": ExtResource("6")
+}, {
+"duration": 1.0,
+"texture": ExtResource("7")
+}],
"loop": true,
-"name": "jump",
+"name": &"walk",
"speed": 5.0
}, {
-"frames": [ ExtResource( 6 ), ExtResource( 7 ) ],
+"frames": [{
+"duration": 1.0,
+"texture": ExtResource("3")
+}],
"loop": true,
-"name": "run",
-"speed": 10.0
-} ]
+"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(10, 20)
-[node name="Monkey" type="KinematicBody2D"]
+[node name="Monkey" type="CharacterBody2D"]
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(2.38419e-07, -2.38419e-07)
+shape = SubResource("2")