This commit is contained in:
ws3917 2025-05-13 21:09:54 +08:00
parent 52c22642ba
commit e16a83acd0
35 changed files with 882 additions and 1712 deletions

Binary file not shown.

View File

@ -2,7 +2,7 @@
importer="font_data_dynamic"
type="FontFile"
uid="uid://dqhr68jmo4onx"
uid="uid://bm33w5vaxemm1"
path="res://.godot/imported/DTM-Mono.otf-c9a8ba02f7a0d1306b72871e16a0e9fd.fontdata"
[deps]
@ -29,7 +29,12 @@ Fallbacks=null
fallbacks=[]
Compress=null
compress=true
preload=[]
preload=[{
"chars": [],
"glyphs": [],
"name": "新建配置",
"size": Vector2i(16, 0)
}]
language_support={}
script_support={}
opentype_features={}

Binary file not shown.

View File

@ -2,7 +2,7 @@
importer="font_data_dynamic"
type="FontFile"
uid="uid://d8jw11wrln33"
uid="uid://ds5fuu4nvfqdb"
path="res://.godot/imported/DTM-Sans.otf-5ac6ba21314eda620a402d113cdc1558.fontdata"
[deps]
@ -29,7 +29,12 @@ Fallbacks=null
fallbacks=[]
Compress=null
compress=true
preload=[]
preload=[{
"chars": [],
"glyphs": [],
"name": "新建配置",
"size": Vector2i(16, 0)
}]
language_support={}
script_support={}
opentype_features={}

Binary file not shown.

View File

