Compare commits

..

No commits in common. "7c090d600b4a3804fb16f06ef8cf0b18cda4d653" and "c4c796f32335200fcb8ca98427ffcee2bfb796be" have entirely different histories.

33 changed files with 355 additions and 1790 deletions

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=3 format=3 uid="uid://bab4ac3s2n0o1"]
[gd_scene load_steps=4 format=3 uid="uid://bab4ac3s2n0o1"]
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_j1bt6"]
normal = Vector2(1, 0)
@ -8,6 +8,10 @@ distance = -184.0
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="."]
@ -29,3 +33,10 @@ 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")

289
Player.tscn Normal file
View file

@ -0,0 +1,289 @@
[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"
frame_progress = 0.0204075
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)

BIN
PlayerCharacter.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View file

@ -2,16 +2,16 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://c5h2tl1fqgje5"
path="res://.godot/imported/stage1.png-67df7ec0db7c207f872533da29fcbf5c.ctex"
uid="uid://dvnohr8gjh56t"
path="res://.godot/imported/PlayerCharacter.png-ab2ae3be5ec39b25693dfd99826d05ab.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/stage1.png"
dest_files=["res://.godot/imported/stage1.png-67df7ec0db7c207f872533da29fcbf5c.ctex"]
source_file="res://PlayerCharacter.png"
dest_files=["res://.godot/imported/PlayerCharacter.png-ab2ae3be5ec39b25693dfd99826d05ab.ctex"]
[params]

Binary file not shown.

View file

@ -2,7 +2,7 @@
importer="aseprite_wizard.plugin.noop"
type="PackedDataContainer"
uid="uid://bvqvl7ho7segv"
uid="uid://bye3fycptipre"
path="res://.godot/imported/PlayerCharacter.aseprite-1bf420fc00cecceb6a9caea06a8e4ec7.res"
[deps]

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 254 KiB

View file

