This commit is contained in:
noyciy7037 2023-12-11 19:38:22 +09:00
parent 4fb60ae024
commit 3236475589
Signed by: noyciy7037
GPG Key ID: 46A54FA18BBA58FF
50 changed files with 1143 additions and 0 deletions

2
.gitattributes vendored Normal file
View File

@ -0,0 +1,2 @@
# Normalize EOL for all files that Git considers text files.
* text=auto eol=lf

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
# Godot 4+ specific ignores
.godot/

58
Main.gd Normal file
View File

@ -0,0 +1,58 @@
extends Node
@export var mob_scene: PackedScene
var score
# Called when the node enters the scene tree for the first time.
func _ready():
pass
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
func game_over():
$ScoreTimer.stop()
$MobTimer.stop()
$HUD.show_game_over()
$Music.stop()
$DeathSound.play()
func new_game():
score = 0
$Player.start($StartPosition.position)
$StartTimer.start()
$HUD.update_score(score)
$HUD.show_message("Get Ready")
get_tree().call_group("mobs", "queue_free")
$Music.play()
func _on_mob_timer_timeout():
var mob = mob_scene.instantiate()
var mob_spawn_location = get_node("MobPath/MobSpawnLocation") # $MobPath/MobSpawnLocation
mob_spawn_location.progress_ratio = randf()
var direction = mob_spawn_location.rotation + PI / 2
mob.position = mob_spawn_location.position
direction += randf_range(-PI / 4, PI / 4)
mob.rotation = direction
var velocity = Vector2(randf_range(150.0, 250.0),0.0)
mob.linear_velocity = velocity.rotated(direction)
add_child(mob)
func _on_score_timer_timeout():
score += 1
$HUD.update_score(score)
func _on_start_timer_timeout():
$MobTimer.start()
$ScoreTimer.start()

16
Mob.gd Normal file
View File

@ -0,0 +1,16 @@
extends RigidBody2D
# Called when the node enters the scene tree for the first time.
func _ready():
var mob_types = $AnimatedSprite2D.sprite_frames.get_animation_names()
$AnimatedSprite2D.play(mob_types[randi() % mob_types.size()])
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
func _on_visible_on_screen_notifier_2d_screen_exited():
queue_free()

Binary file not shown.

View File

@ -0,0 +1,33 @@
[remap]
importer="font_data_dynamic"
type="FontFile"
uid="uid://cbv6w30lgpf3g"
path="res://.godot/imported/Orbitron-VariableFont_wght.ttf-0bb3180e2dd0a0be6594354bb30b210a.fontdata"
[deps]
source_file="res://Orbitron-VariableFont_wght.ttf"
dest_files=["res://.godot/imported/Orbitron-VariableFont_wght.ttf-0bb3180e2dd0a0be6594354bb30b210a.fontdata"]
[params]
Rendering=null
antialiasing=1
generate_mipmaps=false
multichannel_signed_distance_field=false
msdf_pixel_range=8
msdf_size=48
allow_system_fallback=true
force_autohinter=false
hinting=1
subpixel_positioning=1
oversampling=0.0
Fallbacks=null
fallbacks=[]
Compress=null
compress=true
preload=[]
language_support={}
script_support={}
opentype_features={}

37
export_presets.cfg Normal file
View File

@ -0,0 +1,37 @@
[preset.0]
name="Web"
platform="Web"
runnable=false
dedicated_server=false
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path="../export/kibidanshaku.html"
encryption_include_filters=""
encryption_exclude_filters=""
encrypt_pck=false
encrypt_directory=false
[preset.0.options]
custom_template/debug=""
custom_template/release=""
variant/extensions_support=false
vram_texture_compression/for_desktop=true
vram_texture_compression/for_mobile=false
html/export_icon=true
html/custom_html_shell=""
html/head_include=""
html/canvas_resize_policy=1
html/focus_canvas_on_start=true
html/experimental_virtual_keyboard=false
progressive_web_app/enabled=false
progressive_web_app/offline_page=""
progressive_web_app/display=1
progressive_web_app/orientation=0
progressive_web_app/icon_144x144=""
progressive_web_app/icon_180x180=""
progressive_web_app/icon_512x512=""
progressive_web_app/background_color=Color(0, 0, 0, 1)

40
hud.gd Normal file
View File