@ -2,7 +2,7 @@
importer="font_data_dynamic"
type="FontFile"
uid="uid://d33n8i23lahfx"
uid="uid://di8a4wt1feejl"
path="res://.godot/imported/Determination-Regular.otf-d3642ed4258f21e36280aafddc4afd4d.fontdata"
[deps]
@ -13,7 +13,7 @@ dest_files=["res://.godot/imported/Determination-Regular.otf-d3642ed4258f21e3628
[params]
Rendering=null
antialiasing=1
antialiasing=0
generate_mipmaps=false
disable_embedded_bitmaps=true
multichannel_signed_distance_field=false
@ -29,7 +29,12 @@ Fallbacks=null
fallbacks=[]
Compress=null
compress=true
preload=[]
preload=[{
"chars": [],
"glyphs": [],
"name": "新建配置",
"size": Vector2i(16, 0)
}]
language_support={}
script_support={}
opentype_features={}

View File

@ -13,7 +13,7 @@ dest_files=["res://.godot/imported/DiaryOfAn8BitMage-lYDD.ttf-70b6bea3583e45766f
[params]
Rendering=null
antialiasing=1
antialiasing=0
generate_mipmaps=false
disable_embedded_bitmaps=true
multichannel_signed_distance_field=false
@ -29,7 +29,12 @@ Fallbacks=null
fallbacks=[]
Compress=null
compress=true
preload=[]
preload=[{
"chars": [],
"glyphs": [],
"name": "新建配置",
"size": Vector2i(16, 0)
}]
language_support={}
script_support={}
opentype_features={}

35
Fonts/Dotumche.ttf.import Normal file
View File

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

View File

@ -13,7 +13,7 @@ dest_files=["res://.godot/imported/OrangeKid2.ttf-52463fe9bc5212222296213054caa5
[params]
Rendering=null
antialiasing=1
antialiasing=0
generate_mipmaps=false
disable_embedded_bitmaps=true
multichannel_signed_distance_field=false
@ -29,7 +29,12 @@ Fallbacks=null
fallbacks=[]
Compress=null
compress=true
preload=[]
preload=[{
"chars": [],
"glyphs": [],
"name": "新建配置",
"size": Vector2i(16, 0)
}]
language_support={}
script_support={}
opentype_features={}

View File

@ -13,7 +13,7 @@ dest_files=["res://.godot/imported/TroubleBeneathTheDome.ttf-59cf589607b0e34b5ac
[params]
Rendering=null
antialiasing=1
antialiasing=0
generate_mipmaps=false
disable_embedded_bitmaps=true
multichannel_signed_distance_field=false
@ -29,7 +29,12 @@ Fallbacks=null
fallbacks=[]
Compress=null
compress=true
preload=[]
preload=[{
"chars": [],
"glyphs": [],
"name": "新建配置",
"size": Vector2i(16, 0)
}]
language_support={}
script_support={}
opentype_features={}

View File

@ -13,7 +13,7 @@ dest_files=["res://.godot/imported/dotumche-pixel.ttf-4b7534a3b510211ca01320872d
[params]
Rendering=null
antialiasing=1
antialiasing=0
generate_mipmaps=false
disable_embedded_bitmaps=true
multichannel_signed_distance_field=false
@ -29,7 +29,12 @@ Fallbacks=null
fallbacks=[]
Compress=null
compress=true
preload=[]
preload=[{
"chars": [],
"glyphs": [],
"name": "新建配置",
"size": Vector2i(16, 0)
}]
language_support={}
script_support={}
opentype_features={}

View File

@ -3,8 +3,8 @@
[ext_resource type="Script" uid="uid://cqejt8xpuq0we" path="res://Scripts/Main.cs" id="1"]
[ext_resource type="Texture2D" uid="uid://ca4ame0uqm16i" path="res://Sprites/Menus/dwbox.png" id="2"]
[ext_resource type="Script" uid="uid://dcaadyrf44f2s" path="res://Scripts/Common/TextSystem.cs" id="3"]
[ext_resource type="SpriteFrames" path="res://Animations/Portraits.tres" id="4"]
[ext_resource type="FontFile" uid="uid://dqhr68jmo4onx" path="res://Fonts/DTM-Mono.otf" id="5"]
[ext_resource type="SpriteFrames" uid="uid://b5whpr2mq8mqp" path="res://Animations/Portraits.tres" id="4"]
[ext_resource type="FontFile" uid="uid://bm33w5vaxemm1" path="res://Fonts/DTM-Mono.otf" id="5"]
[ext_resource type="Texture2D" path="res://Sprites/Menus/Menu Sprites/Soul.tres" id="6"]
[ext_resource type="Script" uid="uid://c6tb02l2w3pkf" path="res://Scripts/CameraController.cs" id="7"]
[ext_resource type="Texture2D" uid="uid://borwa3xavq2yq" path="res://Sprites/Menus/Mobile/ButtonZ.png" id="7_ny7u2"]
@ -16,7 +16,7 @@
[ext_resource type="Texture2D" uid="uid://dhcfih1gqgfdt" path="res://Sprites/Menus/Mobile/buttonR.png" id="10_x3yn0"]
[ext_resource type="Texture2D" uid="uid://dvcauf0wkk8je" path="res://Sprites/Menus/utbox.png" id="11"]
[ext_resource type="FontFile" uid="uid://benu2xtgythyn" path="res://Fonts/TroubleBeneathTheDome.ttf" id="12"]
[ext_resource type="FontFile" uid="uid://d8jw11wrln33" path="res://Fonts/DTM-Sans.otf" id="13"]
[ext_resource type="FontFile" uid="uid://ds5fuu4nvfqdb" path="res://Fonts/DTM-Sans.otf" id="13"]
[ext_resource type="Script" uid="uid://dtk1i5ahr1pab" path="res://Scripts/UI/DWMenu.cs" id="14"]
[ext_resource type="Texture2D" path="res://Sprites/Menus/Menu Sprites/TPBar.tres" id="15"]
[ext_resource type="Texture2D" path="res://Sprites/Menus/Menu Sprites/TP.tres" id="16"]
@ -80,10 +80,17 @@ exitMes = NodePath("CanvasLayer/Exit")
metadata/_edit_vertical_guides_ = [-160.0, 160.0]
metadata/_edit_horizontal_guides_ = [-120.0, 120.0]
[node name="BlackBackground" type="ColorRect" parent="."]
offset_left = -200.0
offset_top = -147.0
offset_right = 914.0
offset_bottom = 480.0
color = Color(0, 0, 0, 1)
[node name="CanvasLayer" type="CanvasLayer" parent="."]
offset = Vector2(320, 240)
offset = Vector2(384, 240)
scale = Vector2(2, 2)
transform = Transform2D(2, 0, 0, 2, 320, 240)
transform = Transform2D(2, 0, 0, 2, 384, 240)
[node name="Textbox" type="NinePatchRect" parent="CanvasLayer" node_paths=PackedStringArray("portrait", "text", "promptText", "soul")]
visible = false
@ -205,59 +212,68 @@ theme_override_font_sizes/font_size = 13
text = "Exiting..."
horizontal_alignment = 2
vertical_alignment = 2
metadata/_edit_use_anchors_ = true
[node name="MobileControl" type="Node2D" parent="CanvasLayer"]
modulate = Color(1, 1, 1, 0.501961)
position = Vector2(30.5, -0.5)
scale = Vector2(2, 2)
[node name="Joystick" type="Node2D" parent="CanvasLayer/MobileControl"]
position = Vector2(-63, 34)
position = Vector2(-92, 20)
[node name="Up" type="TouchScreenButton" parent="CanvasLayer/MobileControl/Joystick"]
position = Vector2(-11, -16)
rotation = -1.5708
scale = Vector2(0.25, 0.25)
texture_normal = ExtResource("10_x3yn0")
action = "Up"
visibility_mode = 1
[node name="Down" type="TouchScreenButton" parent="CanvasLayer/MobileControl/Joystick"]
position = Vector2(11, 16)
rotation = -3.14159
position = Vector2(19, 19)
rotation = 1.5708
scale = Vector2(0.25, 0.25)
texture_normal = ExtResource("10_x3yn0")
action = "Down"
visibility_mode = 1
[node name="Left" type="TouchScreenButton" parent="CanvasLayer/MobileControl/Joystick"]
position = Vector2(-16, 11)
rotation = -1.5708
position = Vector2(0, 19)
rotation = 3.14159
scale = Vector2(0.25, 0.25)
texture_normal = ExtResource("10_x3yn0")
action = "Left"
visibility_mode = 1
[node name="Right" type="TouchScreenButton" parent="CanvasLayer/MobileControl/Joystick"]
position = Vector2(16, -11)
rotation = 1.5708
position = Vector2(19, 0)
scale = Vector2(0.25, 0.25)
texture_normal = ExtResource("10_x3yn0")
action = "Right"
visibility_mode = 1
[node name="Buttons" type="Node2D" parent="CanvasLayer/MobileControl"]
position = Vector2(31.5, 27.75)
position = Vector2(21, 25)
[node name="Z" type="TouchScreenButton" parent="CanvasLayer/MobileControl/Buttons"]
position = Vector2(0, 8)
scale = Vector2(0.25, 0.25)
texture_normal = ExtResource("7_ny7u2")
passby_press = true
action = "Confirm"
visibility_mode = 1
[node name="X" type="TouchScreenButton" parent="CanvasLayer/MobileControl/Buttons"]
position = Vector2(16, 0)
position = Vector2(20, -8)
scale = Vector2(0.25, 0.25)
texture_normal = ExtResource("8_x3yn0")
passby_press = true
action = "Cancel"
visibility_mode = 1
[node name="C" type="TouchScreenButton" parent="CanvasLayer/MobileControl/Buttons"]
position = Vector2(32, 0)
position = Vector2(40, -24)
scale = Vector2(0.25, 0.25)
texture_normal = ExtResource("9_1w2xm")
passby_press = true
action = "Menu"
@ -291,6 +307,7 @@ anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
metadata/_edit_use_anchors_ = true
[node name="LWMenu" type="Control" parent="Camera2D/GUI" node_paths=PackedStringArray("mainText", "statText", "mainOpt", "mainText2", "itemOpt", "soul", "bigBox")]
visible = false
@ -340,7 +357,7 @@ grow_horizontal = 2
grow_vertical = 2
theme_override_constants/line_separation = -1
theme_override_fonts/normal_font = ExtResource("12")
theme_override_font_sizes/normal_font_size = 11
theme_override_font_sizes/normal_font_size = 13
bbcode_enabled = true
text = "Cole
LV 1
@ -849,7 +866,7 @@ offset_top = -75.0
offset_right = -43.0
offset_bottom = -59.0
theme_override_fonts/normal_font = ExtResource("13")
theme_override_font_sizes/normal_font_size = 11
theme_override_font_sizes/normal_font_size = 13
bbcode_enabled = true
text = "[center]Clover"
scroll_active = false
@ -861,7 +878,7 @@ offset_right = 122.0
offset_bottom = -22.0
theme_override_constants/line_separation = 3
theme_override_fonts/normal_font = ExtResource("13")
theme_override_font_sizes/normal_font_size = 11
theme_override_font_sizes/normal_font_size = 13
bbcode_enabled = true
text = "Weapon
Armor1
@ -875,7 +892,7 @@ offset_right = 6.0
offset_bottom = 72.0
theme_override_constants/line_separation = -1
theme_override_fonts/normal_font = ExtResource("5")
theme_override_font_sizes/normal_font_size = 11
theme_override_font_sizes/normal_font_size = 13
bbcode_enabled = true
text = "Attack: 999
Defense: 999
@ -894,7 +911,7 @@ offset_right = 197.0
offset_bottom = 73.0
theme_override_constants/line_separation = -1
theme_override_fonts/normal_font = ExtResource("13")
theme_override_font_sizes/normal_font_size = 11
theme_override_font_sizes/normal_font_size = 13
bbcode_enabled = true
text = "Weapon
Armor1
@ -932,7 +949,7 @@ offset_right = 261.0
offset_bottom = 157.0
theme_override_constants/line_separation = 2
theme_override_fonts/normal_font = ExtResource("5")
theme_override_font_sizes/normal_font_size = 11
theme_override_font_sizes/normal_font_size = 13
bbcode_enabled = true
scroll_active = false
metadata/_edit_lock_ = true
@ -946,7 +963,7 @@ offset_right = 261.0
offset_bottom = 53.0
theme_override_constants/line_separation = 2
theme_override_fonts/normal_font = ExtResource("5")
theme_override_font_sizes/normal_font_size = 11
theme_override_font_sizes/normal_font_size = 13
bbcode_enabled = true
text = "USE"
scroll_active = false
@ -960,7 +977,7 @@ offset_right = 247.0
offset_bottom = 32.0
theme_override_constants/line_separation = 2
theme_override_fonts/normal_font = ExtResource("5")
theme_override_font_sizes/normal_font_size = 11
theme_override_font_sizes/normal_font_size = 13
bbcode_enabled = true
text = "TOSS"
scroll_active = false
@ -974,7 +991,7 @@ offset_right = 247.0
offset_bottom = 32.0
theme_override_constants/line_separation = 2
theme_override_fonts/normal_font = ExtResource("5")
theme_override_font_sizes/normal_font_size = 11
theme_override_font_sizes/normal_font_size = 13
bbcode_enabled = true
text = "KEY"
scroll_active = false
@ -1031,7 +1048,7 @@ offset_right = 318.0
offset_bottom = 33.0
theme_override_constants/line_separation = 3
theme_override_fonts/normal_font = ExtResource("13")
theme_override_font_sizes/normal_font_size = 11
theme_override_font_sizes/normal_font_size = 13
bbcode_enabled = true
text = "D$ 9999"
scroll_active = false
@ -1044,7 +1061,7 @@ offset_bottom = 23.0
scale = Vector2(0.665, 2)
theme_override_constants/line_separation = 3
theme_override_fonts/normal_font = ExtResource("31")
theme_override_font_sizes/normal_font_size = 11
theme_override_font_sizes/normal_font_size = 13
bbcode_enabled = true
text = "SETTINGS"
scroll_active = false
@ -1057,7 +1074,7 @@ offset_top = 8.0
offset_right = 320.0
offset_bottom = 37.0
theme_override_fonts/normal_font = ExtResource("5")
theme_override_font_sizes/normal_font_size = 11
theme_override_font_sizes/normal_font_size = 13
bbcode_enabled = true
text = "aaa
aaaa"
@ -1136,7 +1153,7 @@ offset_right = 325.0
offset_bottom = 55.0
theme_override_constants/line_separation = 3
theme_override_fonts/normal_font = ExtResource("13")
theme_override_font_sizes/normal_font_size = 11
theme_override_font_sizes/normal_font_size = 13
bbcode_enabled = true
text = "aaaa
aaaa"
@ -1151,7 +1168,7 @@ offset_right = 429.0
offset_bottom = 55.0
theme_override_constants/line_separation = 3
theme_override_fonts/normal_font = ExtResource("13")
theme_override_font_sizes/normal_font_size = 11
theme_override_font_sizes/normal_font_size = 13
bbcode_enabled = true
text = "aaaa
aaaa"
@ -1179,7 +1196,7 @@ offset_right = 320.0
offset_bottom = 55.0
theme_override_constants/line_separation = 3
theme_override_fonts/normal_font = ExtResource("13")
theme_override_font_sizes/normal_font_size = 11
theme_override_font_sizes/normal_font_size = 13
bbcode_enabled = true
text = "aaaa
aaaa"

View File

@ -96,7 +96,7 @@ offset_top = -73.0
offset_right = 78.0
offset_bottom = -33.0
theme_override_fonts/normal_font = ExtResource("8")
theme_override_font_sizes/normal_font_size = 12
theme_override_font_sizes/normal_font_size = 13
bbcode_enabled = true
text = "[shake]Cole...!"
scroll_active = false
@ -137,7 +137,7 @@ offset_top = 6.0
offset_right = 142.0
offset_bottom = 68.0
theme_override_fonts/normal_font = ExtResource("10")
theme_override_font_sizes/normal_font_size = 16
theme_override_font_sizes/normal_font_size = 13
bbcode_enabled = true
text = "* . . ."
scroll_active = false
@ -174,7 +174,7 @@ offset_top = 74.0
offset_right = 142.0
offset_bottom = 94.0
theme_override_fonts/normal_font = ExtResource("11")
theme_override_font_sizes/normal_font_size = 12
theme_override_font_sizes/normal_font_size = 13
bbcode_enabled = true
text = "COLE LV 1 HP [img=7 color=#ffff00]res://Sprites/Menus/Menu Sprites/HPBar3.tres[/img][img=7 color=#ffff00]res://Sprites/Menus/Menu Sprites/HPBar3.tres[/img] 20 / 20"
scroll_active = false

View File

@ -1,13 +1,13 @@
[gd_scene load_steps=10 format=4]
[gd_scene load_steps=10 format=3 uid="uid://dil1lmhskfcbj"]
[ext_resource type="Script" path="res://Scripts/Bullets/MoveAhead.cs" id="1"]
[ext_resource type="Script" uid="uid://cms7aciv3ajt" path="res://Scripts/Bullets/MoveAhead.cs" id="1"]
[ext_resource type="Texture2D" path="res://Sprites/Bullets/Smoke.tres" id="2"]
[sub_resource type="CircleShape2D" id="CircleShape2D_k6xqa"]
radius = 17.0
[sub_resource type="Animation" id="Animation_6iwuj"]
length = 0.0010000000474974513
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
@ -43,7 +43,7 @@ _data = {
}
[sub_resource type="Animation" id="Animation_bwenb"]
length = 0.0010000000474974513
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true

View File

@ -1,18 +1,18 @@
[gd_scene load_steps=19 format=4]
[gd_scene load_steps=19 format=3 uid="uid://bnven10apnbkj"]
[ext_resource type="Script" path="res://Scripts/Room.cs" id="1"]
[ext_resource type="AudioStream" path="res://Audio/Music/nothing_but_the_truth.ogg" id="2"]
[ext_resource type="TileSet" path="res://Sprites/Tileset.tres" id="3"]
[ext_resource type="Script" path="res://Scripts/Events/ChujinDWEvents.cs" id="4"]
[ext_resource type="Script" path="res://Scripts/Common/CanSpawn.cs" id="5"]
[ext_resource type="Script" uid="uid://4qnuo8uar060" path="res://Scripts/Room.cs" id="1"]
[ext_resource type="AudioStream" uid="uid://g75ctmjof4hy" path="res://Audio/Music/nothing_but_the_truth.ogg" id="2"]
[ext_resource type="TileSet" uid="uid://kjbjarxy0x15" path="res://Sprites/Tileset.tres" id="3"]
[ext_resource type="Script" uid="uid://drm77u8ytskv7" path="res://Scripts/Events/ChujinDWEvents.cs" id="4"]
[ext_resource type="Script" uid="uid://dwqe4ft584vio" path="res://Scripts/Common/CanSpawn.cs" id="5"]
[ext_resource type="PackedScene" path="res://Objects/Characters/KanakoPC.tscn" id="6"]
[ext_resource type="Script" path="res://Scripts/Entities/NPC.cs" id="7"]
[ext_resource type="Script" path="res://Scripts/Actions/PlayDialogue.cs" id="8"]
[ext_resource type="Script" path="res://Scripts/Events/EventCaller.cs" id="9"]
[ext_resource type="Script" path="res://Scripts/Loadzone.cs" id="10"]
[ext_resource type="AudioStream" path="res://Audio/Sounds/snd_dooropen_ch1.wav" id="11"]
[ext_resource type="AudioStream" path="res://Audio/Sounds/snd_doorclose_ch1.wav" id="12"]
[ext_resource type="Script" path="res://Scripts/Check.cs" id="13"]
[ext_resource type="Script" uid="uid://c3sqc5ivg1mtv" path="res://Scripts/Entities/NPC.cs" id="7"]
[ext_resource type="Script" uid="uid://17m84i3bovc2" path="res://Scripts/Actions/PlayDialogue.cs" id="8"]
[ext_resource type="Script" uid="uid://bja8iltcbmvrn" path="res://Scripts/Events/EventCaller.cs" id="9"]
[ext_resource type="Script" uid="uid://jnhf46l2j8xf" path="res://Scripts/Loadzone.cs" id="10"]
[ext_resource type="AudioStream" uid="uid://djevh6m6xd8r7" path="res://Audio/Sounds/snd_dooropen_ch1.wav" id="11"]
[ext_resource type="AudioStream" uid="uid://cj1nx5mbp8teg" path="res://Audio/Sounds/snd_doorclose_ch1.wav" id="12"]
[ext_resource type="Script" uid="uid://cmth1k2shrt3t" path="res://Scripts/Check.cs" id="13"]
[sub_resource type="Resource" id="Resource_lcv38"]
script = ExtResource("8")

View File

@ -1,18 +1,18 @@
[gd_scene load_steps=20 format=4]
[gd_scene load_steps=20 format=3 uid="uid://bv4p0i227opt5"]
[ext_resource type="Script" path="res://Scripts/Room.cs" id="1"]
[ext_resource type="AudioStream" path="res://Audio/Music/computer_ambience.ogg" id="2"]
[ext_resource type="AudioStream" path="res://Audio/Music/enter_axis.ogg" id="3"]
[ext_resource type="AudioStream" path="res://Audio/Music/guns_blazing_geno.ogg" id="4"]
[ext_resource type="AudioStream" path="res://Audio/Music/steamworks_overworld.ogg" id="5"]
[ext_resource type="TileSet" path="res://Sprites/Tileset.tres" id="6"]
[ext_resource type="Script" path="res://Scripts/Events/ChujinDWEvents.cs" id="7"]
[ext_resource type="Script" uid="uid://4qnuo8uar060" path="res://Scripts/Room.cs" id="1"]
[ext_resource type="AudioStream" uid="uid://ch7rricuxm4d" path="res://Audio/Music/computer_ambience.ogg" id="2"]
[ext_resource type="AudioStream" uid="uid://bn573nxhuws27" path="res://Audio/Music/enter_axis.ogg" id="3"]
[ext_resource type="AudioStream" uid="uid://dhu8kqi855lw1" path="res://Audio/Music/guns_blazing_geno.ogg" id="4"]
[ext_resource type="AudioStream" uid="uid://d0x01vtygk2sq" path="res://Audio/Music/steamworks_overworld.ogg" id="5"]
[ext_resource type="TileSet" uid="uid://kjbjarxy0x15" path="res://Sprites/Tileset.tres" id="6"]
[ext_resource type="Script" uid="uid://drm77u8ytskv7" path="res://Scripts/Events/ChujinDWEvents.cs" id="7"]
[ext_resource type="PackedScene" path="res://Objects/Characters/Axis.tscn" id="8"]
[ext_resource type="Script" path="res://Scripts/Entities/NPC.cs" id="9"]
[ext_resource type="Script" uid="uid://c3sqc5ivg1mtv" path="res://Scripts/Entities/NPC.cs" id="9"]
[ext_resource type="PackedScene" path="res://Objects/Props/SavePoint.tscn" id="10"]
[ext_resource type="Script" path="res://Scripts/Loadzone.cs" id="11"]
[ext_resource type="Script" path="res://Scripts/Check.cs" id="12"]
[ext_resource type="Texture2D" path="res://Sprites/TILES.png" id="13"]
[ext_resource type="Script" uid="uid://jnhf46l2j8xf" path="res://Scripts/Loadzone.cs" id="11"]
[ext_resource type="Script" uid="uid://cmth1k2shrt3t" path="res://Scripts/Check.cs" id="12"]
[ext_resource type="Texture2D" uid="uid://by6qx200nrtq1" path="res://Sprites/TILES.png" id="13"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_bop7k"]
size = Vector2(20, 40)
@ -21,7 +21,7 @@ size = Vector2(20, 40)
size = Vector2(27, 258)
[sub_resource type="Animation" id="Animation_od6p4"]
length = 0.0010000000474974513
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true

View File

@ -1,12 +1,12 @@
[gd_scene load_steps=9 format=4]
[gd_scene load_steps=9 format=3 uid="uid://dw04bnil2fg48"]
[ext_resource type="Script" path="res://Scripts/Room.cs" id="1"]
[ext_resource type="AudioStream" path="res://Audio/Sounds/snd_step1.wav" id="2"]
[ext_resource type="AudioStream" path="res://Audio/Music/computer_ambience.ogg" id="3"]
[ext_resource type="TileSet" path="res://Sprites/Tileset.tres" id="4"]
[ext_resource type="Script" uid="uid://4qnuo8uar060" path="res://Scripts/Room.cs" id="1"]
[ext_resource type="AudioStream" uid="uid://bwx0pl0lknc7x" path="res://Audio/Sounds/snd_step1.wav" id="2"]
[ext_resource type="AudioStream" uid="uid://ch7rricuxm4d" path="res://Audio/Music/computer_ambience.ogg" id="3"]
[ext_resource type="TileSet" uid="uid://kjbjarxy0x15" path="res://Sprites/Tileset.tres" id="4"]
[ext_resource type="PackedScene" path="res://Objects/Props/SavePoint.tscn" id="5"]
[ext_resource type="Texture2D" path="res://Sprites/Props/Boxes.tres" id="6"]
[ext_resource type="Script" path="res://Scripts/Loadzone.cs" id="7"]
[ext_resource type="Script" uid="uid://jnhf46l2j8xf" path="res://Scripts/Loadzone.cs" id="7"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_f15l6"]
size = Vector2(20, 40)

View File

@ -1,17 +1,17 @@
[gd_scene load_steps=17 format=4]
[gd_scene load_steps=17 format=3 uid="uid://b627jxlfivt65"]
[ext_resource type="Script" path="res://Scripts/Room.cs" id="1"]
[ext_resource type="AudioStream" path="res://Audio/Music/steamworks_overworld.ogg" id="2"]
[ext_resource type="TileSet" path="res://Sprites/Tileset.tres" id="3"]
[ext_resource type="Script" path="res://Scripts/Events/ChujinDWEvents.cs" id="4"]
[ext_resource type="Texture2D" path="res://Sprites/Props/bg stuff.png" id="5"]
[ext_resource type="Script" path="res://Scripts/Check.cs" id="6"]
[ext_resource type="Texture2D" path="res://Sprites/Props/chujindwbg.png" id="7"]
[ext_resource type="Script" path="res://Scripts/Loadzone.cs" id="8"]
[ext_resource type="Script" uid="uid://4qnuo8uar060" path="res://Scripts/Room.cs" id="1"]
[ext_resource type="AudioStream" uid="uid://d0x01vtygk2sq" path="res://Audio/Music/steamworks_overworld.ogg" id="2"]
[ext_resource type="TileSet" uid="uid://kjbjarxy0x15" path="res://Sprites/Tileset.tres" id="3"]
[ext_resource type="Script" uid="uid://drm77u8ytskv7" path="res://Scripts/Events/ChujinDWEvents.cs" id="4"]
[ext_resource type="Texture2D" uid="uid://3mc0ocko1cag" path="res://Sprites/Props/bg stuff.png" id="5"]
[ext_resource type="Script" uid="uid://cmth1k2shrt3t" path="res://Scripts/Check.cs" id="6"]
[ext_resource type="Texture2D" uid="uid://b7a3vklyry1tn" path="res://Sprites/Props/chujindwbg.png" id="7"]
[ext_resource type="Script" uid="uid://jnhf46l2j8xf" path="res://Scripts/Loadzone.cs" id="8"]
[ext_resource type="PackedScene" path="res://Objects/Characters/Wrench.tscn" id="9"]
[ext_resource type="Script" path="res://Scripts/Entities/NPC.cs" id="10"]
[ext_resource type="Script" path="res://Scripts/Actions/PlayDialogue.cs" id="11"]
[ext_resource type="Script" path="res://Scripts/Events/EventCaller.cs" id="12"]
[ext_resource type="Script" uid="uid://c3sqc5ivg1mtv" path="res://Scripts/Entities/NPC.cs" id="10"]
[ext_resource type="Script" uid="uid://17m84i3bovc2" path="res://Scripts/Actions/PlayDialogue.cs" id="11"]
[ext_resource type="Script" uid="uid://bja8iltcbmvrn" path="res://Scripts/Events/EventCaller.cs" id="12"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ited8"]
size = Vector2(9, 13)

View File

@ -701,7 +701,7 @@ offset_right = 151.0
offset_bottom = 171.0
theme_override_colors/default_color = Color(1, 1, 1, 0.501961)
theme_override_fonts/normal_font = ExtResource("18")
theme_override_font_sizes/normal_font_size = 12
theme_override_font_sizes/normal_font_size = 13
bbcode_enabled = true
text = "INTERACT: Punch
CANCEL: Defend

View File

@ -1,19 +1,19 @@
[gd_scene load_steps=25 format=4]
[gd_scene load_steps=25 format=3 uid="uid://ccsk6i208lria"]
[ext_resource type="Script" path="res://Scripts/Room.cs" id="1"]
[ext_resource type="AudioStream" path="res://Audio/Music/basement.ogg" id="2"]
[ext_resource type="AudioStream" path="res://Audio/Music/kanako.ogg" id="3"]
[ext_resource type="TileSet" path="res://Sprites/Tileset.tres" id="4"]
[ext_resource type="Script" path="res://Scripts/Check.cs" id="5"]
[ext_resource type="Texture2D" path="res://Sprites/TILES.png" id="6"]
[ext_resource type="Script" path="res://Scripts/Common/CanSpawn.cs" id="7"]
[ext_resource type="Script" path="res://Scripts/Events/SchoolDWEvents.cs" id="8"]
[ext_resource type="Script" uid="uid://4qnuo8uar060" path="res://Scripts/Room.cs" id="1"]
[ext_resource type="AudioStream" uid="uid://cxul7aplxggby" path="res://Audio/Music/basement.ogg" id="2"]
[ext_resource type="AudioStream" uid="uid://cmwngw61w3lh6" path="res://Audio/Music/kanako.ogg" id="3"]
[ext_resource type="TileSet" uid="uid://kjbjarxy0x15" path="res://Sprites/Tileset.tres" id="4"]
[ext_resource type="Script" uid="uid://cmth1k2shrt3t" path="res://Scripts/Check.cs" id="5"]
[ext_resource type="Texture2D" uid="uid://by6qx200nrtq1" path="res://Sprites/TILES.png" id="6"]
[ext_resource type="Script" uid="uid://dwqe4ft584vio" path="res://Scripts/Common/CanSpawn.cs" id="7"]
[ext_resource type="Script" uid="uid://dyugjcaqve1ol" path="res://Scripts/Events/SchoolDWEvents.cs" id="8"]
[ext_resource type="PackedScene" path="res://Objects/Characters/Kanako.tscn" id="9"]
[ext_resource type="Script" path="res://Scripts/Entities/NPC.cs" id="10"]
[ext_resource type="Script" uid="uid://c3sqc5ivg1mtv" path="res://Scripts/Entities/NPC.cs" id="10"]
[ext_resource type="PackedScene" path="res://Objects/Characters/Warden.tscn" id="11"]
[ext_resource type="Script" path="res://Scripts/Loadzone.cs" id="12"]
[ext_resource type="Script" uid="uid://jnhf46l2j8xf" path="res://Scripts/Loadzone.cs" id="12"]
[ext_resource type="PackedScene" path="res://Objects/Characters/Penceller.tscn" id="13"]
[ext_resource type="Script" path="res://Scripts/Actions/PlayDialogue.cs" id="14"]
[ext_resource type="Script" uid="uid://17m84i3bovc2" path="res://Scripts/Actions/PlayDialogue.cs" id="14"]
[ext_resource type="PackedScene" path="res://Objects/Characters/Bearing.tscn" id="15"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_yyc40"]
@ -292,7 +292,7 @@ pos = Vector2(-368, -8)
position = Vector2(390, 0)
shape = SubResource("RectangleShape2D_a2dvu")
[node name="Penceller" parent="." node_paths=PackedStringArray("extras") instance=ExtResource("13")]
[node name="Penceller" parent="." instance=ExtResource("13")]
position = Vector2(-216, 27)
script = ExtResource("10")
spawn = null
@ -301,7 +301,6 @@ neededVar = PackedInt32Array()
neededCapture = 17
behaviours = [SubResource("Resource_hxo6x"), SubResource("Resource_imf0a")]
direction = 3
extras = []
[node name="Bearing" parent="." instance=ExtResource("15")]
position = Vector2(-54, -49)

View File

@ -1,33 +1,33 @@
[gd_scene load_steps=68 format=4]
[gd_scene load_steps=68 format=3 uid="uid://c5awcrhcbt2ty"]
[ext_resource type="Script" path="res://Scripts/Room.cs" id="1"]
[ext_resource type="AudioStream" path="res://Audio/Music/the_wild_east.ogg" id="2"]
[ext_resource type="AudioStream" path="res://Audio/Music/birdsofafeather.ogg" id="3"]
[ext_resource type="AudioStream" path="res://Audio/Music/acquittal.ogg" id="4"]
[ext_resource type="AudioStream" path="res://Audio/Music/delivery.ogg" id="5"]
[ext_resource type="AudioStream" path="res://Audio/Music/mixin_it_up.ogg" id="6"]
[ext_resource type="TileSet" path="res://Sprites/Tileset.tres" id="7"]
[ext_resource type="Script" path="res://Scripts/Events/LWDay1Events.cs" id="8"]
[ext_resource type="AudioStream" path="res://Audio/Sounds/snd_phone.wav" id="9"]
[ext_resource type="Texture2D" path="res://Sprites/Props/bg stuff.png" id="10"]
[ext_resource type="Script" path="res://Scripts/Common/CanSpawn.cs" id="11"]
[ext_resource type="Script" path="res://Scripts/Check.cs" id="12"]
[ext_resource type="Script" path="res://Scripts/Events/LWDay2Events.cs" id="13"]
[ext_resource type="Texture2D" path="res://Sprites/TILES.png" id="14"]
[ext_resource type="Texture2D" path="res://Sprites/Buildings/spr_martlets_house.png" id="15"]
[ext_resource type="Texture2D" path="res://Sprites/Buildings/spr_martlets_houseLight.png" id="16"]
[ext_resource type="Script" path="res://Scripts/Loadzone.cs" id="17"]
[ext_resource type="AudioStream" path="res://Audio/Sounds/snd_escaped.wav" id="18"]
[ext_resource type="Texture2D" path="res://Sprites/Buildings/ts_starlo_house.png" id="19"]
[ext_resource type="Texture2D" path="res://Sprites/Buildings/ts_starlo_houseLight.png" id="20"]
[ext_resource type="Texture2D" path="res://Sprites/Buildings/spr_wild_east_feisty_house.png" id="21"]
[ext_resource type="Texture2D" path="res://Sprites/Buildings/spr_wild_east_feisty_houseLight.png" id="22"]
[ext_resource type="Script" uid="uid://4qnuo8uar060" path="res://Scripts/Room.cs" id="1"]
[ext_resource type="AudioStream" uid="uid://c2soa53ka86lw" path="res://Audio/Music/the_wild_east.ogg" id="2"]
[ext_resource type="AudioStream" uid="uid://cyiqndrtn7472" path="res://Audio/Music/birdsofafeather.ogg" id="3"]
[ext_resource type="AudioStream" uid="uid://dy45av85jxh0" path="res://Audio/Music/acquittal.ogg" id="4"]
[ext_resource type="AudioStream" uid="uid://tw64qrl7djoe" path="res://Audio/Music/delivery.ogg" id="5"]
[ext_resource type="AudioStream" uid="uid://bqo1caalxce7d" path="res://Audio/Music/mixin_it_up.ogg" id="6"]
[ext_resource type="TileSet" uid="uid://kjbjarxy0x15" path="res://Sprites/Tileset.tres" id="7"]
[ext_resource type="Script" uid="uid://dhcedeox12us1" path="res://Scripts/Events/LWDay1Events.cs" id="8"]
[ext_resource type="AudioStream" uid="uid://cdo0g7e8lkm26" path="res://Audio/Sounds/snd_phone.wav" id="9"]
[ext_resource type="Texture2D" uid="uid://3mc0ocko1cag" path="res://Sprites/Props/bg stuff.png" id="10"]
[ext_resource type="Script" uid="uid://dwqe4ft584vio" path="res://Scripts/Common/CanSpawn.cs" id="11"]
[ext_resource type="Script" uid="uid://cmth1k2shrt3t" path="res://Scripts/Check.cs" id="12"]
[ext_resource type="Script" uid="uid://dk0p008j3ftk1" path="res://Scripts/Events/LWDay2Events.cs" id="13"]
[ext_resource type="Texture2D" uid="uid://by6qx200nrtq1" path="res://Sprites/TILES.png" id="14"]
[ext_resource type="Texture2D" uid="uid://bfcp1obflnrcp" path="res://Sprites/Buildings/spr_martlets_house.png" id="15"]
[ext_resource type="Texture2D" uid="uid://clx7xdtxt5wj8" path="res://Sprites/Buildings/spr_martlets_houseLight.png" id="16"]
[ext_resource type="Script" uid="uid://jnhf46l2j8xf" path="res://Scripts/Loadzone.cs" id="17"]
[ext_resource type="AudioStream" uid="uid://diry686f6lv8c" path="res://Audio/Sounds/snd_escaped.wav" id="18"]
[ext_resource type="Texture2D" uid="uid://dxw1bpiimjky3" path="res://Sprites/Buildings/ts_starlo_house.png" id="19"]
[ext_resource type="Texture2D" uid="uid://bdebtg5ep0p2h" path="res://Sprites/Buildings/ts_starlo_houseLight.png" id="20"]
[ext_resource type="Texture2D" uid="uid://csnfu1v8y8ggv" path="res://Sprites/Buildings/spr_wild_east_feisty_house.png" id="21"]
[ext_resource type="Texture2D" uid="uid://cuadlx7njti0f" path="res://Sprites/Buildings/spr_wild_east_feisty_houseLight.png" id="22"]
[ext_resource type="PackedScene" path="res://Objects/Props/Bench.tscn" id="23"]
[ext_resource type="Texture2D" path="res://Sprites/Props/nightbg.png" id="24"]
[ext_resource type="Texture2D" uid="uid://dnanfdhjq4k4n" path="res://Sprites/Props/nightbg.png" id="24"]
[ext_resource type="PackedScene" path="res://Objects/Characters/Martlet.tscn" id="25"]
[ext_resource type="PackedScene" path="res://Objects/Characters/CactusGirl.tscn" id="26"]
[ext_resource type="Script" path="res://Scripts/Entities/NPC.cs" id="27"]
[ext_resource type="Script" path="res://Scripts/Actions/PlayDialogue.cs" id="28"]
[ext_resource type="Script" uid="uid://c3sqc5ivg1mtv" path="res://Scripts/Entities/NPC.cs" id="27"]
[ext_resource type="Script" uid="uid://17m84i3bovc2" path="res://Scripts/Actions/PlayDialogue.cs" id="28"]
[ext_resource type="PackedScene" path="res://Objects/Characters/Ed.tscn" id="29"]
[ext_resource type="PackedScene" path="res://Objects/Characters/MailWhale.tscn" id="30"]
[ext_resource type="PackedScene" path="res://Objects/Characters/Kanako.tscn" id="31"]
@ -60,7 +60,7 @@ size = Vector2(20, 120)
size = Vector2(59, 14)
[sub_resource type="CircleShape2D" id="CircleShape2D_ns6o8"]
radius = 14.580599784851074
radius = 14.5806
[sub_resource type="RectangleShape2D" id="RectangleShape2D_d138w"]
size = Vector2(18, 53)
@ -105,8 +105,8 @@ needs = [7]
limit = null
[sub_resource type="Resource" id="Resource_sr8hc"]
script = ExtResource("28")
resource_name = "Day1"
script = ExtResource("28")
id = "EdD1"
isEvent = false
facePlayer = false
@ -117,8 +117,8 @@ needs = null
limit = null
[sub_resource type="Resource" id="Resource_5l5kx"]
script = ExtResource("28")
resource_name = "Day 1 - 2"
script = ExtResource("28")
id = "EdD1-2"
isEvent = false
facePlayer = false
@ -649,9 +649,9 @@ follow_viewport = false
[node name="night" type="TextureRect" parent="BG"]
modulate = Color(1, 0.744154, 0.609087, 1)
z_index = -3000
offset_top = 52.79999923706055
offset_top = 52.8
offset_right = 2025.0
offset_bottom = 243.8000030517578
offset_bottom = 243.8
texture = ExtResource("24")
expand_mode = 2
stretch_mode = 1

View File

@ -1,7 +1,7 @@
[gd_scene load_steps=4 format=4]
[gd_scene load_steps=4 format=3 uid="uid://d1jn0d3ie61l"]
[ext_resource type="Texture2D" path="res://Sprites/Menus/Menu Sprites/ActionCommand.tres" id="1"]
[ext_resource type="Script" path="res://Scripts/Battle/AttackActionCommand.cs" id="2"]
[ext_resource type="Script" uid="uid://bclgqdjomqe1n" path="res://Scripts/Battle/AttackActionCommand.cs" id="2"]
[ext_resource type="Texture2D" path="res://Sprites/Menus/Menu Sprites/ActionCommand2.tres" id="3"]
[node name="ActionCommand" type="Sprite2D" node_paths=PackedStringArray("bar")]

View File

@ -1,8 +1,8 @@
[gd_scene load_steps=4 format=3]
[gd_scene load_steps=4 format=3 uid="uid://du31ha8pnahkk"]
[ext_resource type="Texture2D" path="res://Sprites/Menus/bubblebox.png" id="1"]
[ext_resource type="FontFile" path="res://Fonts/dotumche-pixel.ttf" id="2"]
[ext_resource type="Texture2D" path="res://Sprites/Menus/bubbletail.png" id="3"]
[ext_resource type="Texture2D" uid="uid://dvlhpjphue0yl" path="res://Sprites/Menus/bubblebox.png" id="1"]
[ext_resource type="FontFile" uid="uid://ytkax5t82t5" path="res://Fonts/dotumche-pixel.ttf" id="2"]
[ext_resource type="Texture2D" uid="uid://dymka7gu5opca" path="res://Sprites/Menus/bubbletail.png" id="3"]
[node name="Control" type="Control"]
z_index = 3000

View File

@ -1,7 +1,7 @@
[gd_scene load_steps=3 format=4]
[gd_scene load_steps=3 format=3 uid="uid://c8ksni5hsd22l"]
[ext_resource type="Texture2D" path="res://Sprites/Characters/clover battle.png" id="1"]
[ext_resource type="FontFile" path="res://Fonts/DTM-Sans.otf" id="2"]
[ext_resource type="Texture2D" uid="uid://ltba3mmowfa2" path="res://Sprites/Characters/clover battle.png" id="1"]
[ext_resource type="FontFile" uid="uid://ds5fuu4nvfqdb" path="res://Fonts/DTM-Sans.otf" id="2"]
[node name="GameOverOpt" type="Control"]
layout_mode = 3

View File

@ -1,7 +1,7 @@
[gd_scene load_steps=5 format=4]
[gd_scene load_steps=5 format=3 uid="uid://c8vmsrfaqfm56"]
[ext_resource type="FontFile" path="res://Fonts/DTM-Sans.otf" id="1"]
[ext_resource type="Script" path="res://Scripts/UI/GenericList.cs" id="2"]
[ext_resource type="FontFile" uid="uid://ds5fuu4nvfqdb" path="res://Fonts/DTM-Sans.otf" id="1"]
[ext_resource type="Script" uid="uid://b00mj8vjvkgs0" path="res://Scripts/UI/GenericList.cs" id="2"]
[ext_resource type="PackedScene" path="res://Objects/UI/ScrollBar.tscn" id="3"]
[ext_resource type="Texture2D" path="res://Sprites/Menus/Menu Sprites/Soul.tres" id="4"]
@ -11,7 +11,7 @@ clip_contents = false
offset_right = 175.0
offset_bottom = 152.0
theme_override_fonts/normal_font = ExtResource("1")
theme_override_font_sizes/normal_font_size = 12
theme_override_font_sizes/normal_font_size = 13
bbcode_enabled = true
script = ExtResource("2")
soul = NodePath("Sprite2D")

View File

@ -324,7 +324,7 @@ offset_bottom = 23.0
grow_horizontal = 2
grow_vertical = 2
theme_override_fonts/normal_font = ExtResource("5")
theme_override_font_sizes/normal_font_size = 11
theme_override_font_sizes/normal_font_size = 13
bbcode_enabled = true
text = "[center]Cole LV 1 DLV 1
Location
@ -358,7 +358,7 @@ offset_bottom = 23.0
grow_horizontal = 2
grow_vertical = 2
theme_override_fonts/normal_font = ExtResource("5")
theme_override_font_sizes/normal_font_size = 11
theme_override_font_sizes/normal_font_size = 13
bbcode_enabled = true
text = "[center]Cole LV 1 DLV 1
Location
@ -392,7 +392,7 @@ offset_bottom = 23.0
grow_horizontal = 2
grow_vertical = 2
theme_override_fonts/normal_font = ExtResource("5")
theme_override_font_sizes/normal_font_size = 11
theme_override_font_sizes/normal_font_size = 13
bbcode_enabled = true
text = "[center]Cole LV 1 DLV 1
Location

View File

@ -15,6 +15,6 @@ offset_top = -20.0
offset_right = 184.0
offset_bottom = 26.0
theme_override_fonts/normal_font = ExtResource("2")
theme_override_font_sizes/normal_font_size = 11
theme_override_font_sizes/normal_font_size = 13
bbcode_enabled = true
scroll_active = false

View File

@ -90,7 +90,7 @@ offset_bottom = 20.0
scale = Vector2(0.63, 0.98)
theme_override_constants/line_separation = 3
theme_override_fonts/normal_font = ExtResource("4")
theme_override_font_sizes/normal_font_size = 11
theme_override_font_sizes/normal_font_size = 13
bbcode_enabled = true
text = "COLE"
scroll_active = false

View File

@ -10,7 +10,7 @@ clip_contents = false
offset_right = 175.0
offset_bottom = 152.0
theme_override_fonts/normal_font = ExtResource("1")
theme_override_font_sizes/normal_font_size = 12
theme_override_font_sizes/normal_font_size = 13
bbcode_enabled = true
text = "Music
Sound

View File

@ -48,7 +48,7 @@ theme_override_constants/shadow_offset_y = 1
theme_override_constants/shadow_offset_x = 1
theme_override_constants/line_separation = 3
theme_override_fonts/normal_font = ExtResource("4")
theme_override_font_sizes/normal_font_size = 11
theme_override_font_sizes/normal_font_size = 13
bbcode_enabled = true
text = "[center]Storage"
scroll_active = false
@ -65,7 +65,7 @@ theme_override_constants/shadow_offset_y = 1
theme_override_constants/shadow_offset_x = 1
theme_override_constants/line_separation = 3
theme_override_fonts/normal_font = ExtResource("4")
theme_override_font_sizes/normal_font_size = 11
theme_override_font_sizes/normal_font_size = 13
bbcode_enabled = true
text = "[center]On Hand"
scroll_active = false
@ -82,7 +82,7 @@ theme_override_constants/shadow_offset_y = 1
theme_override_constants/shadow_offset_x = 1
theme_override_constants/line_separation = 3
theme_override_fonts/normal_font = ExtResource("4")
theme_override_font_sizes/normal_font_size = 11
theme_override_font_sizes/normal_font_size = 13
bbcode_enabled = true
text = "item1
item2
@ -105,7 +105,7 @@ theme_override_constants/shadow_offset_y = 1
theme_override_constants/shadow_offset_x = 1
theme_override_constants/line_separation = 3
theme_override_fonts/normal_font = ExtResource("4")
theme_override_font_sizes/normal_font_size = 11
theme_override_font_sizes/normal_font_size = 13
bbcode_enabled = true
text = "item1
item2

View File

@ -5,115 +5,115 @@ using Godot;
public partial class SettingsFile
{
public int musVol = 30;
public int musVol = 30;
public int sfxVol = 30;
public int sfxVol = 30;
public int fpsMode;
public int fpsMode;
public bool run;
public bool run;
public bool swapKeys;
public bool swapKeys;
public bool autoFire;
public bool autoFire;
public bool fullScreen;
public bool fullScreen = true;
public Key[] keys = new Key[8]
{
Key.Up,
Key.Down,
Key.Left,
Key.Right,
Key.Z,
Key.X,
Key.C,
Key.Space
};
public Key[] keys = new Key[8]
{
Key.Up,
Key.Down,
Key.Left,
Key.Right,
Key.Z,
Key.X,
Key.C,
Key.Space
};
[NonSerialized]
[JsonIgnore]
public string lang = "EnUS";
[NonSerialized]
[JsonIgnore]
public string lang = "EnUS";
public static readonly HashSet<Key> allowed = new HashSet<Key>
{
Key.Up,
Key.Down,
Key.Left,
Key.Right,
Key.Shift,
Key.Alt,
Key.A,
Key.Ctrl,
Key.B,
Key.C,
Key.D,
Key.E,
Key.F,
Key.G,
Key.H,
Key.I,
Key.J,
Key.K,
Key.L,
Key.M,
Key.N,
Key.O,
Key.P,
Key.Q,
Key.R,
Key.S,
Key.T,
Key.U,
Key.V,
Key.W,
Key.X,
Key.Y,
Key.Z,
Key.Key0,
Key.Key1,
Key.Key2,
Key.Key3,
Key.Key4,
Key.Key5,
Key.Key6,
Key.Key7,
Key.Key8,
Key.Key9,
Key.Space,
Key.Slash,
Key.Colon,
Key.Period,
Key.Tab,
Key.Braceleft,
Key.Braceright,
Key.Bracketleft,
Key.Bracketright,
Key.Asterisk,
Key.Apostrophe,
Key.Question,
Key.Exclam,
Key.Quoteleft,
Key.End,
Key.Kp0,
Key.Kp1,
Key.Kp2,
Key.Kp3,
Key.Kp4,
Key.Kp5,
Key.Kp6,
Key.Kp7,
Key.Kp8,
Key.Kp9,
Key.KpAdd,
Key.KpDivide,
Key.KpEnter,
Key.KpMultiply,
Key.KpPeriod,
Key.KpSubtract,
Key.Underscore,
Key.At,
Key.Backspace,
Key.Enter
};
public static readonly HashSet<Key> allowed = new HashSet<Key>
{
Key.Up,
Key.Down,
Key.Left,
Key.Right,
Key.Shift,
Key.Alt,
Key.A,
Key.Ctrl,
Key.B,
Key.C,
Key.D,
Key.E,
Key.F,
Key.G,
Key.H,
Key.I,
Key.J,
Key.K,
Key.L,
Key.M,
Key.N,
Key.O,
Key.P,
Key.Q,
Key.R,
Key.S,
Key.T,
Key.U,
Key.V,
Key.W,
Key.X,
Key.Y,
Key.Z,
Key.Key0,
Key.Key1,
Key.Key2,
Key.Key3,
Key.Key4,
Key.Key5,
Key.Key6,
Key.Key7,
Key.Key8,
Key.Key9,
Key.Space,
Key.Slash,
Key.Colon,
Key.Period,
Key.Tab,
Key.Braceleft,
Key.Braceright,
Key.Bracketleft,
Key.Bracketright,
Key.Asterisk,
Key.Apostrophe,
Key.Question,
Key.Exclam,
Key.Quoteleft,
Key.End,
Key.Kp0,
Key.Kp1,
Key.Kp2,
Key.Kp3,
Key.Kp4,
Key.Kp5,
Key.Kp6,
Key.Kp7,
Key.Kp8,
Key.Kp9,
Key.KpAdd,
Key.KpDivide,
Key.KpEnter,
Key.KpMultiply,
Key.KpPeriod,
Key.KpSubtract,
Key.Underscore,
Key.At,
Key.Backspace,
Key.Enter
};
}

View File

@ -9,310 +9,310 @@ using Godot.NativeInterop;
[ScriptPath("res://Scripts/Main.cs")]
public partial class Main : Node2D
{
[Export(PropertyHint.None, "")]
public Color[] partyColors;
[Export(PropertyHint.None, "")]
public Color[] partyColors;
[Export(PropertyHint.None, "")]
public Label exitMes;
[Export(PropertyHint.None, "")]
public Label exitMes;
public static Main instance;
public static Main instance;
public static World2D worldSpace;
public static World2D worldSpace;
public static SceneTree tree;
public static SceneTree tree;
public static RandomNumberGenerator random;
public static RandomNumberGenerator random;
public static Coroutine inEvent;
public static Coroutine inEvent;
private static Timer clock;
private static Timer clock;
private static bool firstLoad;
private static bool firstLoad;
private float exitTime;
private float exitTime;
private const float exitWait = 180f;
private const float exitWait = 180f;
public static float deltaTime;
public static float deltaTime;
public static float physisDelta;
public static float physisDelta;
public static readonly Color colorWhite = new Color(1f, 1f, 1f);
public static readonly Color colorWhite = new Color(1f, 1f, 1f);
public static readonly Color colorClear = new Color(1f, 1f, 1f, 0f);
public static readonly Color colorClear = new Color(1f, 1f, 1f, 0f);
public static readonly Color colorClearB = new Color(0f, 0f, 0f, 0f);
public static readonly Color colorClearB = new Color(0f, 0f, 0f, 0f);
public static readonly Color colorDark = new Color(0.3f, 0.3f, 0.3f);
public static readonly Color colorDark = new Color(0.3f, 0.3f, 0.3f);
public static readonly Color colorTransparent = new Color(1f, 1f, 1f, 0.4f);
public static readonly Color colorTransparent = new Color(1f, 1f, 1f, 0.4f);
public static readonly Color colorGray = new Color(0.5f, 0.5f, 0.5f);
public static readonly Color colorGray = new Color(0.5f, 0.5f, 0.5f);
public static readonly Color colorYellow = new Color(1f, 1f, 0f);
public static readonly Color colorYellow = new Color(1f, 1f, 0f);
public static readonly Color colorGreen = new Color(0f, 1f, 0f);
public static readonly Color colorGreen = new Color(0f, 1f, 0f);
public static readonly Color colorBlack = new Color(0f, 0f, 0f);
public static readonly Color colorBlack = new Color(0f, 0f, 0f);
public static readonly Color colorRed = new Color(1f, 0f, 0f);
public static readonly Color colorRed = new Color(1f, 0f, 0f);
public static readonly Color colorCyan = new Color(0f, 1f, 1f);
public static readonly Color colorCyan = new Color(0f, 1f, 1f);
public static readonly Color colorBlue = new Color(0f, 0f, 1f);
public static readonly Color colorBlue = new Color(0f, 0f, 1f);
public static readonly Color colorGlow = new Color(2f, 2f, 2f);
public static readonly Color colorGlow = new Color(2f, 2f, 2f);
public static StringName[] keys = new StringName[12]
{
"Up", "Down", "Left", "Right", "Confirm", "Cancel", "Menu", "FastForward", "Escape", "Fullscreen",
"ResetBindings", "FPS"
};
public static StringName[] keys = new StringName[12]
{
"Up", "Down", "Left", "Right", "Confirm", "Cancel", "Menu", "FastForward", "Escape", "Fullscreen",
"ResetBindings", "FPS"
};
public override void _EnterTree()
{
instance = this;
CultureInfo.CurrentCulture = CultureInfo.InvariantCulture;
DisplayServer.WindowSetVsyncMode(DisplayServer.VSyncMode.Disabled);
worldSpace = GetWorld2D();
tree = GetTree();
random = new RandomNumberGenerator();
Room.current = null;
Timer node = new Timer
{
Name = "Clock",
WaitTime = 1.0,
Autostart = true,
OneShot = false
};
clock = node;
AddChild(node, forceReadableName: false, InternalMode.Disabled);
clock.Timeout += Clock;
SaveFile.current = new SaveFile();
SaveFile.current.lwItems.Add(Items.IDs.Hat);
SaveFile.current.activeParty.Add(0);
Party.SetUp();
Settings.LoadSettings();
Settings.file.lang = MainMenu.lastLang ?? "EnUS";
Texts.LoadText();
BattleDR.current = null;
BattleDR.reloadStats = null;
if (!firstLoad)
{
BattleDR.ShowFloatingText("999", Vector2.One * 999f);
}
if (CommonEvents.instance == null)
{
CommonEvents.instance = new CommonEvents();
}
AddChild(Audio.music = new AudioStreamPlayer
{
Name = "Music",
Bus = "Music"
}, forceReadableName: false, InternalMode.Disabled);
firstLoad = true;
UpdateFPS();
}
public override void _EnterTree()
{
instance = this;
CultureInfo.CurrentCulture = CultureInfo.InvariantCulture;
DisplayServer.WindowSetVsyncMode(DisplayServer.VSyncMode.Disabled);
worldSpace = GetWorld2D();
tree = GetTree();
random = new RandomNumberGenerator();
Room.current = null;
Timer node = new Timer
{
Name = "Clock",
WaitTime = 1.0,
Autostart = true,
OneShot = false
};
clock = node;
AddChild(node, forceReadableName: false, InternalMode.Disabled);
clock.Timeout += Clock;
SaveFile.current = new SaveFile();
SaveFile.current.lwItems.Add(Items.IDs.Hat);
SaveFile.current.activeParty.Add(0);
Party.SetUp();
Settings.LoadSettings();
Settings.file.lang = MainMenu.lastLang ?? "EnUS";
Texts.LoadText();
BattleDR.current = null;
BattleDR.reloadStats = null;
if (!firstLoad)
{
BattleDR.ShowFloatingText("999", Vector2.One * 999f);
}
if (CommonEvents.instance == null)
{
CommonEvents.instance = new CommonEvents();
}
AddChild(Audio.music = new AudioStreamPlayer
{
Name = "Music",
Bus = "Music"
}, forceReadableName: false, InternalMode.Disabled);
firstLoad = true;
UpdateFPS();
}
private void UpdateFPS()
{
switch (Settings.file.fpsMode)
{
case 0:
Engine.MaxFps = 60;
break;
case 1:
Engine.MaxFps = 30;
break;
case 2:
Engine.MaxFps = 0;
break;
}
}
private void UpdateFPS()
{
switch (Settings.file.fpsMode)
{
case 0:
Engine.MaxFps = 60;
break;
case 1:
Engine.MaxFps = 30;
break;
case 2:
Engine.MaxFps = 0;
break;
}
}
private void Clock()
{
SaveFile.current.time[0]++;
if (SaveFile.current.time[0] >= 60)
{
SaveFile.current.time[1]++;
SaveFile.current.time[0] = 0;
if (SaveFile.current.time[1] >= 60 && SaveFile.current.time[2] < 999)
{
SaveFile.current.time[2]++;
SaveFile.current.time[1] = 0;
}
}
}
private void Clock()
{
SaveFile.current.time[0]++;
if (SaveFile.current.time[0] >= 60)
{
SaveFile.current.time[1]++;
SaveFile.current.time[0] = 0;
if (SaveFile.current.time[1] >= 60 && SaveFile.current.time[2] < 999)
{
SaveFile.current.time[2]++;
SaveFile.current.time[1] = 0;
}
}
}
public override void _PhysicsProcess(double delta)
{
physisDelta = (float)delta * 60f;
}
public override void _PhysicsProcess(double delta)
{
physisDelta = (float)delta * 60f;
}
public void GCCollect()
{
GC.Collect();
}
public void GCCollect()
{
GC.Collect();
}
public override void _Process(double delta)
{
Coroutine coroutine = inEvent;
if (coroutine != null && coroutine.done)
{
inEvent = null;
if (Player.instance != null)
{
Player.instance.inputCD = 10f;
Player.instance.canInput = true;
Player.UpdateLastDir();
}
}
else if (inEvent != null && Player.instance != null)
{
Player.instance.waitForMove = true;
}
if (FightingGame.instance != null && !GodotObject.IsInstanceValid(FightingGame.instance))
{
FightingGame.instance = null;
}
deltaTime = (float)delta * 60f;
Coroutine.DoLoop();
if (Input.IsActionJustPressed(keys[10]))
{
Settings.file.keys = new Key[8]
{
Key.Up,
Key.Down,
Key.Left,
Key.Right,
Key.Z,
Key.X,
Key.C,
Key.Space
};
Settings.UpdateKeys();
}
if (Input.IsActionJustPressed(keys[11]))
{
Settings.file.fpsMode++;
if (Settings.file.fpsMode >= 3)
{
Settings.file.fpsMode = 0;
}
UpdateFPS();
}
if (Input.IsActionJustPressed(keys[9]))
{
Settings.file.fullScreen = !Settings.file.fullScreen;
Settings.UpdateWindow();
}
if (Input.IsActionPressed(keys[8]))
{
exitTime += deltaTime;
exitMes.Modulate = colorClear.Lerp(colorWhite, exitTime / 180f * 2f);
if (exitTime >= 180f)
{
tree.Quit();
}
}
else if (exitTime > 0f)
{
exitMes.Modulate = colorClear;
exitTime = 0f;
}
}
public override void _Process(double delta)
{
Coroutine coroutine = inEvent;
if (coroutine != null && coroutine.done)
{
inEvent = null;
if (Player.instance != null)
{
Player.instance.inputCD = 10f;
Player.instance.canInput = true;
Player.UpdateLastDir();
}
}
else if (inEvent != null && Player.instance != null)
{
Player.instance.waitForMove = true;
}
if (FightingGame.instance != null && !GodotObject.IsInstanceValid(FightingGame.instance))
{
FightingGame.instance = null;
}
deltaTime = (float)delta * 60f;
Coroutine.DoLoop();
if (Input.IsActionJustPressed(keys[10]))
{
Settings.file.keys = new Key[8]
{
Key.Up,
Key.Down,
Key.Left,
Key.Right,
Key.Z,
Key.X,
Key.C,
Key.Space
};
Settings.UpdateKeys();
}
if (Input.IsActionJustPressed(keys[11]))
{
Settings.file.fpsMode++;
if (Settings.file.fpsMode >= 3)
{
Settings.file.fpsMode = 0;
}
UpdateFPS();
}
if (Input.IsActionJustPressed(keys[9]))
{
Settings.file.fullScreen = !Settings.file.fullScreen;
Settings.UpdateWindow();
}
if (Input.IsActionPressed(keys[8]))
{
exitTime += deltaTime;
exitMes.Modulate = colorClear.Lerp(colorWhite, exitTime / 180f * 2f);
if (exitTime >= 180f)
{
tree.Quit();
}
}
else if (exitTime > 0f)
{
exitMes.Modulate = colorClear;
exitTime = 0f;
}
}
public static Node Particle(StringName name, Vector2 pos, int? sort = null, Node parent = null, bool localSpace = true)
{
Node node = GD.Load<PackedScene>(string.Concat("res://Objects/Particles/", name, ".tscn")).Instantiate(PackedScene.GenEditState.Disabled);
if (parent == null)
{
instance.AddChild(node, forceReadableName: false, InternalMode.Disabled);
}
else
{
parent.AddChild(node, forceReadableName: false, InternalMode.Disabled);
}
if (sort.HasValue && node is Node2D node2D)
{
node2D.ZIndex = sort.Value;
}
if (node is CpuParticles2D cpuParticles2D)
{
cpuParticles2D.Emitting = true;
if (localSpace)
{
cpuParticles2D.Position = pos;
}
else
{
cpuParticles2D.GlobalPosition = pos;
}
}
else if (node is Node2D node2D2)
{
if (localSpace)
{
node2D2.Position = pos;
}
else
{
node2D2.GlobalPosition = pos;
}
}
return node;
}
public static Node Particle(StringName name, Vector2 pos, int? sort = null, Node parent = null, bool localSpace = true)
{
Node node = GD.Load<PackedScene>(string.Concat("res://Objects/Particles/", name, ".tscn")).Instantiate(PackedScene.GenEditState.Disabled);
if (parent == null)
{
instance.AddChild(node, forceReadableName: false, InternalMode.Disabled);
}
else
{
parent.AddChild(node, forceReadableName: false, InternalMode.Disabled);
}
if (sort.HasValue && node is Node2D node2D)
{
node2D.ZIndex = sort.Value;
}
if (node is CpuParticles2D cpuParticles2D)
{
cpuParticles2D.Emitting = true;
if (localSpace)
{
cpuParticles2D.Position = pos;
}
else
{
cpuParticles2D.GlobalPosition = pos;
}
}
else if (node is Node2D node2D2)
{
if (localSpace)
{
node2D2.Position = pos;
}
else
{
node2D2.GlobalPosition = pos;
}
}
return node;
}
public static Vector2 GetDirection()
{
Vector2 zero = Vector2.Zero;
if (Input.IsActionPressed(keys[0]))
{
zero += Vector2.Up;
}
else if (Input.IsActionPressed(keys[1]))
{
zero += Vector2.Down;
}
if (Input.IsActionPressed(keys[2]))
{
zero += Vector2.Left;
}
else if (Input.IsActionPressed(keys[3]))
{
zero += Vector2.Right;
}
return zero;
}
public static Vector2 GetDirection()
{
Vector2 zero = Vector2.Zero;
if (Input.IsActionPressed(keys[0]))
{
zero += Vector2.Up;
}
else if (Input.IsActionPressed(keys[1]))
{
zero += Vector2.Down;
}
if (Input.IsActionPressed(keys[2]))
{
zero += Vector2.Left;
}
else if (Input.IsActionPressed(keys[3]))
{
zero += Vector2.Right;
}
return zero;
}
public static float Repeat(float value, float max)
{
return Mathf.Clamp(value - Mathf.Floor(value / max) * max, 0f, max);
}
public static float Repeat(float value, float max)
{
return Mathf.Clamp(value - Mathf.Floor(value / max) * max, 0f, max);
}
public static int RandomRange(int min, int max)
{
random.Randomize();
return random.RandiRange(min, max);
}
public static int RandomRange(int min, int max)
{
random.Randomize();
return random.RandiRange(min, max);
}
public static float RandomRange(float min, float max)
{
random.Randomize();
return random.RandfRange(min, max);
}
public static float RandomRange(float min, float max)
{
random.Randomize();
return random.RandfRange(min, max);
}
public static void SetActive(Node2D node, bool state)
{
node.ProcessMode = (ProcessModeEnum)(state ? 0 : 4);
node.Visible = state;
}
public static void SetActive(Node2D node, bool state)
{
node.ProcessMode = (ProcessModeEnum)(state ? 0 : 4);
node.Visible = state;
}
public static void SetActive(Control node, bool state)
{
node.ProcessMode = (ProcessModeEnum)(state ? 0 : 4);
node.Visible = state;
}
public static void SetActive(Control node, bool state)
{
node.ProcessMode = (ProcessModeEnum)(state ? 0 : 4);
node.Visible = state;
}
}
}

View File

@ -10,281 +10,281 @@ using Newtonsoft.Json;
[ScriptPath("res://Scripts/UI/Settings.cs")]
public partial class Settings : RichTextLabel
{
public enum SettingIndex
{
MusicVol,
SFXVol,
AlwaysRun,
AutoFire,
Fullscreen,
Inputs,
Return,
Exit
}
public enum SettingIndex
{
MusicVol,
SFXVol,
AlwaysRun,
AutoFire,
Fullscreen,
Inputs,
Return,
Exit
}
private Coroutine doingInputs;
private Coroutine doingInputs;
public static SettingsFile file = new SettingsFile();
public static SettingsFile file = new SettingsFile();
[Export(PropertyHint.None, "")]
private Sprite2D soul;
[Export(PropertyHint.None, "")]
private Sprite2D soul;
private int option;
private int option;
private bool wait;
private bool wait;
private const int max = 7;
private const int max = 7;
private const string path = "user://Settings.dat";
private const string path = "user://Settings.dat";
private Key? lastKey;
private Key? lastKey;
private int currentKey;
private int currentKey;
public override void _EnterTree()
{
base.Text = Texts.common[59].Replace("@", "\t") + file.musVol + "%\n" + Texts.common[60].Replace("@", "\t") + file.sfxVol + "%\n" + Texts.common[61].Replace("@", "\t") + (file.run ? "ON" : "OFF") + "\n" + Texts.common[62].Replace("@", "\t") + (file.autoFire ? "ON" : "OFF") + "\n" + Texts.common[63].Replace("@", "\t") + (file.fullScreen ? "ON" : "OFF") + "\n" + Texts.common[64] + "\n" + Texts.common[65] + "\n";
if (MainMenu.instance == null)
{
base.Text += Texts.common[66];
}
else
{
base.Text += Texts.common[67];
}
}
public override void _EnterTree()
{
base.Text = Texts.common[59].Replace("@", "\t") + file.musVol + "%\n" + Texts.common[60].Replace("@", "\t") + file.sfxVol + "%\n" + Texts.common[61].Replace("@", "\t") + (file.run ? "ON" : "OFF") + "\n" + Texts.common[62].Replace("@", "\t") + (file.autoFire ? "ON" : "OFF") + "\n" + Texts.common[63].Replace("@", "\t") + (file.fullScreen ? "ON" : "OFF") + "\n" + Texts.common[64] + "\n" + Texts.common[65] + "\n";
if (MainMenu.instance == null)
{
base.Text += Texts.common[66];
}
else
{
base.Text += Texts.common[67];
}
}
public override void _Process(double delta)
{
Coroutine coroutine = doingInputs;
if (coroutine != null && coroutine.done)
{
doingInputs = null;
}
if (doingInputs != null)
{
return;
}
if (!wait)
{
wait = true;
return;
}
soul.Position = new Vector2(-8f, 8 + option * 15);
if (Input.IsActionJustPressed(Main.keys[0]))
{
if (option > 0)
{
option--;
}
Audio.PlaySound(Audio.commonSounds[0]);
}
else if (Input.IsActionJustPressed(Main.keys[1]))
{
if (option < 7)
{
option++;
}
Audio.PlaySound(Audio.commonSounds[0]);
}
else if (Input.IsActionJustPressed(Main.keys[2]))
{
ToggleSettings(-1);
Audio.PlaySound(Audio.commonSounds[0]);
}
else if (Input.IsActionJustPressed(Main.keys[3]))
{
ToggleSettings(1);
Audio.PlaySound(Audio.commonSounds[0]);
}
else if (Input.IsActionJustPressed(Main.keys[4]))
{
ToggleSettings(1);
Audio.PlaySound(Audio.commonSounds[2]);
}
else if (Input.IsActionJustPressed(Main.keys[5]))
{
Audio.PlaySound(Audio.commonSounds[2]);
SaveSettings();
QueueFree();
}
}
public override void _Process(double delta)
{
Coroutine coroutine = doingInputs;
if (coroutine != null && coroutine.done)
{
doingInputs = null;
}
if (doingInputs != null)
{
return;
}
if (!wait)
{
wait = true;
return;
}
soul.Position = new Vector2(-8f, 8 + option * 15);
if (Input.IsActionJustPressed(Main.keys[0]))
{
if (option > 0)
{
option--;
}
Audio.PlaySound(Audio.commonSounds[0]);
}
else if (Input.IsActionJustPressed(Main.keys[1]))
{
if (option < 7)
{
option++;
}
Audio.PlaySound(Audio.commonSounds[0]);
}
else if (Input.IsActionJustPressed(Main.keys[2]))
{
ToggleSettings(-1);
Audio.PlaySound(Audio.commonSounds[0]);
}
else if (Input.IsActionJustPressed(Main.keys[3]))
{
ToggleSettings(1);
Audio.PlaySound(Audio.commonSounds[0]);
}
else if (Input.IsActionJustPressed(Main.keys[4]))
{
ToggleSettings(1);
Audio.PlaySound(Audio.commonSounds[2]);
}
else if (Input.IsActionJustPressed(Main.keys[5]))
{
Audio.PlaySound(Audio.commonSounds[2]);
SaveSettings();
QueueFree();
}
}
private void ToggleSettings(int i)
{
switch ((SettingIndex)option)
{
case SettingIndex.SFXVol:
file.sfxVol = Mathf.Clamp(file.sfxVol + i * 10, 0, 100);
UpdateVolume();
break;
case SettingIndex.MusicVol:
file.musVol = Mathf.Clamp(file.musVol + i * 10, 0, 100);
UpdateVolume();
break;
case SettingIndex.AutoFire:
file.autoFire = !file.autoFire;
break;
case SettingIndex.Exit:
SaveSettings();
if (MainMenu.instance == null)
{
CameraController.instance.GlobalPosition = Vector2.Zero;
GetTree().ReloadCurrentScene();
}
else
{
GetTree().Quit();
}
break;
case SettingIndex.Inputs:
doingInputs = Coroutine.Start(InputRebind());
break;
case SettingIndex.Return:
SaveSettings();
QueueFree();
break;
case SettingIndex.AlwaysRun:
file.run = !file.run;
break;
case SettingIndex.Fullscreen:
file.fullScreen = !file.fullScreen;
break;
}
_EnterTree();
}
private void ToggleSettings(int i)
{
switch ((SettingIndex)option)
{
case SettingIndex.SFXVol:
file.sfxVol = Mathf.Clamp(file.sfxVol + i * 10, 0, 100);
UpdateVolume();
break;
case SettingIndex.MusicVol:
file.musVol = Mathf.Clamp(file.musVol + i * 10, 0, 100);
UpdateVolume();
break;
case SettingIndex.AutoFire:
file.autoFire = !file.autoFire;
break;
case SettingIndex.Exit:
SaveSettings();
if (MainMenu.instance == null)
{
CameraController.instance.GlobalPosition = Vector2.Zero;
GetTree().ReloadCurrentScene();
}
else
{
GetTree().Quit();
}
break;
case SettingIndex.Inputs:
doingInputs = Coroutine.Start(InputRebind());
break;
case SettingIndex.Return:
SaveSettings();
QueueFree();
break;
case SettingIndex.AlwaysRun:
file.run = !file.run;
break;
case SettingIndex.Fullscreen:
file.fullScreen = !file.fullScreen;
break;
}
_EnterTree();
}
public static void SaveSettings()
{
FileAccess fileAccess = FileAccess.Open("user://Settings.dat", FileAccess.ModeFlags.Write);
fileAccess.StoreString(JsonConvert.SerializeObject(file));
fileAccess.Close();
ApplySettings();
}
public static void SaveSettings()
{
FileAccess fileAccess = FileAccess.Open("user://Settings.dat", FileAccess.ModeFlags.Write);
fileAccess.StoreString(JsonConvert.SerializeObject(file));
fileAccess.Close();
ApplySettings();
}
public override void _Input(InputEvent @event)
{
if (doingInputs != null && !lastKey.HasValue && @event is InputEventKey inputEventKey)
{
if (SettingsFile.allowed.Contains(inputEventKey.Keycode))
{
lastKey = inputEventKey.Keycode;
}
else
{
Audio.PlaySound(Audio.commonSounds[1]);
}
}
}
public override void _Input(InputEvent @event)
{
if (doingInputs != null && !lastKey.HasValue && @event is InputEventKey inputEventKey)
{
if (SettingsFile.allowed.Contains(inputEventKey.Keycode))
{
lastKey = inputEventKey.Keycode;
}
else
{
Audio.PlaySound(Audio.commonSounds[1]);
}
}
}
private IEnumerator InputRebind()
{
int[] k = new int[8] { 68, 69, 70, 71, 72, 73, 74, 90 };
soul.Visible = false;
base.Text = "";
while (Input.IsAnythingPressed())
{
yield return null;
}
yield return null;
lastKey = null;
for (int currentKey = 0; currentKey < k.Length; currentKey++)
{
Array<InputEvent> array = InputMap.ActionGetEvents(Main.keys[currentKey]);
base.Text = Texts.common[75].Replace("@", "\n" + Texts.common[k[currentKey]]) + "\n" + Texts.common[94].Replace("#", ((InputEventKey)array[0]).Keycode.ToString()) + "\n" + Texts.common[76] + "\n\n" + Texts.common[95].Replace("@", "\n");
while (true)
{
if (Input.IsActionJustPressed(Main.keys[8]))
{
while (Input.IsAnythingPressed())
{
yield return null;
}
break;
}
if (lastKey.HasValue)
{
file.keys[currentKey] = lastKey.Value;
while (Input.IsAnythingPressed())
{
yield return null;
}
lastKey = null;
break;
}
yield return null;
}
}
soul.Visible = true;
UpdateKeys();
_EnterTree();
}
private IEnumerator InputRebind()
{
int[] k = new int[8] { 68, 69, 70, 71, 72, 73, 74, 90 };
soul.Visible = false;
base.Text = "";
while (Input.IsAnythingPressed())
{
yield return null;
}
yield return null;
lastKey = null;
for (int currentKey = 0; currentKey < k.Length; currentKey++)
{
Array<InputEvent> array = InputMap.ActionGetEvents(Main.keys[currentKey]);
base.Text = Texts.common[75].Replace("@", "\n" + Texts.common[k[currentKey]]) + "\n" + Texts.common[94].Replace("#", ((InputEventKey)array[0]).Keycode.ToString()) + "\n" + Texts.common[76] + "\n\n" + Texts.common[95].Replace("@", "\n");
while (true)
{
if (Input.IsActionJustPressed(Main.keys[8]))
{
while (Input.IsAnythingPressed())
{
yield return null;
}
break;
}
if (lastKey.HasValue)
{
file.keys[currentKey] = lastKey.Value;
while (Input.IsAnythingPressed())
{
yield return null;
}
lastKey = null;
break;
}
yield return null;
}
}
soul.Visible = true;
UpdateKeys();
_EnterTree();
}
public static void UpdateKeys()
{
for (int i = 0; i < 8; i++)
{
((InputEventKey)InputMap.ActionGetEvents(Main.keys[i])[0]).Keycode = file.keys[i];
}
}
public static void UpdateKeys()
{
for (int i = 0; i < 8; i++)
{
((InputEventKey)InputMap.ActionGetEvents(Main.keys[i])[0]).Keycode = file.keys[i];
}
}
public static void LoadSettings()
{
if (FileAccess.FileExists("user://Settings.dat"))
{
try
{
FileAccess fileAccess = FileAccess.Open("user://Settings.dat", FileAccess.ModeFlags.Read);
file = JsonConvert.DeserializeObject<SettingsFile>(fileAccess.GetAsText());
fileAccess.Close();
}
catch
{
GD.Print("Settings file invalid, skipping...");
}
}
ApplySettings();
}
public static void LoadSettings()
{
if (FileAccess.FileExists("user://Settings.dat"))
{
try
{
FileAccess fileAccess = FileAccess.Open("user://Settings.dat", FileAccess.ModeFlags.Read);
file = JsonConvert.DeserializeObject<SettingsFile>(fileAccess.GetAsText());
fileAccess.Close();
}
catch
{
GD.Print("Settings file invalid, skipping...");
}
}
ApplySettings();
}
private static void ApplySettings()
{
try
{
UpdateVolume();
UpdateKeys();
UpdateWindow();
}
catch
{
GD.Print("Settings file invalid, skipping...");
}
}
private static void ApplySettings()
{
try
{
UpdateVolume();
UpdateKeys();
UpdateWindow();
}
catch
{
GD.Print("Settings file invalid, skipping...");
}
}
public static void UpdateWindow()
{
if (!Engine.IsEmbeddedInEditor())
{
if (file.fullScreen)
{
Main.tree.Root.ContentScaleStretch = Window.ContentScaleStretchEnum.Fractional;
DisplayServer.WindowSetMode(DisplayServer.WindowMode.Fullscreen);
return;
}
Main.tree.Root.ContentScaleStretch = Window.ContentScaleStretchEnum.Integer;
DisplayServer.WindowSetMode(DisplayServer.WindowMode.Windowed);
DisplayServer.WindowSetSize(new Vector2I(641, 480));
Window window = Main.instance.GetWindow();
Rect2I rect2I = DisplayServer.ScreenGetUsableRect(window.CurrentScreen);
Vector2I sizeWithDecorations = window.GetSizeWithDecorations();
window.Position = rect2I.Position + (rect2I.Size / 2 - sizeWithDecorations / 2);
DisplayServer.WindowSetSize(new Vector2I(640, 480));
}
}
public static void UpdateWindow()
{
if (!Engine.IsEmbeddedInEditor())
{
if (file.fullScreen)
{
Main.tree.Root.ContentScaleStretch = Window.ContentScaleStretchEnum.Fractional;
DisplayServer.WindowSetMode(DisplayServer.WindowMode.Fullscreen);
return;
}
Main.tree.Root.ContentScaleStretch = Window.ContentScaleStretchEnum.Integer;
DisplayServer.WindowSetMode(DisplayServer.WindowMode.Windowed);
DisplayServer.WindowSetSize(new Vector2I(641, 480));
Window window = Main.instance.GetWindow();
Rect2I rect2I = DisplayServer.ScreenGetUsableRect(window.CurrentScreen);
Vector2I sizeWithDecorations = window.GetSizeWithDecorations();
window.Position = rect2I.Position + (rect2I.Size / 2 - sizeWithDecorations / 2);
DisplayServer.WindowSetSize(new Vector2I(768, 480));
}
}
private static void UpdateVolume()
{
AudioServer.SetBusVolumeDb(AudioServer.GetBusIndex("Music"), Mathf.LinearToDb((float)file.musVol / 100f));
AudioServer.SetBusVolumeDb(AudioServer.GetBusIndex("Sound"), Mathf.LinearToDb((float)file.sfxVol / 100f));
}
private static void UpdateVolume()
{
AudioServer.SetBusVolumeDb(AudioServer.GetBusIndex("Music"), Mathf.LinearToDb((float)file.musVol / 100f));
AudioServer.SetBusVolumeDb(AudioServer.GetBusIndex("Sound"), Mathf.LinearToDb((float)file.sfxVol / 100f));
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -22,10 +22,9 @@ config/icon="res://Sprites/Menus/icon.png"
[display]
window/size/viewport_width=640
window/size/viewport_width=768
window/size/viewport_height=480
window/stretch/mode="canvas_items"
window/stretch/scale_mode="integer"
window/stretch/mode="viewport"
window/vsync/vsync_mode=0
[dotnet]