@ -1,34 +0,0 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bynsxkfd4t4cn"
path="res://.godot/imported/stage1.png-c3fb8862b9a844ae4f643a865fe729ba.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/export/stage1.png"
dest_files=["res://.godot/imported/stage1.png-c3fb8862b9a844ae4f643a865fe729ba.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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.6 KiB

View file

@ -1,34 +0,0 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://djjun1p0rx1ap"
path="res://.godot/imported/viruling-.png-8fb78d1c45ba4ef1a534dca658b128b9.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/export/viruling-.png"
dest_files=["res://.godot/imported/viruling-.png-8fb78d1c45ba4ef1a534dca658b128b9.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

Binary file not shown.

View file

@ -1,16 +0,0 @@
[remap]
importer="aseprite_wizard.plugin.static-texture"
type="AtlasTexture"
uid="uid://fju2p8ssaled"
path="res://.godot/imported/stage1.aseprite-4be92de9d6e8d30b990f34fbdce9c3c1.res"
[deps]
source_file="res://assets/stage1.aseprite"
dest_files=["res://.godot/imported/stage1.aseprite-4be92de9d6e8d30b990f34fbdce9c3c1.res"]
[params]
exclude_layers_pattern=""
only_visible_layers=true

Binary file not shown.

Before

Width:  |  Height:  |  Size: 254 KiB

Binary file not shown.

View file

@ -1,14 +0,0 @@
[remap]
importer="aseprite_wizard.plugin.noop"
type="PackedDataContainer"
uid="uid://2g8hbnap6s5a"
path="res://.godot/imported/viruling_spin.aseprite-2addb3a6357cbfdfd34eecd5833985aa.res"
[deps]
source_file="res://assets/viruling_spin.aseprite"
dest_files=["res://.godot/imported/viruling_spin.aseprite-2addb3a6357cbfdfd34eecd5833985aa.res"]
[params]

View file

@ -1,364 +0,0 @@
[gd_scene load_steps=45 format=3 uid="uid://cjiuycwqqxaxn"]
[ext_resource type="Script" path="res://scripts/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_6hs0l"]
atlas = ExtResource("2_5c6qp")
region = Rect2(128, 256, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_7slh2"]
atlas = ExtResource("2_5c6qp")
region = Rect2(160, 256, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_io1xr"]
atlas = ExtResource("2_5c6qp")
region = Rect2(192, 256, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_vh4hn"]
atlas = ExtResource("2_5c6qp")
region = Rect2(0, 320, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_wwamw"]
atlas = ExtResource("2_5c6qp")
region = Rect2(32, 320, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_nens7"]
atlas = ExtResource("2_5c6qp")
region = Rect2(64, 320, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_xnw82"]
atlas = ExtResource("2_5c6qp")
region = Rect2(96, 320, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_sv3rw"]
atlas = ExtResource("2_5c6qp")
region = Rect2(0, 0, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_kldb3"]
atlas = ExtResource("2_5c6qp")
region = Rect2(128, 192, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_daegq"]
atlas = ExtResource("2_5c6qp")
region = Rect2(160, 192, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_c3qy7"]
atlas = ExtResource("2_5c6qp")
region = Rect2(192, 192, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_5iowx"]
atlas = ExtResource("2_5c6qp")
region = Rect2(0, 256, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_2f5nd"]
atlas = ExtResource("2_5c6qp")
region = Rect2(32, 256, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_xuig4"]
atlas = ExtResource("2_5c6qp")
region = Rect2(64, 256, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_uk8ao"]
atlas = ExtResource("2_5c6qp")
region = Rect2(96, 256, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_6wkkf"]
atlas = ExtResource("2_5c6qp")
region = Rect2(32, 0, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_mecdt"]
atlas = ExtResource("2_5c6qp")
region = Rect2(64, 0, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_pvo15"]
atlas = ExtResource("2_5c6qp")
region = Rect2(96, 0, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_fcvkv"]
atlas = ExtResource("2_5c6qp")
region = Rect2(128, 0, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_ejt0g"]
atlas = ExtResource("2_5c6qp")
region = Rect2(160, 0, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_l4s6u"]
atlas = ExtResource("2_5c6qp")
region = Rect2(192, 0, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_qw5vg"]
atlas = ExtResource("2_5c6qp")
region = Rect2(0, 64, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_agdq2"]
atlas = ExtResource("2_5c6qp")
region = Rect2(32, 64, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_1qa8b"]
atlas = ExtResource("2_5c6qp")
region = Rect2(64, 64, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_a5wcc"]
atlas = ExtResource("2_5c6qp")
region = Rect2(96, 64, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_5ra6k"]
atlas = ExtResource("2_5c6qp")
region = Rect2(128, 64, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_l1grw"]
atlas = ExtResource("2_5c6qp")
region = Rect2(160, 64, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_gae7w"]
atlas = ExtResource("2_5c6qp")
region = Rect2(192, 64, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_p0xeb"]
atlas = ExtResource("2_5c6qp")
region = Rect2(0, 128, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_tuo0l"]
atlas = ExtResource("2_5c6qp")
region = Rect2(32, 128, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_iygu1"]
atlas = ExtResource("2_5c6qp")
region = Rect2(64, 128, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_nlq48"]
atlas = ExtResource("2_5c6qp")
region = Rect2(96, 128, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_581d4"]
atlas = ExtResource("2_5c6qp")
region = Rect2(128, 128, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_depii"]
atlas = ExtResource("2_5c6qp")
region = Rect2(160, 128, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_nsu0f"]
atlas = ExtResource("2_5c6qp")
region = Rect2(192, 128, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_kdf7b"]
atlas = ExtResource("2_5c6qp")
region = Rect2(0, 192, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_dvo1k"]
atlas = ExtResource("2_5c6qp")
region = Rect2(32, 192, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_nuos6"]
atlas = ExtResource("2_5c6qp")
region = Rect2(64, 192, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_fgj7i"]
atlas = ExtResource("2_5c6qp")
region = Rect2(96, 192, 32, 64)
[sub_resource type="SpriteFrames" id="SpriteFrames_o2lgd"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_6hs0l")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_7slh2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_io1xr")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vh4hn")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wwamw")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_nens7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_xnw82")
}],
"loop": true,
"name": &" punch",
"speed": 10.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_sv3rw")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_kldb3")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_daegq")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_c3qy7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_5iowx")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_2f5nd")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_xuig4")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_uk8ao")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_daegq")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_kldb3")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_sv3rw")
}],
"loop": true,
"name": &"Jump",
"speed": 10.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_sv3rw")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_6wkkf")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_mecdt")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_pvo15")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_fcvkv")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ejt0g")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_l4s6u")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_qw5vg")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_agdq2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_1qa8b")
}],
"loop": true,
"name": &"idle",
"speed": 10.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_a5wcc")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_5ra6k")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_l1grw")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_gae7w")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_p0xeb")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_tuo0l")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_iygu1")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_nlq48")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_581d4")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_depii")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_nsu0f")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_kdf7b")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_dvo1k")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_nuos6")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_fgj7i")
}],
"loop": true,
"name": &"walk",
"speed": 10.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_0on8q"]
size = Vector2(28, 64)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_mst3b"]
size = Vector2(22, 41)
[node name="Player" type="CharacterBody2D"]
collision_mask = 3
script = ExtResource("1_oy25y")
SPEED = null
GRAVITY = null
JUMP_FORCE = null
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
texture_filter = 1
sprite_frames = SubResource("SpriteFrames_o2lgd")
animation = &" punch"
frame_progress = 0.777568
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_ = "dd5426320f333c1fca2ec67ca43f9db7"
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)
[node name="AttackTimer" type="Timer" parent="."]
editor_description = "
"
wait_time = 0.2
one_shot = true
[node name="PunchHitbox" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="PunchHitbox"]
position = Vector2(15, -4.5)
shape = SubResource("RectangleShape2D_mst3b")
debug_color = Color(2.11775e-06, 0.631094, 0.465774, 0.42)

View file

@ -1,364 +0,0 @@
[gd_scene load_steps=45 format=3 uid="uid://cjiuycwqqxaxn"]
[ext_resource type="Script" path="res://scripts/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_6hs0l"]
atlas = ExtResource("2_5c6qp")
region = Rect2(128, 256, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_7slh2"]
atlas = ExtResource("2_5c6qp")
region = Rect2(160, 256, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_io1xr"]
atlas = ExtResource("2_5c6qp")
region = Rect2(192, 256, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_vh4hn"]
atlas = ExtResource("2_5c6qp")
region = Rect2(0, 320, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_wwamw"]
atlas = ExtResource("2_5c6qp")
region = Rect2(32, 320, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_nens7"]
atlas = ExtResource("2_5c6qp")
region = Rect2(64, 320, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_xnw82"]
atlas = ExtResource("2_5c6qp")
region = Rect2(96, 320, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_sv3rw"]
atlas = ExtResource("2_5c6qp")
region = Rect2(0, 0, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_kldb3"]
atlas = ExtResource("2_5c6qp")
region = Rect2(128, 192, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_daegq"]
atlas = ExtResource("2_5c6qp")
region = Rect2(160, 192, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_c3qy7"]
atlas = ExtResource("2_5c6qp")
region = Rect2(192, 192, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_5iowx"]
atlas = ExtResource("2_5c6qp")
region = Rect2(0, 256, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_2f5nd"]
atlas = ExtResource("2_5c6qp")
region = Rect2(32, 256, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_xuig4"]
atlas = ExtResource("2_5c6qp")
region = Rect2(64, 256, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_uk8ao"]
atlas = ExtResource("2_5c6qp")
region = Rect2(96, 256, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_6wkkf"]
atlas = ExtResource("2_5c6qp")
region = Rect2(32, 0, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_mecdt"]
atlas = ExtResource("2_5c6qp")
region = Rect2(64, 0, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_pvo15"]
atlas = ExtResource("2_5c6qp")
region = Rect2(96, 0, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_fcvkv"]
atlas = ExtResource("2_5c6qp")
region = Rect2(128, 0, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_ejt0g"]
atlas = ExtResource("2_5c6qp")
region = Rect2(160, 0, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_l4s6u"]
atlas = ExtResource("2_5c6qp")
region = Rect2(192, 0, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_qw5vg"]
atlas = ExtResource("2_5c6qp")
region = Rect2(0, 64, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_agdq2"]
atlas = ExtResource("2_5c6qp")
region = Rect2(32, 64, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_1qa8b"]
atlas = ExtResource("2_5c6qp")
region = Rect2(64, 64, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_a5wcc"]
atlas = ExtResource("2_5c6qp")
region = Rect2(96, 64, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_5ra6k"]
atlas = ExtResource("2_5c6qp")
region = Rect2(128, 64, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_l1grw"]
atlas = ExtResource("2_5c6qp")
region = Rect2(160, 64, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_gae7w"]
atlas = ExtResource("2_5c6qp")
region = Rect2(192, 64, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_p0xeb"]
atlas = ExtResource("2_5c6qp")
region = Rect2(0, 128, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_tuo0l"]
atlas = ExtResource("2_5c6qp")
region = Rect2(32, 128, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_iygu1"]
atlas = ExtResource("2_5c6qp")
region = Rect2(64, 128, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_nlq48"]
atlas = ExtResource("2_5c6qp")
region = Rect2(96, 128, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_581d4"]
atlas = ExtResource("2_5c6qp")
region = Rect2(128, 128, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_depii"]
atlas = ExtResource("2_5c6qp")
region = Rect2(160, 128, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_nsu0f"]
atlas = ExtResource("2_5c6qp")
region = Rect2(192, 128, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_kdf7b"]
atlas = ExtResource("2_5c6qp")
region = Rect2(0, 192, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_dvo1k"]
atlas = ExtResource("2_5c6qp")
region = Rect2(32, 192, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_nuos6"]
atlas = ExtResource("2_5c6qp")
region = Rect2(64, 192, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_fgj7i"]
atlas = ExtResource("2_5c6qp")
region = Rect2(96, 192, 32, 64)
[sub_resource type="SpriteFrames" id="SpriteFrames_o2lgd"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_6hs0l")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_7slh2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_io1xr")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vh4hn")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wwamw")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_nens7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_xnw82")
}],
"loop": true,
"name": &" punch",
"speed": 10.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_sv3rw")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_kldb3")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_daegq")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_c3qy7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_5iowx")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_2f5nd")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_xuig4")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_uk8ao")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_daegq")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_kldb3")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_sv3rw")
}],
"loop": true,
"name": &"Jump",
"speed": 10.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_sv3rw")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_6wkkf")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_mecdt")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_pvo15")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_fcvkv")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ejt0g")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_l4s6u")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_qw5vg")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_agdq2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_1qa8b")
}],
"loop": true,
"name": &"idle",
"speed": 10.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_a5wcc")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_5ra6k")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_l1grw")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_gae7w")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_p0xeb")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_tuo0l")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_iygu1")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_nlq48")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_581d4")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_depii")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_nsu0f")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_kdf7b")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_dvo1k")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_nuos6")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_fgj7i")
}],
"loop": true,
"name": &"walk",
"speed": 10.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_0on8q"]
size = Vector2(28, 64)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_mst3b"]
size = Vector2(22, 41)
[node name="Player" type="CharacterBody2D"]
collision_mask = 3
script = ExtResource("1_oy25y")
SPEED = null
GRAVITY = null
JUMP_FORCE = null
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
texture_filter = 1
sprite_frames = SubResource("SpriteFrames_o2lgd")
animation = &" punch"
frame_progress = 0.573795
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_ = "dd5426320f333c1fca2ec67ca43f9db7"
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)
[node name="AttackTimer" type="Timer" parent="."]
editor_description = "
"
wait_time = 0.2
one_shot = true
[node name="PunchHitbox" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="PunchHitbox"]
position = Vector2(15, -4.5)
shape = SubResource("RectangleShape2D_mst3b")
debug_color = Color(2.11775e-06, 0.631094, 0.465774, 0.42)

View file

@ -1,361 +0,0 @@
[gd_scene load_steps=45 format=3 uid="uid://cjiuycwqqxaxn"]
[ext_resource type="Script" path="res://scripts/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_6hs0l"]
atlas = ExtResource("2_5c6qp")
region = Rect2(128, 256, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_7slh2"]
atlas = ExtResource("2_5c6qp")
region = Rect2(160, 256, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_io1xr"]
atlas = ExtResource("2_5c6qp")
region = Rect2(192, 256, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_vh4hn"]
atlas = ExtResource("2_5c6qp")
region = Rect2(0, 320, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_wwamw"]
atlas = ExtResource("2_5c6qp")
region = Rect2(32, 320, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_nens7"]
atlas = ExtResource("2_5c6qp")
region = Rect2(64, 320, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_xnw82"]
atlas = ExtResource("2_5c6qp")
region = Rect2(96, 320, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_sv3rw"]
atlas = ExtResource("2_5c6qp")
region = Rect2(0, 0, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_kldb3"]
atlas = ExtResource("2_5c6qp")
region = Rect2(128, 192, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_daegq"]
atlas = ExtResource("2_5c6qp")
region = Rect2(160, 192, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_c3qy7"]
atlas = ExtResource("2_5c6qp")
region = Rect2(192, 192, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_5iowx"]
atlas = ExtResource("2_5c6qp")
region = Rect2(0, 256, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_2f5nd"]
atlas = ExtResource("2_5c6qp")
region = Rect2(32, 256, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_xuig4"]
atlas = ExtResource("2_5c6qp")
region = Rect2(64, 256, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_uk8ao"]
atlas = ExtResource("2_5c6qp")
region = Rect2(96, 256, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_6wkkf"]
atlas = ExtResource("2_5c6qp")
region = Rect2(32, 0, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_mecdt"]
atlas = ExtResource("2_5c6qp")
region = Rect2(64, 0, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_pvo15"]
atlas = ExtResource("2_5c6qp")
region = Rect2(96, 0, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_fcvkv"]
atlas = ExtResource("2_5c6qp")
region = Rect2(128, 0, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_ejt0g"]
atlas = ExtResource("2_5c6qp")
region = Rect2(160, 0, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_l4s6u"]
atlas = ExtResource("2_5c6qp")
region = Rect2(192, 0, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_qw5vg"]
atlas = ExtResource("2_5c6qp")
region = Rect2(0, 64, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_agdq2"]
atlas = ExtResource("2_5c6qp")
region = Rect2(32, 64, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_1qa8b"]
atlas = ExtResource("2_5c6qp")
region = Rect2(64, 64, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_a5wcc"]
atlas = ExtResource("2_5c6qp")
region = Rect2(96, 64, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_5ra6k"]
atlas = ExtResource("2_5c6qp")
region = Rect2(128, 64, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_l1grw"]
atlas = ExtResource("2_5c6qp")
region = Rect2(160, 64, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_gae7w"]
atlas = ExtResource("2_5c6qp")
region = Rect2(192, 64, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_p0xeb"]
atlas = ExtResource("2_5c6qp")
region = Rect2(0, 128, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_tuo0l"]
atlas = ExtResource("2_5c6qp")
region = Rect2(32, 128, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_iygu1"]
atlas = ExtResource("2_5c6qp")
region = Rect2(64, 128, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_nlq48"]
atlas = ExtResource("2_5c6qp")
region = Rect2(96, 128, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_581d4"]
atlas = ExtResource("2_5c6qp")
region = Rect2(128, 128, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_depii"]
atlas = ExtResource("2_5c6qp")
region = Rect2(160, 128, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_nsu0f"]
atlas = ExtResource("2_5c6qp")
region = Rect2(192, 128, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_kdf7b"]
atlas = ExtResource("2_5c6qp")
region = Rect2(0, 192, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_dvo1k"]
atlas = ExtResource("2_5c6qp")
region = Rect2(32, 192, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_nuos6"]
atlas = ExtResource("2_5c6qp")
region = Rect2(64, 192, 32, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_fgj7i"]
atlas = ExtResource("2_5c6qp")
region = Rect2(96, 192, 32, 64)
[sub_resource type="SpriteFrames" id="SpriteFrames_o2lgd"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_6hs0l")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_7slh2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_io1xr")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vh4hn")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wwamw")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_nens7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_xnw82")
}],
"loop": true,
"name": &" punch",
"speed": 10.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_sv3rw")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_kldb3")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_daegq")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_c3qy7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_5iowx")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_2f5nd")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_xuig4")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_uk8ao")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_daegq")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_kldb3")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_sv3rw")
}],
"loop": true,
"name": &"Jump",
"speed": 10.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_sv3rw")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_6wkkf")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_mecdt")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_pvo15")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_fcvkv")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ejt0g")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_l4s6u")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_qw5vg")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_agdq2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_1qa8b")
}],
"loop": true,
"name": &"idle",
"speed": 10.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_a5wcc")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_5ra6k")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_l1grw")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_gae7w")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_p0xeb")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_tuo0l")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_iygu1")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_nlq48")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_581d4")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_depii")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_nsu0f")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_kdf7b")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_dvo1k")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_nuos6")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_fgj7i")
}],
"loop": true,
"name": &"walk",
"speed": 10.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_0on8q"]
size = Vector2(28, 64)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_mst3b"]
size = Vector2(27, 41)
[node name="Player" type="CharacterBody2D"]
collision_mask = 3
script = ExtResource("1_oy25y")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
texture_filter = 1
sprite_frames = SubResource("SpriteFrames_o2lgd")
animation = &" punch"
frame_progress = 0.126525
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_ = "dd5426320f333c1fca2ec67ca43f9db7"
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)
[node name="AttackTimer" type="Timer" parent="."]
editor_description = "
"
wait_time = 0.5
one_shot = true
[node name="PunchHitbox" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="PunchHitbox"]
position = Vector2(29, -3)
shape = SubResource("RectangleShape2D_mst3b")
debug_color = Color(2.11775e-06, 0.631094, 0.465774, 0.42)

View file

@ -1,215 +0,0 @@
[gd_scene load_steps=27 format=3 uid="uid://bxbpvgteyfh02"]
[ext_resource type="Script" path="res://scripts/viruling.gd" id="1_eevnl"]
[ext_resource type="Texture2D" uid="uid://djjun1p0rx1ap" path="res://assets/export/viruling-.png" id="1_i45rj"]
[sub_resource type="CircleShape2D" id="CircleShape2D_gi7h4"]
radius = 17.0294
[sub_resource type="AtlasTexture" id="AtlasTexture_kidce"]
atlas = ExtResource("1_i45rj")
region = Rect2(0, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_qe36s"]
atlas = ExtResource("1_i45rj")
region = Rect2(32, 96, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_ngfqf"]
atlas = ExtResource("1_i45rj")
region = Rect2(64, 96, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_nii03"]
atlas = ExtResource("1_i45rj")
region = Rect2(96, 96, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_tkn6b"]
atlas = ExtResource("1_i45rj")
region = Rect2(128, 96, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_2r8jg"]
atlas = ExtResource("1_i45rj")
region = Rect2(0, 128, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_0s3k4"]
atlas = ExtResource("1_i45rj")
region = Rect2(32, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_2h71d"]
atlas = ExtResource("1_i45rj")
region = Rect2(64, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_45yd5"]
atlas = ExtResource("1_i45rj")
region = Rect2(96, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_6isb8"]
atlas = ExtResource("1_i45rj")
region = Rect2(128, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_m6d0y"]
atlas = ExtResource("1_i45rj")
region = Rect2(0, 32, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_kp48x"]
atlas = ExtResource("1_i45rj")
region = Rect2(32, 32, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_rhh7o"]
atlas = ExtResource("1_i45rj")
region = Rect2(64, 32, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_0l2ip"]
atlas = ExtResource("1_i45rj")
region = Rect2(96, 32, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_u0o6v"]
atlas = ExtResource("1_i45rj")
region = Rect2(128, 32, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_hh53s"]
atlas = ExtResource("1_i45rj")
region = Rect2(0, 64, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_g0xj4"]
atlas = ExtResource("1_i45rj")
region = Rect2(32, 64, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_smgex"]
atlas = ExtResource("1_i45rj")
region = Rect2(64, 64, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_efhl8"]
atlas = ExtResource("1_i45rj")
region = Rect2(96, 64, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_smw3b"]
atlas = ExtResource("1_i45rj")
region = Rect2(128, 64, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_hc7x2"]
atlas = ExtResource("1_i45rj")
region = Rect2(0, 96, 32, 32)
[sub_resource type="SpriteFrames" id="SpriteFrames_01e4m"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_kidce")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_qe36s")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ngfqf")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_nii03")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_tkn6b")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_2r8jg")
}],
"loop": true,
"name": &"death",
"speed": 10.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_kidce")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_0s3k4")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_2h71d")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_45yd5")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_6isb8")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_m6d0y")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_kp48x")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_rhh7o")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_kidce")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_0l2ip")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_u0o6v")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_hh53s")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_g0xj4")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_smgex")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_efhl8")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_smw3b")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_hc7x2")
}],
"loop": true,
"name": &"spin",
"speed": 10.0
}]
[sub_resource type="CircleShape2D" id="CircleShape2D_kpyhc"]
radius = 16.0
[node name="Viruling" type="CharacterBody2D"]
collision_layer = 3
collision_mask = 2
script = ExtResource("1_eevnl")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_gi7h4")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
texture_filter = 1
sprite_frames = SubResource("SpriteFrames_01e4m")
animation = &"spin"
metadata/_aseprite_wizard_config_ = {
"layer": "",
"o_ex_p": "",
"o_folder": "res://assets/export",
"o_name": "viruling-",
"only_visible": true,
"slice": "",
"source": "res://assets/viruling_spin.aseprite"
}
metadata/_aseprite_wizard_source_file_hash_ = "e9452ba317bc3563d2373e8b9d673cef"
metadata/_aseprite_wizard_interface_config_ = {
"output_section": true
}
[node name="ContactHitbox" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="ContactHitbox"]
shape = SubResource("CircleShape2D_kpyhc")
debug_color = Color(0.972226, 0, 0.442516, 0.42)
[node name="Timer" type="Timer" parent="."]
one_shot = true
[node name="DeathTimer" type="Timer" parent="."]
wait_time = 0.55
one_shot = true

View file

@ -1,64 +0,0 @@
[preset.0]
name="Windows Desktop"
platform="Windows Desktop"
runnable=true
advanced_options=false
dedicated_server=false
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path="./claustrophemia.exe"
encryption_include_filters=""
encryption_exclude_filters=""
encrypt_pck=false
encrypt_directory=false
script_export_mode=2
[preset.0.options]
custom_template/debug=""
custom_template/release=""
debug/export_console_wrapper=0
binary_format/embed_pck=false
texture_format/s3tc_bptc=true
texture_format/etc2_astc=false
binary_format/architecture="x86_64"
codesign/enable=false
codesign/timestamp=true
codesign/timestamp_server_url=""
codesign/digest_algorithm=1
codesign/description=""
codesign/custom_options=PackedStringArray()
application/modify_resources=true
application/icon=""
application/console_wrapper_icon=""
application/icon_interpolation=4
application/file_version=""
application/product_version=""
application/company_name=""
application/product_name=""
application/file_description=""
application/copyright=""
application/trademarks=""
application/export_angle=0
application/export_d3d12=0
application/d3d12_agility_sdk_multiarch=true
ssh_remote_deploy/enabled=false
ssh_remote_deploy/host="user@host_ip"
ssh_remote_deploy/port="22"
ssh_remote_deploy/extra_args_ssh=""
ssh_remote_deploy/extra_args_scp=""
ssh_remote_deploy/run_script="Expand-Archive -LiteralPath '{temp_dir}\\{archive_name}' -DestinationPath '{temp_dir}'
$action = New-ScheduledTaskAction -Execute '{temp_dir}\\{exe_name}' -Argument '{cmd_args}'
$trigger = New-ScheduledTaskTrigger -Once -At 00:00
$settings = New-ScheduledTaskSettingsSet
$task = New-ScheduledTask -Action $action -Trigger $trigger -Settings $settings
Register-ScheduledTask godot_remote_debug -InputObject $task -Force:$true
Start-ScheduledTask -TaskName godot_remote_debug
while (Get-ScheduledTask -TaskName godot_remote_debug | ? State -eq running) { Start-Sleep -Milliseconds 100 }
Unregister-ScheduledTask -TaskName godot_remote_debug -Confirm:$false -ErrorAction:SilentlyContinue"
ssh_remote_deploy/cleanup_script="Stop-ScheduledTask -TaskName godot_remote_debug -ErrorAction:SilentlyContinue
Unregister-ScheduledTask -TaskName godot_remote_debug -Confirm:$false -ErrorAction:SilentlyContinue
Remove-Item -Recurse -Force '{temp_dir}'"

View file

@ -1,53 +0,0 @@
[gd_scene load_steps=8 format=3 uid="uid://cei5gjgfoginb"]
[ext_resource type="Script" path="res://scripts/stageController.gd" id="1_m1n7w"]
[ext_resource type="Texture2D" uid="uid://bynsxkfd4t4cn" path="res://assets/export/stage1.png" id="2_48003"]
[ext_resource type="PackedScene" uid="uid://cjiuycwqqxaxn" path="res://components/Player.tscn" id="2_sxo5w"]
[ext_resource type="PackedScene" uid="uid://bab4ac3s2n0o1" path="res://components/Borders.tscn" id="3_04xvl"]
[ext_resource type="PackedScene" uid="uid://bxbpvgteyfh02" path="res://components/Viruling.tscn" id="5_w7lww"]
[sub_resource type="QuadMesh" id="QuadMesh_seics"]
size = Vector2(480, 64)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_h5wua"]
size = Vector2(480, 106)
[node name="World" type="Node2D"]
position = Vector2(272, 240)
script = ExtResource("1_m1n7w")
next_stage = "res://levels/level1/stage2.tscn"
[node name="Background" type="Sprite2D" parent="."]
position = Vector2(-32, -64)
texture = ExtResource("2_48003")
[node name="Borders" parent="." instance=ExtResource("3_04xvl")]
position = Vector2(-272, -240)
[node name="Player" parent="." instance=ExtResource("2_sxo5w")]
position = Vector2(-240, -16)
[node name="Viruling" parent="." instance=ExtResource("5_w7lww")]
position = Vector2(179, -13)
[node name="Floor" type="StaticBody2D" parent="."]
[node name="MeshInstance2D" type="MeshInstance2D" parent="Floor"]
position = Vector2(-32, 68)
scale = Vector2(1, 1.625)
mesh = SubResource("QuadMesh_seics")
[node name="CollisionShape2D" type="CollisionShape2D" parent="Floor"]
position = Vector2(-32, 69)
shape = SubResource("RectangleShape2D_h5wua")
[node name="Ceiling" type="StaticBody2D" parent="."]
[node name="MeshInstance2D" type="MeshInstance2D" parent="Ceiling"]
position = Vector2(-32, -192)
scale = Vector2(1, 1.625)
mesh = SubResource("QuadMesh_seics")
[node name="CollisionShape2D" type="CollisionShape2D" parent="Ceiling"]
position = Vector2(-32, -192)
shape = SubResource("RectangleShape2D_h5wua")

View file

@ -1,53 +1,32 @@
[gd_scene load_steps=8 format=3 uid="uid://cei5gjgfoginb"]
[gd_scene load_steps=6 format=3 uid="uid://cei5gjgfoginb"]
[ext_resource type="Script" path="res://scripts/stageController.gd" id="1_m1n7w"]
[ext_resource type="Texture2D" uid="uid://bynsxkfd4t4cn" path="res://assets/export/stage1.png" id="2_48003"]
[ext_resource type="PackedScene" uid="uid://cjiuycwqqxaxn" path="res://components/Player.tscn" id="2_sxo5w"]
[ext_resource type="PackedScene" uid="uid://bab4ac3s2n0o1" path="res://components/Borders.tscn" id="3_04xvl"]
[ext_resource type="PackedScene" uid="uid://bxbpvgteyfh02" path="res://components/Viruling.tscn" id="5_w7lww"]
[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, 106)
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="Background" type="Sprite2D" parent="."]
position = Vector2(-32, -64)
texture = ExtResource("2_48003")
[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="Player" parent="." instance=ExtResource("2_sxo5w")]
position = Vector2(-240, -16)
[node name="Viruling" parent="." instance=ExtResource("5_w7lww")]
position = Vector2(179, -13)
[node name="Floor" type="StaticBody2D" parent="."]
[node name="MeshInstance2D" type="MeshInstance2D" parent="Floor"]
position = Vector2(-32, 68)
scale = Vector2(1, 1.625)
position = Vector2(-32, 88)
mesh = SubResource("QuadMesh_seics")
[node name="CollisionShape2D" type="CollisionShape2D" parent="Floor"]
position = Vector2(-32, 69)
shape = SubResource("RectangleShape2D_h5wua")
[node name="Ceiling" type="StaticBody2D" parent="."]
[node name="MeshInstance2D" type="MeshInstance2D" parent="Ceiling"]
position = Vector2(-32, -192)
scale = Vector2(1, 1.625)
mesh = SubResource("QuadMesh_seics")
[node name="CollisionShape2D" type="CollisionShape2D" parent="Ceiling"]
position = Vector2(-32, -192)
position = Vector2(-32, 89)
shape = SubResource("RectangleShape2D_h5wua")

View file

@ -1,6 +1,6 @@
[gd_scene load_steps=2 format=3 uid="uid://cnpspjqlc7b52"]
[ext_resource type="Script" path="res://scripts/stageController.gd" id="1_0rodf"]
[ext_resource type="Script" path="res://stageController.gd" id="1_0rodf"]
[node name="World" type="Node2D"]
script = ExtResource("1_0rodf")

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

View file

@ -1,34 +0,0 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dvbxf3x6puy5g"
path="res://.godot/imported/viruling_spin.png-26548e6c2f4f147be3bf58cb66e1ebef.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://levels/level1/viruling_spin.png"
dest_files=["res://.godot/imported/viruling_spin.png-26548e6c2f4f147be3bf58cb66e1ebef.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

38
player.gd Normal file
View file

@ -0,0 +1,38 @@
extends CharacterBody2D
@export var SPEED = 300
@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")

View file

@ -14,23 +14,18 @@ config/name="claustrophemia"
config/version="0.0.1"
run/main_scene="res://levels/level1/stage1.tscn"
config/features=PackedStringArray("4.3", "Forward Plus")
boot_splash/show_image=false
config/icon="res://icon.svg"
[aseprite]
animation/layers/only_include_visible_layers_by_default=true
[autoload]
GlobalKeybinds="*res://scripts/globalKeybinds.gd"
import/import_plugin/default_automatic_importer="SpriteFrames"
[display]
window/size/viewport_width=480
window/size/viewport_height=360
window/stretch/mode="canvas_items"
window/vsync/vsync_mode=0
[editor]
@ -67,19 +62,3 @@ trigger_completed={
"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)
]
}
toggle_fullscreen={
"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":4194342,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
]
}
quit={
"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":4194305,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
]
}
attack={
"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":70,"key_label":0,"unicode":102,"location":0,"echo":false,"script":null)
, Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"button_mask":1,"position":Vector2(311, 12),"global_position":Vector2(320, 58),"factor":1.0,"button_index":1,"canceled":false,"pressed":true,"double_click":false,"script":null)
]
}

View file

@ -1,33 +0,0 @@
class_name Entity extends CharacterBody2D
@export var health = null
@export var speed = null
@export var damage = null
@export var kb_speed = null
func _init(initial_health: int, speed_multiplier: int, attack_damage: int) -> void:
health = initial_health
speed = speed_multiplier
damage = attack_damage
kb_speed = 0
func _physics_process(delta: float) -> void:
var init_velocity = velocity
velocity.x = 0
velocity.y = 0
if init_velocity.x == 0:
init_velocity.x = 1
if kb_speed > 0:
velocity.x = -sign(init_velocity.x) * kb_speed
kb_speed = 0
move_and_slide()
velocity = init_velocity
func take_knockback(speed: int) -> void:
kb_speed = speed

View file

@ -1,16 +0,0 @@
extends Node
var previous_window_mode = -1
func _process(delta: float) -> void:
if Input.is_action_just_pressed("toggle_fullscreen"):
if get_window().mode == Window.MODE_FULLSCREEN:
if previous_window_mode != -1:
get_window().mode = previous_window_mode
else:
get_window().mode = Window.MODE_MAXIMIZED
else:
previous_window_mode = get_window().mode
get_window().mode = Window.MODE_FULLSCREEN
elif Input.is_action_just_pressed("quit"):
get_tree().quit()

View file

@ -1,77 +0,0 @@
extends Entity
@export var GRAVITY = 30
@export var JUMP_FORCE = 500
@onready var animated_sprite = $AnimatedSprite2D
@onready var attack_timer = $AttackTimer
@onready var collider = $CollisionShape2D
@onready var punch_hitbox = $PunchHitbox
var jumping = false
var facing_right = true
const ATTACK_DAMAGE = 25
const INITIAL_HEALTH = 100
const SPEED_MULTIPLIER = 300
const ATTACK_KNOCKBACK = 5000
func _init() -> void:
super._init(INITIAL_HEALTH, SPEED_MULTIPLIER, ATTACK_DAMAGE)
func _ready():
animated_sprite.play("idle")
punch_hitbox.body_entered.connect(punch_connect)
punch_hitbox.visible = false
func _physics_process(delta):
super._physics_process(delta)
if is_on_floor():
# allow the player to jump
if jumping:
jumping = false
if Input.is_action_just_pressed("jump"):
velocity.y = -JUMP_FORCE
jumping = true
animated_sprite.play("jump")
else:
# apply gravity
velocity.y += GRAVITY
if velocity.y > 1000:
velocity.y = 1000
# perform horizontal movement
var horizontal_direction = Input.get_axis("move_left", "move_right")
velocity.x = speed * horizontal_direction
move_and_slide()
# ensure the player faces the correct direction
if horizontal_direction > 0 && !facing_right:
animated_sprite.flip_h = false
elif horizontal_direction < 0 && facing_right:
animated_sprite.flip_h = true
if horizontal_direction != 0:
facing_right = horizontal_direction > 0
# figure out which animation should be played
# respecting the jump animation above all
if !jumping and attack_timer.is_stopped():
if is_on_floor() && horizontal_direction != 0:
animated_sprite.play("walk")
else:
animated_sprite.play("idle")
punch_hitbox.visible = true if !attack_timer.is_stopped() else false
func punch_connect(node: Node):
if node is Entity and node != self and !attack_timer.is_stopped():
node.health -= damage
node.take_knockback(ATTACK_KNOCKBACK)
func _process(delta: float) -> void:
if attack_timer.is_stopped() and Input.is_action_just_pressed("attack"):
attack_timer.start()
animated_sprite.play(" punch") # TODO: Implement hitbox/endlag

View file

@ -1,52 +0,0 @@
extends Entity;
@onready var animated_sprite = $AnimatedSprite2D
@onready var collider = $CollisionShape2D
@onready var contact_hitbox = $ContactHitbox
@onready var collision_shape = collider.shape
@onready var attack_timer = $Timer
@onready var is_dying = false
@onready var death_timer = $DeathTimer
const SPEED_MULTIPLIER = 100
const INITIAL_HEALTH = 10
const ATTACK_DAMAGE = 10
const ATTACK_KNOCKBACK = 5000
func _init() -> void:
super._init(INITIAL_HEALTH, SPEED_MULTIPLIER, ATTACK_DAMAGE)
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
velocity.x = -speed
contact_hitbox.body_entered.connect(body_connect)
contact_hitbox.visible = false
animated_sprite.play("spin")
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _physics_process(delta: float) -> void:
if !is_dying:
contact_hitbox.visible = false if contact_hitbox.visible else true
super._physics_process(delta)
velocity.x = -speed
move_and_slide()
func _process(delta: float) -> void:
if health <= 0:
is_dying = true
death_timer.start()
health = 99999
if is_dying:
animated_sprite.play("death")
contact_hitbox.visible = false
speed = 0
if death_timer.is_stopped():
queue_free()
func body_connect(node: Node):
if node is Entity and node != self and attack_timer.is_stopped():
attack_timer.start(0.25)
node.health -= damage
take_knockback(ATTACK_KNOCKBACK)