@ -0,0 +1,40 @@
extends CanvasLayer
signal start_game
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
func show_message(text):
$Message.text = text
$Message.show()
$MessageTimer.start()
func show_game_over():
show_message("Game Over")
# Wait until the MessageTimer has counted down.
await $MessageTimer.timeout
$Message.text = "Dodge the Creeps!"
$Message.show()
# Make a one-shot timer and wait for it to finish.
await get_tree().create_timer(1.0).timeout
$StartButton.show()
func update_score(score):
$ScoreLabel.text = str(score)
func _on_message_timer_timeout():
$Message.hide()
func _on_start_button_pressed():
$StartButton.hide()
start_game.emit()

70
hud.tscn Normal file
View File

@ -0,0 +1,70 @@
[gd_scene load_steps=5 format=3 uid="uid://cgvj6xw02q8uo"]
[ext_resource type="FontFile" uid="uid://cbv6w30lgpf3g" path="res://Orbitron-VariableFont_wght.ttf" id="1_d1pt0"]
[ext_resource type="Script" path="res://hud.gd" id="1_tgq57"]
[sub_resource type="InputEventAction" id="InputEventAction_iql16"]
action = &"start_game"
[sub_resource type="Shortcut" id="Shortcut_udpph"]
events = [SubResource("InputEventAction_iql16")]
[node name="HUD" type="CanvasLayer"]
script = ExtResource("1_tgq57")
[node name="ScoreLabel" type="Label" parent="."]
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -26.5
offset_right = 26.5
offset_bottom = 84.0
grow_horizontal = 2
theme_override_fonts/font = ExtResource("1_d1pt0")
theme_override_font_sizes/font_size = 64
text = "0"
horizontal_alignment = 1
vertical_alignment = 1
[node name="Message" type="Label" parent="."]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -575.0
offset_top = -126.0
offset_right = 575.0
offset_bottom = 126.0
grow_horizontal = 2
grow_vertical = 2
theme_override_fonts/font = ExtResource("1_d1pt0")
theme_override_font_sizes/font_size = 64
text = "Dodge the Creeps!"
horizontal_alignment = 1
vertical_alignment = 1
autowrap_mode = 2
[node name="StartButton" type="Button" parent="."]
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -100.0
offset_top = -168.0
offset_right = 100.0
offset_bottom = -68.0
grow_horizontal = 2
grow_vertical = 0
theme_override_fonts/font = ExtResource("1_d1pt0")
theme_override_font_sizes/font_size = 64
shortcut = SubResource("Shortcut_udpph")
text = "Start"
[node name="MessageTimer" type="Timer" parent="."]
wait_time = 2.0
one_shot = true
[connection signal="pressed" from="StartButton" to="." method="_on_start_button_pressed"]
[connection signal="timeout" from="MessageTimer" to="." method="_on_message_timer_timeout"]

1
icon.svg Normal file
View File

@ -0,0 +1 @@
<svg height="128" width="128" xmlns="http://www.w3.org/2000/svg"><rect x="2" y="2" width="124" height="124" rx="14" fill="#363d52" stroke="#212532" stroke-width="4"/><g transform="scale(.101) translate(122 122)"><g fill="#fff"><path d="M105 673v33q407 354 814 0v-33z"/><path fill="#478cbf" d="m105 673 152 14q12 1 15 14l4 67 132 10 8-61q2-11 15-15h162q13 4 15 15l8 61 132-10 4-67q3-13 15-14l152-14V427q30-39 56-81-35-59-83-108-43 20-82 47-40-37-88-64 7-51 8-102-59-28-123-42-26 43-46 89-49-7-98 0-20-46-46-89-64 14-123 42 1 51 8 102-48 27-88 64-39-27-82-47-48 49-83 108 26 42 56 81zm0 33v39c0 276 813 276 813 0v-39l-134 12-5 69q-2 10-14 13l-162 11q-12 0-16-11l-10-65H447l-10 65q-4 11-16 11l-162-11q-12-3-14-13l-5-69z"/><path d="M483 600c3 34 55 34 58 0v-86c-3-34-55-34-58 0z"/><circle cx="725" cy="526" r="90"/><circle cx="299" cy="526" r="90"/></g><g fill="#414042"><circle cx="307" cy="532" r="60"/><circle cx="717" cy="532" r="60"/></g></g></svg>

After

Width:  |  Height:  |  Size: 950 B

37
icon.svg.import Normal file
View File

@ -0,0 +1,37 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://da0la1l6k1qtb"
path="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://icon.svg"
dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.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
svg/scale=1.0
editor/scale_with_editor_scale=false
editor/convert_colors_with_editor_theme=false

