forked from newt/gmtk-2024
feat: stage controller + player animations
This commit is contained in:
parent
25f21d0163
commit
c4c796f323
18 changed files with 1038 additions and 138 deletions
42
Borders.tscn
Normal file
42
Borders.tscn
Normal file
|
@ -0,0 +1,42 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://bab4ac3s2n0o1"]
|
||||
|
||||
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_j1bt6"]
|
||||
normal = Vector2(1, 0)
|
||||
distance = -184.0
|
||||
|
||||
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_wodb0"]
|
||||
normal = Vector2(-1, 0)
|
||||
distance = -208.0
|
||||
|
||||
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_ogsi3"]
|
||||
normal = Vector2(0, 1)
|
||||
distance = -240.0
|
||||
|
||||
[node name="Borders" type="Node2D"]
|
||||
|
||||
[node name="Left" type="StaticBody2D" parent="."]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Left"]
|
||||
position = Vector2(184, 192)
|
||||
shape = SubResource("WorldBoundaryShape2D_j1bt6")
|
||||
|
||||
[node name="Right" type="StaticBody2D" parent="."]
|
||||
position = Vector2(0, -72)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Right"]
|
||||
position = Vector2(272, 264)
|
||||
shape = SubResource("WorldBoundaryShape2D_wodb0")
|
||||
|
||||
[node name="Trigger" type="Area2D" parent="Right"]
|
||||
position = Vector2(0, 72)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Right/Trigger"]
|
||||
position = Vector2(272, 264)
|
||||
shape = SubResource("WorldBoundaryShape2D_wodb0")
|
||||
|
||||
[node name="Top" type="StaticBody2D" parent="."]
|
||||
position = Vector2(-40, 0)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Top"]
|
||||
position = Vector2(272, 240)
|
||||
shape = SubResource("WorldBoundaryShape2D_ogsi3")
|
BIN
Layer 3.png
BIN
Layer 3.png
Binary file not shown.
Before Width: | Height: | Size: 14 KiB |
288
PlaB2B6.tmp
Normal file
288
PlaB2B6.tmp
Normal file
|
@ -0,0 +1,288 @@
|
|||
[gd_scene load_steps=37 format=3 uid="uid://cjiuycwqqxaxn"]
|
||||
|
||||
[ext_resource type="Script" path="res://player.gd" id="1_oy25y"]
|
||||
[ext_resource type="Texture2D" uid="uid://cownabyc1p26u" path="res://assets/export/playerLayer 3.png" id="2_5c6qp"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_unh28"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(0, 0, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_06hsv"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(32, 0, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_75rwr"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(64, 0, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ithwi"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(96, 0, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ylpmh"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(128, 0, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_s5fe3"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(160, 0, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_371nq"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(0, 64, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_w5q6j"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(32, 64, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_gq465"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(64, 64, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ushcs"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(96, 64, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_v6ggy"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(32, 256, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_2q2n8"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(64, 256, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_j8nd3"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(96, 256, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_wqlee"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(128, 256, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_liu5q"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(160, 256, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_fy414"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(0, 320, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_vpy4r"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(32, 320, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_bu1yd"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(128, 64, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_yxpbn"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(160, 64, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_np4p4"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(0, 128, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_onkmm"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(32, 128, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_0r4ck"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(64, 128, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_h7t71"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(96, 128, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_dtkph"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(128, 128, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_jerwg"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(160, 128, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_02mrb"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(0, 192, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_a53i7"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(32, 192, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_3afct"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(64, 192, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_urkyt"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(96, 192, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_jjvw0"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(128, 192, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_s3yi7"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(160, 192, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_t4j8f"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(0, 256, 32, 64)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_f2tke"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_unh28")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_06hsv")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_75rwr")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ithwi")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ylpmh")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_s5fe3")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_371nq")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_w5q6j")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_gq465")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ushcs")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"idle",
|
||||
"speed": 10.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_unh28")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_v6ggy")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_2q2n8")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_j8nd3")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_wqlee")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_liu5q")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_fy414")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_vpy4r")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_2q2n8")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_v6ggy")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_unh28")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"jump",
|
||||
"speed": 10.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_bu1yd")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_yxpbn")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_np4p4")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_onkmm")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_0r4ck")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_h7t71")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_dtkph")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_jerwg")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_02mrb")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_a53i7")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_3afct")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_urkyt")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_jjvw0")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_s3yi7")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_t4j8f")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"walk",
|
||||
"speed": 10.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_0on8q"]
|
||||
size = Vector2(28, 64)
|
||||
|
||||
[node name="Player" type="CharacterBody2D"]
|
||||
script = ExtResource("1_oy25y")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
texture_filter = 1
|
||||
sprite_frames = SubResource("SpriteFrames_f2tke")
|
||||
animation = &"jump"
|
||||
metadata/_aseprite_wizard_config_ = {
|
||||
"layer": "Layer 3",
|
||||
"o_ex_p": "",
|
||||
"o_folder": "res://assets/export",
|
||||
"o_name": "player",
|
||||
"only_visible": false,
|
||||
"slice": "",
|
||||
"source": "res://assets/PlayerCharacter.aseprite"
|
||||
}
|
||||
metadata/_aseprite_wizard_source_file_hash_ = "e4930daa975c704a60a92789b7fbe76d"
|
||||
metadata/_aseprite_wizard_interface_config_ = {
|
||||
"layer_section": true,
|
||||
"output_section": true
|
||||
}
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(2, 0)
|
||||
shape = SubResource("RectangleShape2D_0on8q")
|
||||
debug_color = Color(1, 0.254902, 0.415686, 0.105882)
|
282
Player.tscn
282
Player.tscn
|
@ -1,140 +1,168 @@
|
|||
[gd_scene load_steps=30 format=3 uid="uid://cjiuycwqqxaxn"]
|
||||
[gd_scene load_steps=37 format=3 uid="uid://cjiuycwqqxaxn"]
|
||||
|
||||
[ext_resource type="Script" path="res://player.gd" id="1_oy25y"]
|
||||
[ext_resource type="Texture2D" uid="uid://cxdjxd2sv21hu" path="res://Layer 3.png" id="2_u5vg1"]
|
||||
[ext_resource type="Texture2D" uid="uid://cownabyc1p26u" path="res://assets/export/playerLayer 3.png" id="2_5c6qp"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_8d47g"]
|
||||
atlas = ExtResource("2_u5vg1")
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_unh28"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(0, 0, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_e4ysm"]
|
||||
atlas = ExtResource("2_u5vg1")
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_06hsv"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(32, 0, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_4rhkl"]
|
||||
atlas = ExtResource("2_u5vg1")
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_75rwr"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(64, 0, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_arcxo"]
|
||||
atlas = ExtResource("2_u5vg1")
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ithwi"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(96, 0, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_00jl2"]
|
||||
atlas = ExtResource("2_u5vg1")
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ylpmh"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(128, 0, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_0hb6a"]
|
||||
atlas = ExtResource("2_u5vg1")
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_s5fe3"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(160, 0, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_371nq"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(0, 64, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_yn35a"]
|
||||
atlas = ExtResource("2_u5vg1")
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_w5q6j"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(32, 64, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_f27hx"]
|
||||
atlas = ExtResource("2_u5vg1")
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_gq465"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(64, 64, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_si5lp"]
|
||||
atlas = ExtResource("2_u5vg1")
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ushcs"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(96, 64, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mmtke"]
|
||||
atlas = ExtResource("2_u5vg1")
|
||||
region = Rect2(128, 64, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_dkmnd"]
|
||||
atlas = ExtResource("2_u5vg1")
|
||||
region = Rect2(0, 128, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_cermf"]
|
||||
atlas = ExtResource("2_u5vg1")
|
||||
region = Rect2(32, 128, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_hdhbl"]
|
||||
atlas = ExtResource("2_u5vg1")
|
||||
region = Rect2(64, 128, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_frlcl"]
|
||||
atlas = ExtResource("2_u5vg1")
|
||||
region = Rect2(96, 128, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_rkycb"]
|
||||
atlas = ExtResource("2_u5vg1")
|
||||
region = Rect2(128, 128, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_kgrgd"]
|
||||
atlas = ExtResource("2_u5vg1")
|
||||
region = Rect2(0, 192, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ulb1s"]
|
||||
atlas = ExtResource("2_u5vg1")
|
||||
region = Rect2(32, 192, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_cpo0y"]
|
||||
atlas = ExtResource("2_u5vg1")
|
||||
region = Rect2(64, 192, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_51m40"]
|
||||
atlas = ExtResource("2_u5vg1")
|
||||
region = Rect2(96, 192, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_aqja2"]
|
||||
atlas = ExtResource("2_u5vg1")
|
||||
region = Rect2(128, 192, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_m750d"]
|
||||
atlas = ExtResource("2_u5vg1")
|
||||
region = Rect2(0, 256, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_psi6a"]
|
||||
atlas = ExtResource("2_u5vg1")
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_v6ggy"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(32, 256, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_0s74t"]
|
||||
atlas = ExtResource("2_u5vg1")
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_2q2n8"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(64, 256, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_qjvpa"]
|
||||
atlas = ExtResource("2_u5vg1")
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_j8nd3"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(96, 256, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_fveui"]
|
||||
atlas = ExtResource("2_u5vg1")
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_wqlee"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(128, 256, 32, 64)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_iat2j"]
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_liu5q"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(160, 256, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_fy414"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(0, 320, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_vpy4r"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(32, 320, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_bu1yd"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(128, 64, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_yxpbn"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(160, 64, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_np4p4"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(0, 128, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_onkmm"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(32, 128, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_0r4ck"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(64, 128, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_h7t71"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(96, 128, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_dtkph"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(128, 128, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_jerwg"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(160, 128, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_02mrb"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(0, 192, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_a53i7"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(32, 192, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_3afct"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(64, 192, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_urkyt"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(96, 192, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_jjvw0"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(128, 192, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_s3yi7"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(160, 192, 32, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_t4j8f"]
|
||||
atlas = ExtResource("2_5c6qp")
|
||||
region = Rect2(0, 256, 32, 64)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_f2tke"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_8d47g")
|
||||
"texture": SubResource("AtlasTexture_unh28")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_e4ysm")
|
||||
"texture": SubResource("AtlasTexture_06hsv")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_4rhkl")
|
||||
"texture": SubResource("AtlasTexture_75rwr")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_arcxo")
|
||||
"texture": SubResource("AtlasTexture_ithwi")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_00jl2")
|
||||
"texture": SubResource("AtlasTexture_ylpmh")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_0hb6a")
|
||||
"texture": SubResource("AtlasTexture_s5fe3")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_yn35a")
|
||||
"texture": SubResource("AtlasTexture_371nq")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_f27hx")
|
||||
"texture": SubResource("AtlasTexture_w5q6j")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_si5lp")
|
||||
"texture": SubResource("AtlasTexture_gq465")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_mmtke")
|
||||
"texture": SubResource("AtlasTexture_ushcs")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"idle",
|
||||
|
@ -142,49 +170,87 @@ animations = [{
|
|||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_dkmnd")
|
||||
"texture": SubResource("AtlasTexture_unh28")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_cermf")
|
||||
"texture": SubResource("AtlasTexture_v6ggy")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_hdhbl")
|
||||
"texture": SubResource("AtlasTexture_2q2n8")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_frlcl")
|
||||
"texture": SubResource("AtlasTexture_j8nd3")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_rkycb")
|
||||
"texture": SubResource("AtlasTexture_wqlee")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_kgrgd")
|
||||
"texture": SubResource("AtlasTexture_liu5q")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ulb1s")
|
||||
"texture": SubResource("AtlasTexture_fy414")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_cpo0y")
|
||||
"texture": SubResource("AtlasTexture_vpy4r")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_51m40")
|
||||
"texture": SubResource("AtlasTexture_2q2n8")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_aqja2")
|
||||
"texture": SubResource("AtlasTexture_v6ggy")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_m750d")
|
||||
"texture": SubResource("AtlasTexture_unh28")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"jump",
|
||||
"speed": 10.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_bu1yd")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_psi6a")
|
||||
"texture": SubResource("AtlasTexture_yxpbn")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_0s74t")
|
||||
"texture": SubResource("AtlasTexture_np4p4")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_qjvpa")
|
||||
"texture": SubResource("AtlasTexture_onkmm")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_fveui")
|
||||
"texture": SubResource("AtlasTexture_0r4ck")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_h7t71")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_dtkph")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_jerwg")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_02mrb")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_a53i7")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_3afct")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_urkyt")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_jjvw0")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_s3yi7")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_t4j8f")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"walk",
|
||||
|
@ -199,19 +265,19 @@ script = ExtResource("1_oy25y")
|
|||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
texture_filter = 1
|
||||
sprite_frames = SubResource("SpriteFrames_iat2j")
|
||||
animation = &"walk"
|
||||
frame_progress = 0.300851
|
||||
sprite_frames = SubResource("SpriteFrames_f2tke")
|
||||
animation = &"jump"
|
||||
frame_progress = 0.0204075
|
||||
metadata/_aseprite_wizard_config_ = {
|
||||
"layer": "Layer 3",
|
||||
"o_ex_p": "",
|
||||
"o_folder": "",
|
||||
"o_name": "",
|
||||
"o_folder": "res://assets/export",
|
||||
"o_name": "player",
|
||||
"only_visible": false,
|
||||
"slice": "",
|
||||
"source": "res://assets/PlayerCharacter.aseprite"
|
||||
}
|
||||
metadata/_aseprite_wizard_source_file_hash_ = "c2f10613af41076ed14f7dd74dccbea5"
|
||||
metadata/_aseprite_wizard_source_file_hash_ = "e4930daa975c704a60a92789b7fbe76d"
|
||||
metadata/_aseprite_wizard_interface_config_ = {
|
||||
"layer_section": true,
|
||||
"output_section": true
|
||||
|
|
23
World.tscn
23
World.tscn
|
@ -1,23 +0,0 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://cei5gjgfoginb"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://cjiuycwqqxaxn" path="res://Player.tscn" id="1_4tauq"]
|
||||
|
||||
[sub_resource type="QuadMesh" id="QuadMesh_seics"]
|
||||
size = Vector2(480, 20)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_h5wua"]
|
||||
size = Vector2(480, 20)
|
||||
|
||||
[node name="World" type="Node2D"]
|
||||
position = Vector2(272, 240)
|
||||
|
||||
[node name="Player" parent="." instance=ExtResource("1_4tauq")]
|
||||
position = Vector2(-37, -59)
|
||||
|
||||
[node name="Floor" type="StaticBody2D" parent="."]
|
||||
|
||||
[node name="MeshInstance2D" type="MeshInstance2D" parent="Floor"]
|
||||
mesh = SubResource("QuadMesh_seics")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Floor"]
|
||||
shape = SubResource("RectangleShape2D_h5wua")
|
Binary file not shown.
342
assets/export/player-Layer 3.json
Normal file
342
assets/export/player-Layer 3.json
Normal file
|
@ -0,0 +1,342 @@
|
|||
{ "frames": [
|
||||
{
|
||||
"filename": "PlayerCharacter (Layer 3) 0.aseprite",
|
||||
"frame": { "x": 0, "y": 0, "w": 32, "h": 64 },
|
||||
"rotated": false,
|
||||
"trimmed": false,
|
||||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 64 },
|
||||
"sourceSize": { "w": 32, "h": 64 },
|
||||
"duration": 100
|
||||
},
|
||||
{
|
||||
"filename": "PlayerCharacter (Layer 3) 1.aseprite",
|
||||
"frame": { "x": 32, "y": 0, "w": 32, "h": 64 },
|
||||
"rotated": false,
|
||||
"trimmed": false,
|
||||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 64 },
|
||||
"sourceSize": { "w": 32, "h": 64 },
|
||||
"duration": 100
|
||||
},
|
||||
{
|
||||
"filename": "PlayerCharacter (Layer 3) 2.aseprite",
|
||||
"frame": { "x": 64, "y": 0, "w": 32, "h": 64 },
|
||||
"rotated": false,
|
||||
"trimmed": false,
|
||||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 64 },
|
||||
"sourceSize": { "w": 32, "h": 64 },
|
||||
"duration": 100
|
||||
},
|
||||
{
|
||||
"filename": "PlayerCharacter (Layer 3) 3.aseprite",
|
||||
"frame": { "x": 96, "y": 0, "w": 32, "h": 64 },
|
||||
"rotated": false,
|
||||
"trimmed": false,
|
||||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 64 },
|
||||
"sourceSize": { "w": 32, "h": 64 },
|
||||
"duration": 100
|
||||
},
|
||||
{
|
||||
"filename": "PlayerCharacter (Layer 3) 4.aseprite",
|
||||
"frame": { "x": 128, "y": 0, "w": 32, "h": 64 },
|
||||
"rotated": false,
|
||||
"trimmed": false,
|
||||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 64 },
|
||||
"sourceSize": { "w": 32, "h": 64 },
|
||||
"duration": 100
|
||||
},
|
||||
{
|
||||
"filename": "PlayerCharacter (Layer 3) 5.aseprite",
|
||||
"frame": { "x": 160, "y": 0, "w": 32, "h": 64 },
|
||||
"rotated": false,
|
||||
"trimmed": false,
|
||||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 64 },
|
||||
"sourceSize": { "w": 32, "h": 64 },
|
||||
"duration": 100
|
||||
},
|
||||
{
|
||||
"filename": "PlayerCharacter (Layer 3) 6.aseprite",
|
||||
"frame": { "x": 0, "y": 64, "w": 32, "h": 64 },
|
||||
"rotated": false,
|
||||
"trimmed": false,
|
||||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 64 },
|
||||
"sourceSize": { "w": 32, "h": 64 },
|
||||
"duration": 100
|
||||
},
|
||||
{
|
||||
"filename": "PlayerCharacter (Layer 3) 7.aseprite",
|
||||
"frame": { "x": 32, "y": 64, "w": 32, "h": 64 },
|
||||
"rotated": false,
|
||||
"trimmed": false,
|
||||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 64 },
|
||||
"sourceSize": { "w": 32, "h": 64 },
|
||||
"duration": 100
|
||||
},
|
||||
{
|
||||
"filename": "PlayerCharacter (Layer 3) 8.aseprite",
|
||||
"frame": { "x": 64, "y": 64, "w": 32, "h": 64 },
|
||||
"rotated": false,
|
||||
"trimmed": false,
|
||||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 64 },
|
||||
"sourceSize": { "w": 32, "h": 64 },
|
||||
"duration": 100
|
||||
},
|
||||
{
|
||||
"filename": "PlayerCharacter (Layer 3) 9.aseprite",
|
||||
"frame": { "x": 96, "y": 64, "w": 32, "h": 64 },
|
||||
"rotated": false,
|
||||
"trimmed": false,
|
||||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 64 },
|
||||
"sourceSize": { "w": 32, "h": 64 },
|
||||
"duration": 100
|
||||
},
|
||||
{
|
||||
"filename": "PlayerCharacter (Layer 3) 10.aseprite",
|
||||
"frame": { "x": 128, "y": 64, "w": 32, "h": 64 },
|
||||
"rotated": false,
|
||||
"trimmed": false,
|
||||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 64 },
|
||||
"sourceSize": { "w": 32, "h": 64 },
|
||||
"duration": 100
|
||||
},
|
||||
{
|
||||
"filename": "PlayerCharacter (Layer 3) 11.aseprite",
|
||||
"frame": { "x": 160, "y": 64, "w": 32, "h": 64 },
|
||||
"rotated": false,
|
||||
"trimmed": false,
|
||||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 64 },
|
||||
"sourceSize": { "w": 32, "h": 64 },
|
||||
"duration": 100
|
||||
},
|
||||
{
|
||||
"filename": "PlayerCharacter (Layer 3) 12.aseprite",
|
||||
"frame": { "x": 0, "y": 128, "w": 32, "h": 64 },
|
||||
"rotated": false,
|
||||
"trimmed": false,
|
||||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 64 },
|
||||
"sourceSize": { "w": 32, "h": 64 },
|
||||
"duration": 100
|
||||
},
|
||||
{
|
||||
"filename": "PlayerCharacter (Layer 3) 13.aseprite",
|
||||
"frame": { "x": 32, "y": 128, "w": 32, "h": 64 },
|
||||
"rotated": false,
|
||||
"trimmed": false,
|
||||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 64 },
|
||||
"sourceSize": { "w": 32, "h": 64 },
|
||||
"duration": 100
|
||||
},
|
||||
{
|
||||
"filename": "PlayerCharacter (Layer 3) 14.aseprite",
|
||||
"frame": { "x": 64, "y": 128, "w": 32, "h": 64 },
|
||||
"rotated": false,
|
||||
"trimmed": false,
|
||||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 64 },
|
||||
"sourceSize": { "w": 32, "h": 64 },
|
||||
"duration": 100
|
||||
},
|
||||
{
|
||||
"filename": "PlayerCharacter (Layer 3) 15.aseprite",
|
||||
"frame": { "x": 96, "y": 128, "w": 32, "h": 64 },
|
||||
"rotated": false,
|
||||
"trimmed": false,
|
||||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 64 },
|
||||
"sourceSize": { "w": 32, "h": 64 },
|
||||
"duration": 100
|
||||
},
|
||||
{
|
||||
"filename": "PlayerCharacter (Layer 3) 16.aseprite",
|
||||
"frame": { "x": 128, "y": 128, "w": 32, "h": 64 },
|
||||
"rotated": false,
|
||||
"trimmed": false,
|
||||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 64 },
|
||||
"sourceSize": { "w": 32, "h": 64 },
|
||||
"duration": 100
|
||||
},
|
||||
{
|
||||
"filename": "PlayerCharacter (Layer 3) 17.aseprite",
|
||||
"frame": { "x": 160, "y": 128, "w": 32, "h": 64 },
|
||||
"rotated": false,
|
||||
"trimmed": false,
|
||||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 64 },
|
||||
"sourceSize": { "w": 32, "h": 64 },
|
||||
"duration": 100
|
||||
},
|
||||
{
|
||||
"filename": "PlayerCharacter (Layer 3) 18.aseprite",
|
||||
"frame": { "x": 0, "y": 192, "w": 32, "h": 64 },
|
||||
"rotated": false,
|
||||
"trimmed": false,
|
||||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 64 },
|
||||
"sourceSize": { "w": 32, "h": 64 },
|
||||
"duration": 100
|
||||
},
|
||||
{
|
||||
"filename": "PlayerCharacter (Layer 3) 19.aseprite",
|
||||
"frame": { "x": 32, "y": 192, "w": 32, "h": 64 },
|
||||
"rotated": false,
|
||||
"trimmed": false,
|
||||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 64 },
|
||||
"sourceSize": { "w": 32, "h": 64 },
|
||||
"duration": 100
|
||||
},
|
||||
{
|
||||
"filename": "PlayerCharacter (Layer 3) 20.aseprite",
|
||||
"frame": { "x": 64, "y": 192, "w": 32, "h": 64 },
|
||||
"rotated": false,
|
||||
"trimmed": false,
|
||||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 64 },
|
||||
"sourceSize": { "w": 32, "h": 64 },
|
||||
"duration": 100
|
||||
},
|
||||
{
|
||||
"filename": "PlayerCharacter (Layer 3) 21.aseprite",
|
||||
"frame": { "x": 96, "y": 192, "w": 32, "h": 64 },
|
||||
"rotated": false,
|
||||
"trimmed": false,
|
||||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 64 },
|
||||
"sourceSize": { "w": 32, "h": 64 },
|
||||
"duration": 100
|
||||
},
|
||||
{
|
||||
"filename": "PlayerCharacter (Layer 3) 22.aseprite",
|
||||
"frame": { "x": 128, "y": 192, "w": 32, "h": 64 },
|
||||
"rotated": false,
|
||||
"trimmed": false,
|
||||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 64 },
|
||||
"sourceSize": { "w": 32, "h": 64 },
|
||||
"duration": 100
|
||||
},
|
||||
{
|
||||
"filename": "PlayerCharacter (Layer 3) 23.aseprite",
|
||||
"frame": { "x": 160, "y": 192, "w": 32, "h": 64 },
|
||||
"rotated": false,
|
||||
"trimmed": false,
|
||||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 64 },
|
||||
"sourceSize": { "w": 32, "h": 64 },
|
||||
"duration": 100
|
||||
},
|
||||
{
|
||||
"filename": "PlayerCharacter (Layer 3) 24.aseprite",
|
||||
"frame": { "x": 0, "y": 256, "w": 32, "h": 64 },
|
||||
"rotated": false,
|
||||
"trimmed": false,
|
||||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 64 },
|
||||
"sourceSize": { "w": 32, "h": 64 },
|
||||
"duration": 100
|
||||
},
|
||||
{
|
||||
"filename": "PlayerCharacter (Layer 3) 25.aseprite",
|
||||
"frame": { "x": 0, "y": 0, "w": 32, "h": 64 },
|
||||
"rotated": false,
|
||||
"trimmed": false,
|
||||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 64 },
|
||||
"sourceSize": { "w": 32, "h": 64 },
|
||||
"duration": 100
|
||||
},
|
||||
{
|
||||
"filename": "PlayerCharacter (Layer 3) 26.aseprite",
|
||||
"frame": { "x": 32, "y": 256, "w": 32, "h": 64 },
|
||||
"rotated": false,
|
||||
"trimmed": false,
|
||||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 64 },
|
||||
"sourceSize": { "w": 32, "h": 64 },
|
||||
"duration": 100
|
||||
},
|
||||
{
|
||||
"filename": "PlayerCharacter (Layer 3) 27.aseprite",
|
||||
"frame": { "x": 64, "y": 256, "w": 32, "h": 64 },
|
||||
"rotated": false,
|
||||
"trimmed": false,
|
||||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 64 },
|
||||
"sourceSize": { "w": 32, "h": 64 },
|
||||
"duration": 100
|
||||
},
|
||||
{
|
||||
"filename": "PlayerCharacter (Layer 3) 28.aseprite",
|
||||
"frame": { "x": 96, "y": 256, "w": 32, "h": 64 },
|
||||
"rotated": false,
|
||||
"trimmed": false,
|
||||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 64 },
|
||||
"sourceSize": { "w": 32, "h": 64 },
|
||||
"duration": 100
|
||||
},
|
||||
{
|
||||
"filename": "PlayerCharacter (Layer 3) 29.aseprite",
|
||||
"frame": { "x": 128, "y": 256, "w": 32, "h": 64 },
|
||||
"rotated": false,
|
||||
"trimmed": false,
|
||||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 64 },
|
||||
"sourceSize": { "w": 32, "h": 64 },
|
||||
"duration": 100
|
||||
},
|
||||
{
|
||||
"filename": "PlayerCharacter (Layer 3) 30.aseprite",
|
||||
"frame": { "x": 160, "y": 256, "w": 32, "h": 64 },
|
||||
"rotated": false,
|
||||
"trimmed": false,
|
||||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 64 },
|
||||
"sourceSize": { "w": 32, "h": 64 },
|
||||
"duration": 100
|
||||
},
|
||||
{
|
||||
"filename": "PlayerCharacter (Layer 3) 31.aseprite",
|
||||
"frame": { "x": 0, "y": 320, "w": 32, "h": 64 },
|
||||
"rotated": false,
|
||||
"trimmed": false,
|
||||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 64 },
|
||||
"sourceSize": { "w": 32, "h": 64 },
|
||||
"duration": 100
|
||||
},
|
||||
{
|
||||
"filename": "PlayerCharacter (Layer 3) 32.aseprite",
|
||||
"frame": { "x": 32, "y": 320, "w": 32, "h": 64 },
|
||||
"rotated": false,
|
||||
"trimmed": false,
|
||||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 64 },
|
||||
"sourceSize": { "w": 32, "h": 64 },
|
||||
"duration": 100
|
||||
},
|
||||
{
|
||||
"filename": "PlayerCharacter (Layer 3) 33.aseprite",
|
||||
"frame": { "x": 64, "y": 256, "w": 32, "h": 64 },
|
||||
"rotated": false,
|
||||
"trimmed": false,
|
||||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 64 },
|
||||
"sourceSize": { "w": 32, "h": 64 },
|
||||
"duration": 100
|
||||
},
|
||||
{
|
||||
"filename": "PlayerCharacter (Layer 3) 34.aseprite",
|
||||
"frame": { "x": 32, "y": 256, "w": 32, "h": 64 },
|
||||
"rotated": false,
|
||||
"trimmed": false,
|
||||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 64 },
|
||||
"sourceSize": { "w": 32, "h": 64 },
|
||||
"duration": 100
|
||||
},
|
||||
{
|
||||
"filename": "PlayerCharacter (Layer 3) 35.aseprite",
|
||||
"frame": { "x": 0, "y": 0, "w": 32, "h": 64 },
|
||||
"rotated": false,
|
||||
"trimmed": false,
|
||||
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 64 },
|
||||
"sourceSize": { "w": 32, "h": 64 },
|
||||
"duration": 100
|
||||
}
|
||||
],
|
||||
"meta": {
|
||||
"app": "https://www.aseprite.org/",
|
||||
"version": "1.3.7-x64",
|
||||
"image": "player-Layer 3.png",
|
||||
"format": "RGBA8888",
|
||||
"size": { "w": 192, "h": 384 },
|
||||
"scale": "1",
|
||||
"frameTags": [
|
||||
{ "name": "idle", "from": 0, "to": 9, "direction": "forward", "color": "#000000ff" },
|
||||
{ "name": "walk", "from": 10, "to": 24, "direction": "forward", "color": "#000000ff" },
|
||||
{ "name": "Jump", "from": 25, "to": 35, "direction": "forward", "color": "#000000ff" }
|
||||
],
|
||||
"slices": [
|
||||
]
|
||||
}
|
||||
}
|
BIN
assets/export/player-Layer 3.png
Normal file
BIN
assets/export/player-Layer 3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
34
assets/export/player-Layer 3.png.import
Normal file
34
assets/export/player-Layer 3.png.import
Normal file
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dsnpac5r75lqq"
|
||||
path="res://.godot/imported/player-Layer 3.png-78aa4290b50b0430b7c62e273890bd8a.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/export/player-Layer 3.png"
|
||||
dest_files=["res://.godot/imported/player-Layer 3.png-78aa4290b50b0430b7c62e273890bd8a.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
BIN
assets/export/playerLayer 3.png
Normal file
BIN
assets/export/playerLayer 3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
|
@ -2,16 +2,16 @@
|
|||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cxdjxd2sv21hu"
|
||||
path="res://.godot/imported/Layer 3.png-cd7bea8c5ddca19297a526bc9b9b3d56.ctex"
|
||||
uid="uid://cownabyc1p26u"
|
||||
path="res://.godot/imported/playerLayer 3.png-19d44d1532490179ac87e2d5d4a2e2ef.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Layer 3.png"
|
||||
dest_files=["res://.godot/imported/Layer 3.png-cd7bea8c5ddca19297a526bc9b9b3d56.ctex"]
|
||||
source_file="res://assets/export/playerLayer 3.png"
|
||||
dest_files=["res://.godot/imported/playerLayer 3.png-19d44d1532490179ac87e2d5d4a2e2ef.ctex"]
|
||||
|
||||
[params]
|
||||
|
32
levels/level1/staD320.tmp
Normal file
32
levels/level1/staD320.tmp
Normal file
|
@ -0,0 +1,32 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://cei5gjgfoginb"]
|
||||
|
||||
[ext_resource type="Script" path="res://stageController.gd" id="1_m1n7w"]
|
||||
[ext_resource type="PackedScene" uid="uid://cjiuycwqqxaxn" path="res://Player.tscn" id="2_sxo5w"]
|
||||
[ext_resource type="PackedScene" uid="uid://bab4ac3s2n0o1" path="res://Borders.tscn" id="3_04xvl"]
|
||||
|
||||
[sub_resource type="QuadMesh" id="QuadMesh_seics"]
|
||||
size = Vector2(480, 64)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_h5wua"]
|
||||
size = Vector2(480, 66)
|
||||
|
||||
[node name="World" type="Node2D"]
|
||||
position = Vector2(272, 240)
|
||||
script = ExtResource("1_m1n7w")
|
||||
next_stage = "res://levels/level1/stage2.tscn"
|
||||
|
||||
[node name="Player" parent="." instance=ExtResource("2_sxo5w")]
|
||||
position = Vector2(-192, 0)
|
||||
|
||||
[node name="Borders" parent="." instance=ExtResource("3_04xvl")]
|
||||
position = Vector2(-272, -240)
|
||||
|
||||
[node name="Floor" type="StaticBody2D" parent="."]
|
||||
|
||||
[node name="MeshInstance2D" type="MeshInstance2D" parent="Floor"]
|
||||
position = Vector2(-32, 88)
|
||||
mesh = SubResource("QuadMesh_seics")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Floor"]
|
||||
position = Vector2(-32, 89)
|
||||
shape = SubResource("RectangleShape2D_h5wua")
|
32
levels/level1/staF2DE.tmp
Normal file
32
levels/level1/staF2DE.tmp
Normal file
|
@ -0,0 +1,32 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://cei5gjgfoginb"]
|
||||
|
||||
[ext_resource type="Script" path="res://stageController.gd" id="1_m1n7w"]
|
||||
[ext_resource type="PackedScene" uid="uid://cjiuycwqqxaxn" path="res://Player.tscn" id="2_sxo5w"]
|
||||
[ext_resource type="PackedScene" uid="uid://bab4ac3s2n0o1" path="res://Borders.tscn" id="3_04xvl"]
|
||||
|
||||
[sub_resource type="QuadMesh" id="QuadMesh_seics"]
|
||||
size = Vector2(480, 64)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_h5wua"]
|
||||
size = Vector2(480, 66)
|
||||
|
||||
[node name="World" type="Node2D"]
|
||||
position = Vector2(272, 240)
|
||||
script = ExtResource("1_m1n7w")
|
||||
next_stage = "res://levels/level1/stage2.tscn"
|
||||
|
||||
[node name="Player" parent="." instance=ExtResource("2_sxo5w")]
|
||||
position = Vector2(-192, 0)
|
||||
|
||||
[node name="Borders" parent="." instance=ExtResource("3_04xvl")]
|
||||
position = Vector2(-272, -240)
|
||||
|
||||
[node name="Floor" type="StaticBody2D" parent="."]
|
||||
|
||||
[node name="MeshInstance2D" type="MeshInstance2D" parent="Floor"]
|
||||
position = Vector2(-32, 88)
|
||||
mesh = SubResource("QuadMesh_seics")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Floor"]
|
||||
position = Vector2(-32, 89)
|
||||
shape = SubResource("RectangleShape2D_h5wua")
|
32
levels/level1/stage1.tscn
Normal file
32
levels/level1/stage1.tscn
Normal file
|
@ -0,0 +1,32 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://cei5gjgfoginb"]
|
||||
|
||||
[ext_resource type="Script" path="res://stageController.gd" id="1_m1n7w"]
|
||||
[ext_resource type="PackedScene" uid="uid://cjiuycwqqxaxn" path="res://Player.tscn" id="2_sxo5w"]
|
||||
[ext_resource type="PackedScene" uid="uid://bab4ac3s2n0o1" path="res://Borders.tscn" id="3_04xvl"]
|
||||
|
||||
[sub_resource type="QuadMesh" id="QuadMesh_seics"]
|
||||
size = Vector2(480, 64)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_h5wua"]
|
||||
size = Vector2(480, 66)
|
||||
|
||||
[node name="World" type="Node2D"]
|
||||
position = Vector2(272, 240)
|
||||
script = ExtResource("1_m1n7w")
|
||||
next_stage = "res://levels/level1/stage2.tscn"
|
||||
|
||||
[node name="Player" parent="." instance=ExtResource("2_sxo5w")]
|
||||
position = Vector2(-192, 0)
|
||||
|
||||
[node name="Borders" parent="." instance=ExtResource("3_04xvl")]
|
||||
position = Vector2(-272, -240)
|
||||
|
||||
[node name="Floor" type="StaticBody2D" parent="."]
|
||||
|
||||
[node name="MeshInstance2D" type="MeshInstance2D" parent="Floor"]
|
||||
position = Vector2(-32, 88)
|
||||
mesh = SubResource("QuadMesh_seics")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Floor"]
|
||||
position = Vector2(-32, 89)
|
||||
shape = SubResource("RectangleShape2D_h5wua")
|
6
levels/level1/stage2.tscn
Normal file
6
levels/level1/stage2.tscn
Normal file
|
@ -0,0 +1,6 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://cnpspjqlc7b52"]
|
||||
|
||||
[ext_resource type="Script" path="res://stageController.gd" id="1_0rodf"]
|
||||
|
||||
[node name="World" type="Node2D"]
|
||||
script = ExtResource("1_0rodf")
|
23
player.gd
23
player.gd
|
@ -4,16 +4,35 @@ extends CharacterBody2D
|
|||
@export var GRAVITY = 30
|
||||
@export var JUMP_FORCE = 500
|
||||
|
||||
@onready var animated_sprite = $AnimatedSprite2D;
|
||||
|
||||
var jumping = false;
|
||||
|
||||
func _ready():
|
||||
animated_sprite.play("idle")
|
||||
|
||||
func _physics_process(delta):
|
||||
if !is_on_floor():
|
||||
velocity.y += GRAVITY
|
||||
if velocity.y > 1000:
|
||||
velocity.y = 1000
|
||||
|
||||
if jumping && is_on_floor():
|
||||
jumping = false
|
||||
|
||||
if Input.is_action_just_pressed("jump") && is_on_floor():
|
||||
velocity.y = -JUMP_FORCE
|
||||
|
||||
jumping = true
|
||||
animated_sprite.play("jump")
|
||||
|
||||
var horizontal_direction = Input.get_axis("move_left", "move_right")
|
||||
velocity.x = SPEED * horizontal_direction
|
||||
|
||||
move_and_slide()
|
||||
|
||||
animated_sprite.flip_h = horizontal_direction < 0
|
||||
|
||||
if !jumping:
|
||||
if is_on_floor() && horizontal_direction != 0:
|
||||
animated_sprite.play("walk")
|
||||
else:
|
||||
animated_sprite.play("idle")
|
||||
|
|
|
@ -11,7 +11,8 @@ config_version=5
|
|||
[application]
|
||||
|
||||
config/name="claustrophemia"
|
||||
run/main_scene="res://World.tscn"
|
||||
config/version="0.0.1"
|
||||
run/main_scene="res://levels/level1/stage1.tscn"
|
||||
config/features=PackedStringArray("4.3", "Forward Plus")
|
||||
config/icon="res://icon.svg"
|
||||
|
||||
|
@ -20,6 +21,12 @@ config/icon="res://icon.svg"
|
|||
animation/layers/only_include_visible_layers_by_default=true
|
||||
import/import_plugin/default_automatic_importer="SpriteFrames"
|
||||
|
||||
[display]
|
||||
|
||||
window/size/viewport_width=480
|
||||
window/size/viewport_height=360
|
||||
window/stretch/mode="canvas_items"
|
||||
|
||||
[editor]
|
||||
|
||||
version_control/plugin_name="GitPlugin"
|
||||
|
@ -50,3 +57,8 @@ jump={
|
|||
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":32,"key_label":0,"unicode":32,"location":0,"echo":false,"script":null)
|
||||
]
|
||||
}
|
||||
trigger_completed={
|
||||
"deadzone": 0.5,
|
||||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194323,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
|
||||
]
|
||||
}
|
||||
|
|
18
stageController.gd
Normal file
18
stageController.gd
Normal file
|
@ -0,0 +1,18 @@
|
|||
extends Node
|
||||
|
||||
@export var next_stage : String;
|
||||
var completed = false;
|
||||
|
||||
@onready var right_border = $Borders/Right/CollisionShape2D;
|
||||
@onready var right_trigger = $Borders/Right/Trigger;
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
if Input.is_action_just_pressed("trigger_completed"):
|
||||
completed = true
|
||||
|
||||
if completed:
|
||||
right_border.shape = null
|
||||
right_trigger.body_entered.connect(_on_trigger)
|
||||
|
||||
func _on_trigger(body: Node) -> void:
|
||||
get_tree().change_scene_to_file(next_stage)
|
Loading…
Reference in a new issue