2023-04-07 17:26:18 +00:00
|
|
|
[gd_scene load_steps=12 format=3 uid="uid://ccgpsim5nfxd6"]
|
2023-04-07 14:11:07 +00:00
|
|
|
|
2023-04-08 00:17:24 +00:00
|
|
|
[ext_resource type="TileSet" uid="uid://bj7uu2180mie3" path="res://Assets/Tileset.tres" id="1_wkp62"]
|
2023-04-07 14:11:07 +00:00
|
|
|
[ext_resource type="Script" path="res://Scripts/PlayerController.gd" id="1_x3102"]
|
2023-04-07 14:22:55 +00:00
|
|
|
[ext_resource type="Script" path="res://Scripts/MapGenerator.gd" id="4_8st0q"]
|
2023-04-07 17:26:18 +00:00
|
|
|
[ext_resource type="Texture2D" uid="uid://bl7vfn05ul1vu" path="res://Assets/Sprites/Jesus/Jesus Spritesheet.png" id="4_e5cec"]
|
2023-04-07 14:11:07 +00:00
|
|
|
|
2023-04-07 17:26:18 +00:00
|
|
|
[sub_resource type="Animation" id="Animation_kdxam"]
|
|
|
|
resource_name = "Idle"
|
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/path = NodePath("Player Sprite:frame")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
|
|
|
"times": PackedFloat32Array(0),
|
|
|
|
"transitions": PackedFloat32Array(1),
|
|
|
|
"update": 1,
|
|
|
|
"values": [0]
|
|
|
|
}
|
2023-04-07 14:11:07 +00:00
|
|
|
|
2023-04-07 17:26:18 +00:00
|
|
|
[sub_resource type="Animation" id="Animation_dwpep"]
|
|
|
|
resource_name = "MoveDown"
|
|
|
|
length = 0.8
|
|
|
|
loop_mode = 1
|
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/path = NodePath("Player Sprite:frame")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = false
|
|
|
|
tracks/0/keys = {
|
|
|
|
"times": PackedFloat32Array(0, 0.2, 0.4, 0.6),
|
|
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1),
|
|
|
|
"update": 1,
|
|
|
|
"values": [0, 1, 2, 3]
|
|
|
|
}
|
|
|
|
|
|
|
|
[sub_resource type="Animation" id="Animation_2jvl5"]
|
|
|
|
resource_name = "MoveLeft"
|
|
|
|
length = 0.8
|
|
|
|
loop_mode = 1
|
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/path = NodePath("Player Sprite:frame")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
|
|
|
"times": PackedFloat32Array(0, 0.2, 0.4, 0.6),
|
|
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1),
|
|
|
|
"update": 1,
|
|
|
|
"values": [12, 13, 14, 15]
|
|
|
|
}
|
|
|
|
|
|
|
|
[sub_resource type="Animation" id="Animation_4ig1u"]
|
|
|
|
resource_name = "MoveRight"
|
|
|
|
length = 0.8
|
|
|
|
loop_mode = 1
|
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/path = NodePath("Player Sprite:frame")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
|
|
|
"times": PackedFloat32Array(0, 0.2, 0.4, 0.6),
|
|
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1),
|
|
|
|
"update": 1,
|
|
|
|
"values": [4, 5, 6, 7]
|
|
|
|
}
|
|
|
|
|
|
|
|
[sub_resource type="Animation" id="Animation_pswkh"]
|
|
|
|
resource_name = "MoveUp"
|
|
|
|
length = 0.8
|
|
|
|
loop_mode = 1
|
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/path = NodePath("Player Sprite:frame")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
|
|
|
"times": PackedFloat32Array(0, 0.2, 0.4, 0.6),
|
|
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1),
|
|
|
|
"update": 1,
|
|
|
|
"values": [8, 9, 10, 11]
|
|
|
|
}
|
|
|
|
|
|
|
|
[sub_resource type="Animation" id="Animation_o3hln"]
|
|
|
|
length = 0.001
|
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/path = NodePath("Player Sprite:frame")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
|
|
|
"times": PackedFloat32Array(0),
|
|
|
|
"transitions": PackedFloat32Array(1),
|
|
|
|
"update": 1,
|
|
|
|
"values": [0]
|
|
|
|
}
|
|
|
|
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_bi1h3"]
|
|
|
|
_data = {
|
|
|
|
"Idle": SubResource("Animation_kdxam"),
|
|
|
|
"MoveDown": SubResource("Animation_dwpep"),
|
|
|
|
"MoveLeft": SubResource("Animation_2jvl5"),
|
|
|
|
"MoveRight": SubResource("Animation_4ig1u"),
|
|
|
|
"MoveUp": SubResource("Animation_pswkh"),
|
|
|
|
"RESET": SubResource("Animation_o3hln")
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="Player Movement" type="Node2D"]
|
|
|
|
|
|
|
|
[node name="Map Generator" type="TileMap" parent="."]
|
2023-04-08 00:17:24 +00:00
|
|
|
tile_set = ExtResource("1_wkp62")
|
|
|
|
cell_quadrant_size = 32
|
2023-04-07 14:22:55 +00:00
|
|
|
collision_visibility_mode = 1
|
|
|
|
format = 2
|
|
|
|
script = ExtResource("4_8st0q")
|
2023-04-08 00:17:24 +00:00
|
|
|
start_area_size = 3
|
|
|
|
start_area_corner_size = 1
|
2023-04-07 14:22:55 +00:00
|
|
|
|
2023-04-07 17:26:18 +00:00
|
|
|
[node name="Player" type="CharacterBody2D" parent="." node_paths=PackedStringArray("animation_player")]
|
2023-04-08 00:17:24 +00:00
|
|
|
position = Vector2(960, 512)
|
|
|
|
scale = Vector2(0.5, 0.5)
|
|
|
|
collision_layer = 0
|
2023-04-07 14:11:07 +00:00
|
|
|
script = ExtResource("1_x3102")
|
2023-04-08 00:17:24 +00:00
|
|
|
speed = 60
|
2023-04-07 17:26:18 +00:00
|
|
|
animation_player = NodePath("Player Animator")
|
2023-04-07 14:11:07 +00:00
|
|
|
|
2023-04-07 17:26:18 +00:00
|
|
|
[node name="Player Sprite" type="Sprite2D" parent="Player"]
|
|
|
|
position = Vector2(0, -20)
|
|
|
|
texture = ExtResource("4_e5cec")
|
|
|
|
hframes = 4
|
|
|
|
vframes = 4
|
2023-04-07 14:11:07 +00:00
|
|
|
|
2023-04-07 17:26:18 +00:00
|
|
|
[node name="Player Collider" type="CollisionPolygon2D" parent="Player"]
|
|
|
|
polygon = PackedVector2Array(12, 32, -16, 32, -16, -24, 12, -24)
|
2023-04-07 14:11:07 +00:00
|
|
|
|
2023-04-07 17:26:18 +00:00
|
|
|
[node name="Player Camera" type="Camera2D" parent="Player"]
|
2023-04-08 00:17:24 +00:00
|
|
|
zoom = Vector2(3, 3)
|
2023-04-07 14:11:07 +00:00
|
|
|
position_smoothing_enabled = true
|
|
|
|
drag_horizontal_enabled = true
|
|
|
|
drag_vertical_enabled = true
|
|
|
|
editor_draw_drag_margin = true
|
2023-04-07 17:26:18 +00:00
|
|
|
|
|
|
|
[node name="Player Animator" type="AnimationPlayer" parent="Player"]
|
|
|
|
libraries = {
|
|
|
|
"": SubResource("AnimationLibrary_bi1h3")
|
|
|
|
}
|