63
main.tscn Normal file

File diff suppressed because one or more lines are too long

67
mob.tscn Normal file
View File

@ -0,0 +1,67 @@
[gd_scene load_steps=10 format=3 uid="uid://bqiei7hs3em6q"]
[ext_resource type="Script" path="res://Mob.gd" id="1_6ybt2"]
[ext_resource type="Texture2D" uid="uid://cmpgjxdm8o7m2" path="res://mob/walk0.png" id="2_1gffc"]
[ext_resource type="Texture2D" uid="uid://bti2frgpnknav" path="res://mob/fly0.png" id="2_7av1t"]
[ext_resource type="Texture2D" uid="uid://cq7pjw7fh5ea2" path="res://mob/fly1.png" id="3_73diy"]
[ext_resource type="Texture2D" uid="uid://bxecwi7o3hwj2" path="res://mob/walk1.png" id="3_l1ff2"]
[ext_resource type="Texture2D" uid="uid://dufno6gspyfhh" path="res://mob/walk2.png" id="4_h8mys"]
[ext_resource type="Texture2D" uid="uid://dcs6138ftv0qp" path="res://mob/fly2.png" id="4_xwgb2"]
[sub_resource type="SpriteFrames" id="SpriteFrames_y5ply"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("2_7av1t")
}, {
"duration": 1.0,
"texture": ExtResource("3_73diy")
}, {
"duration": 1.0,
"texture": ExtResource("4_xwgb2")
}],
"loop": true,
"name": &"fly",
"speed": 10.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("2_1gffc")
}, {
"duration": 1.0,
"texture": ExtResource("3_l1ff2")
}, {
"duration": 1.0,
"texture": ExtResource("2_1gffc")
}, {
"duration": 1.0,
"texture": ExtResource("4_h8mys")
}],
"loop": true,
"name": &"walk",
"speed": 10.0
}]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_fyywn"]
radius = 46.01
height = 124.22
[node name="Mob" type="RigidBody2D" groups=["mobs"]]
collision_mask = 0
gravity_scale = 0.0
script = ExtResource("1_6ybt2")
metadata/_edit_group_ = true
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
scale = Vector2(0.1, 0.1)
sprite_frames = SubResource("SpriteFrames_y5ply")
animation = &"fly"
frame_progress = 0.215343
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(-4.01, -13.11)
shape = SubResource("CapsuleShape2D_fyywn")
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."]
[connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"]

BIN
mob/edge.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

34
mob/edge.png.import Normal file
View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dj08wfjpl4dng"
path="res://.godot/imported/edge.png-6af007903c61ac1626b585da1289709a.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://mob/edge.png"
dest_files=["res://.godot/imported/edge.png-6af007903c61ac1626b585da1289709a.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
mob/fly0.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

34
mob/fly0.png.import Normal file
View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bti2frgpnknav"
path="res://.godot/imported/fly0.png-35d36392deb40dcc94b71d4e92e240a4.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://mob/fly0.png"
dest_files=["res://.godot/imported/fly0.png-35d36392deb40dcc94b71d4e92e240a4.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
mob/fly1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

34
mob/fly1.png.import Normal file
View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cq7pjw7fh5ea2"
path="res://.godot/imported/fly1.png-a21c7b790d8be73dd12c67e770767963.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://mob/fly1.png"
dest_files=["res://.godot/imported/fly1.png-a21c7b790d8be73dd12c67e770767963.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
mob/fly2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

34
mob/fly2.png.import Normal file
View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dcs6138ftv0qp"
path="res://.godot/imported/fly2.png-ce2ee301bccfa9bb54e2fe56df1eb56b.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://mob/fly2.png"
dest_files=["res://.godot/imported/fly2.png-ce2ee301bccfa9bb54e2fe56df1eb56b.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
mob/walk0.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

34
mob/walk0.png.import Normal file
View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cmpgjxdm8o7m2"
path="res://.godot/imported/walk0.png-72505c0b1e74e75d02517c5e2e18dd9c.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://mob/walk0.png"
dest_files=["res://.godot/imported/walk0.png-72505c0b1e74e75d02517c5e2e18dd9c.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
mob/walk1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

34
mob/walk1.png.import Normal file
View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bxecwi7o3hwj2"
path="res://.godot/imported/walk1.png-470229a50b12c755aa3ab3e1cc84ce9c.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://mob/walk1.png"
dest_files=["res://.godot/imported/walk1.png-470229a50b12c755aa3ab3e1cc84ce9c.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
mob/walk2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

34
mob/walk2.png.import Normal file
View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dufno6gspyfhh"
path="res://.godot/imported/walk2.png-072cedaf249adea141d1633d2927cc27.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://mob/walk2.png"
dest_files=["res://.godot/imported/walk2.png-072cedaf249adea141d1633d2927cc27.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
original.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 444 KiB

34
original.jpg.import Normal file
View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://3rxs3k0rrwbc"
path="res://.godot/imported/original.jpg-8a6f1bf1ea94461fe43155ecc0a76e91.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://original.jpg"
dest_files=["res://.godot/imported/original.jpg-8a6f1bf1ea94461fe43155ecc0a76e91.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

52
player.gd Normal file
View File

@ -0,0 +1,52 @@
extends Area2D
signal hit
@export var speed = 400
var screen_size
# Called when the node enters the scene tree for the first time.
func _ready():
screen_size = get_viewport_rect().size
hide()
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
var velocity = Vector2.ZERO # The player's movement vector.
if Input.is_action_pressed("move_right"):
velocity.x += 1
if Input.is_action_pressed("move_left"):
velocity.x -= 1
if Input.is_action_pressed("move_down"):
velocity.y += 1
if Input.is_action_pressed("move_up"):
velocity.y -= 1
if velocity.length() > 0:
velocity = velocity.normalized() * speed
$AnimatedSprite2D.play()
else:
$AnimatedSprite2D.stop()
position += velocity * delta
position = position.clamp(Vector2.ZERO, screen_size)
if velocity.x != 0:
$AnimatedSprite2D.animation = "walk"
$AnimatedSprite2D.flip_v = false
# See the note below about boolean assignment.
$AnimatedSprite2D.flip_h = velocity.x < 0
elif velocity.y != 0:
$AnimatedSprite2D.animation = "up"
$AnimatedSprite2D.flip_v = velocity.y > 0
func _on_body_entered(body):
hide() # Player disappears after being hit.
hit.emit()
# Must be deferred as we can't change physics properties on a physics callback.
$CollisionShape2D.set_deferred("disabled", true)
func start(pos):
position = pos
show()
$CollisionShape2D.disabled = false

63
player.tscn Normal file
View File

@ -0,0 +1,63 @@
[gd_scene load_steps=10 format=3 uid="uid://c4ta5bu811dxq"]
[ext_resource type="Script" path="res://player.gd" id="1_cxqgr"]
[ext_resource type="Texture2D" uid="uid://bhopkbf08unp5" path="res://player/walk0.png" id="2_ki5au"]
[ext_resource type="Texture2D" uid="uid://c1opfvqdowktk" path="res://player/up0.png" id="2_ph5tw"]
[ext_resource type="Texture2D" uid="uid://54gmxkmcp6tj" path="res://player/up1.png" id="3_3byaj"]
[ext_resource type="Texture2D" uid="uid://cry4pticwvwg8" path="res://player/walk1.png" id="3_rg1ro"]
[ext_resource type="Texture2D" uid="uid://cx7ohyhu684db" path="res://player/up2.png" id="4_hc7pb"]
[ext_resource type="Texture2D" uid="uid://btf3f612hbp7j" path="res://player/walk2.png" id="4_o10dw"]
[sub_resource type="SpriteFrames" id="SpriteFrames_yeuxm"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("2_ph5tw")
}, {
"duration": 1.0,
"texture": ExtResource("3_3byaj")
}, {
"duration": 1.0,
"texture": ExtResource("2_ph5tw")
}, {
"duration": 1.0,
"texture": ExtResource("4_hc7pb")
}],
"loop": true,
"name": &"up",
"speed": 10.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("2_ki5au")
}, {
"duration": 1.0,
"texture": ExtResource("3_rg1ro")
}, {
"duration": 1.0,
"texture": ExtResource("2_ki5au")
}, {
"duration": 1.0,
"texture": ExtResource("4_o10dw")
}],
"loop": true,
"name": &"walk",
"speed": 15.0
}]
[sub_resource type="CircleShape2D" id="CircleShape2D_0lhkc"]
radius = 35.0143
[node name="Player" type="Area2D"]
script = ExtResource("1_cxqgr")
metadata/_edit_group_ = true
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_yeuxm")
animation = &"walk"
frame_progress = 0.0187918
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_0lhkc")
[connection signal="body_entered" from="." to="." method="_on_body_entered"]

BIN
player/Kanrisha-cleared.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 961 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://clhcftcf2lr5k"
path="res://.godot/imported/Kanrisha-cleared.png-ca024ec608792eee8a5b93a000ee4e26.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://player/Kanrisha-cleared.png"
dest_files=["res://.godot/imported/Kanrisha-cleared.png-ca024ec608792eee8a5b93a000ee4e26.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
player/up0.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 934 B

34
player/up0.png.import Normal file
View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://c1opfvqdowktk"
path="res://.godot/imported/up0.png-82722ce5092cc5ff78f2ff749cf80fc3.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://player/up0.png"
dest_files=["res://.godot/imported/up0.png-82722ce5092cc5ff78f2ff749cf80fc3.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
player/up1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 923 B

34
player/up1.png.import Normal file
View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://54gmxkmcp6tj"
path="res://.godot/imported/up1.png-bea64b7268232a0348bfd2a89966881e.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://player/up1.png"
dest_files=["res://.godot/imported/up1.png-bea64b7268232a0348bfd2a89966881e.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
player/up2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 945 B

34
player/up2.png.import Normal file
View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cx7ohyhu684db"
path="res://.godot/imported/up2.png-eacd52ce475c005ca4ded62da9e91e04.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://player/up2.png"
dest_files=["res://.godot/imported/up2.png-eacd52ce475c005ca4ded62da9e91e04.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
player/walk0.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 934 B

34
player/walk0.png.import Normal file
View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bhopkbf08unp5"
path="res://.godot/imported/walk0.png-53d05acb307001d7c023ab9491f248cf.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://player/walk0.png"
dest_files=["res://.godot/imported/walk0.png-53d05acb307001d7c023ab9491f248cf.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
player/walk1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 904 B

34
player/walk1.png.import Normal file
View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cry4pticwvwg8"
path="res://.godot/imported/walk1.png-4d40335f3b6ffc20b09b04cd61c37e0c.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://player/walk1.png"
dest_files=["res://.godot/imported/walk1.png-4d40335f3b6ffc20b09b04cd61c37e0c.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
player/walk2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 938 B

34
player/walk2.png.import Normal file
View File

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

54
project.godot Normal file
View File

@ -0,0 +1,54 @@
; Engine configuration file.
; It's best edited using the editor UI and not directly,
; since the parameters that go here are not all obvious.
;
; Format:
; [section] ; section goes between []
; param=value ; assign values to parameters
config_version=5
[application]
config/name="kibidanshaku"
run/main_scene="res://main.tscn"
config/features=PackedStringArray("4.2", "GL Compatibility")
config/icon="res://icon.svg"
[display]
window/size/resizable=false
[input]
move_right={
"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":4194321,"key_label":0,"unicode":0,"echo":false,"script":null)
]
}
move_left={
"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":4194319,"key_label":0,"unicode":0,"echo":false,"script":null)
]
}
move_up={
"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":4194320,"key_label":0,"unicode":0,"echo":false,"script":null)
]
}
move_down={
"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":4194322,"key_label":0,"unicode":0,"echo":false,"script":null)
]
}
start_game={
"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":32,"key_label":0,"unicode":32,"echo":false,"script":null)
, 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":4194309,"key_label":0,"unicode":0,"echo":false,"script":null)
]
}
[rendering]
renderer/rendering_method="gl_compatibility"
renderer/rendering_method.mobile="gl_compatibility"

BIN
sounds/5G.mp3 Normal file

Binary file not shown.

19
sounds/5G.mp3.import Normal file
View File

@ -0,0 +1,19 @@
[remap]
importer="mp3"
type="AudioStreamMP3"
uid="uid://cullqdrv32h33"
path="res://.godot/imported/5G.mp3-5989e4532d288097357a6872df19d8c6.mp3str"
[deps]
source_file="res://sounds/5G.mp3"
dest_files=["res://.godot/imported/5G.mp3-5989e4532d288097357a6872df19d8c6.mp3str"]
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4

BIN
sounds/Death.mp3 Normal file

Binary file not shown.

19
sounds/Death.mp3.import Normal file
View File

@ -0,0 +1,19 @@
[remap]
importer="mp3"
type="AudioStreamMP3"
uid="uid://c5rfrk18q7p8x"
path="res://.godot/imported/Death.mp3-e9e850506ad5f8858c44218619ba07b2.mp3str"
[deps]
source_file="res://sounds/Death.mp3"
dest_files=["res://.godot/imported/Death.mp3-e9e850506ad5f8858c44218619ba07b2.mp3str"]
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4