diff --git a/MockBattle/datas/attack_command.json b/MockBattle/datas/attack_command.json new file mode 100644 index 0000000..25d9791 --- /dev/null +++ b/MockBattle/datas/attack_command.json @@ -0,0 +1,42 @@ +[ + { + "id": 6, + "skill_id": 1 + }, + { + "id": 6, + "skill_id": 2 + }, + { + "id": 7, + "skill_id": 1 + }, + { + "id": 7, + "skill_id": 2 + }, + { + "id": 8, + "skill_id": 1 + }, + { + "id": 8, + "skill_id": 2 + }, + { + "id": 9, + "skill_id": 1 + }, + { + "id": 9, + "skill_id": 2 + }, + { + "id": 10, + "skill_id": 1 + }, + { + "id": 10, + "skill_id": 2 + } +] \ No newline at end of file diff --git a/MockBattle/datas/attack_position.json b/MockBattle/datas/attack_position.json new file mode 100644 index 0000000..ec747fa --- /dev/null +++ b/MockBattle/datas/attack_position.json @@ -0,0 +1 @@ +null \ No newline at end of file diff --git a/MockBattle/datas/defense_command.json b/MockBattle/datas/defense_command.json new file mode 100644 index 0000000..bddb7e6 --- /dev/null +++ b/MockBattle/datas/defense_command.json @@ -0,0 +1,57 @@ +[ + { + "id": 20231207, + "skill_id": 1 + }, + { + "id": 1, + "skill_id": 2 + }, + { + "id": 1, + "skill_id": 0, + "meta": 1, + }, + { + "id": 2, + "skill_id": 1 + }, + { + "id": 2, + "skill_id": 2 + }, + { + "id": 1, + "skill_id": 0, + "meta": 0, + }, + { + "id": 3, + "skill_id": 1 + }, + { + "id": 3, + "skill_id": 2 + }, + { + "id": 1, + "skill_id": 0, + "meta": 1, + }, + { + "id": 4, + "skill_id": 1 + }, + { + "id": 4, + "skill_id": 2 + }, + { + "id": 5, + "skill_id": 1 + }, + { + "id": 5, + "skill_id": 2 + }, +] \ No newline at end of file diff --git a/MockBattle/datas/defense_position.json b/MockBattle/datas/defense_position.json new file mode 100644 index 0000000..ec747fa --- /dev/null +++ b/MockBattle/datas/defense_position.json @@ -0,0 +1 @@ +null \ No newline at end of file diff --git a/MockBattle/datas/defense_position_original.json b/MockBattle/datas/defense_position_original.json new file mode 100644 index 0000000..7993aeb --- /dev/null +++ b/MockBattle/datas/defense_position_original.json @@ -0,0 +1,28 @@ +[ + [ + { + "type": character_type.JJAJANG, + "id": 1 + } + ], + [ + { + "type": character_type.JJAMBBONG, + "id": 2 + }, + { + "type": character_type.JJAMBBONG, + "id": 3 + }, + ], + [ + { + "type": character_type.CAKE, + "id": 4 + }, + { + "type": character_type.JJAMBBONG, + "id": 5 + }, + ] +] \ No newline at end of file diff --git a/MockBattle/datas/original.txt b/MockBattle/datas/original.txt new file mode 100644 index 0000000..bdfc57f --- /dev/null +++ b/MockBattle/datas/original.txt @@ -0,0 +1,159 @@ +var defense_position = [ + [ + { + "type": character_type.JJAJANG, + "id": 1 + } + ], + [ + { + "type": character_type.JJAMBBONG, + "id": 2 + }, + { + "type": character_type.JJAMBBONG, + "id": 3 + }, + ], + [ + { + "type": character_type.CAKE, + "id": 4 + }, + { + "type": character_type.JJAMBBONG, + "id": 5 + }, + ] +] + +var defense_command = [ + { + "id": 1, + "skill_id": 1 + }, + { + "id": 1, + "skill_id": 2 + }, + { + "id": 1, + "skill_id": 0, + "meta": 1, + }, + { + "id": 2, + "skill_id": 1 + }, + { + "id": 2, + "skill_id": 2 + }, + { + "id": 1, + "skill_id": 0, + "meta": 0, + }, + { + "id": 3, + "skill_id": 1 + }, + { + "id": 3, + "skill_id": 2 + }, + { + "id": 1, + "skill_id": 0, + "meta": 1, + }, + { + "id": 4, + "skill_id": 1 + }, + { + "id": 4, + "skill_id": 2 + }, + { + "id": 5, + "skill_id": 1 + }, + { + "id": 5, + "skill_id": 2 + }, +] + +var attack_position = [ + [ + { + "type": character_type.CAKE, + "id": 6 + }, + { + "type": character_type.MILK_SHAKE, + "id": 7 + }, + { + "type": character_type.JJAJANG, + "id": 8 + } + ], + [ + { + "type": character_type.JJAJANG, + "id": 9 + } + ], + [ + { + "type": character_type.JJAMBBONG, + "id": 10 + }, + ] +] + +var attack_command = [ + { + "id": 6, + "skill_id": 1 + }, + { + "id": 6, + "skill_id": 2 + }, + { + "id": 7, + "skill_id": 1 + }, + { + "id": 7, + "skill_id": 2 + }, + { + "id": 8, + "skill_id": 1 + }, + { + "id": 8, + "skill_id": 2 + }, + { + "id": 9, + "skill_id": 1 + }, + { + "id": 9, + "skill_id": 2 + }, + { + "id": 10, + "skill_id": 1 + }, + { + "id": 10, + "skill_id": 2 + } +] + diff --git a/MockBattle/project.godot b/MockBattle/project.godot index 92a6ffe..7f750c9 100644 --- a/MockBattle/project.godot +++ b/MockBattle/project.godot @@ -19,6 +19,7 @@ config/icon="res://icon.png" Settings="*res://singletons/settings.gd" FrameCounter="*res://singletons/frame_counter.gd" +GameData="*res://singletons/game_data.gd" [display] @@ -26,6 +27,10 @@ window/size/viewport_width=1920 window/size/viewport_height=1080 window/stretch/mode="viewport" +[dotnet] + +project/assembly_name="Mock Battle" + [gui] common/drop_mouse_on_gui_input_disabled=true diff --git a/MockBattle/scenes/levels/setE1AB.tmp b/MockBattle/scenes/levels/setE1AB.tmp new file mode 100644 index 0000000..3b0b6cb --- /dev/null +++ b/MockBattle/scenes/levels/setE1AB.tmp @@ -0,0 +1,167 @@ +[gd_scene load_steps=10 format=3 uid="uid://bn2fpsxxx8uyq"] + +[ext_resource type="FontFile" uid="uid://d00vm0x0a7tly" path="res://sub_title.tres" id="1"] +[ext_resource type="FontVariation" uid="uid://cxd8jd4l5405w" path="res://title.tres" id="2"] +[ext_resource type="Script" path="res://scenes/levels/settings.gd" id="3"] +[ext_resource type="FontFile" uid="uid://rb827p6o1ltk" path="res://fonts/HakgyoansimSantteutdotumM.ttf" id="3_f2etg"] +[ext_resource type="Script" path="res://scenes/levels/text_edit.gd" id="4"] +[ext_resource type="FontFile" uid="uid://cefdq34a4kdtn" path="res://label.tres" id="5"] + +[sub_resource type="Theme" id="1"] + +[sub_resource type="StyleBoxFlat" id="2"] +bg_color = Color(1, 1, 1, 1) +border_width_left = 1 +border_width_top = 1 +border_width_right = 1 +border_width_bottom = 1 +border_color = Color(0, 0, 0, 1) + +[sub_resource type="StyleBoxFlat" id="3"] +bg_color = Color(0.94902, 0.372549, 0.14902, 1) + +[node name="Settings" type="Control"] +layout_mode = 3 +anchors_preset = 0 +script = ExtResource("3") + +[node name="bg" type="ColorRect" parent="."] +layout_mode = 0 +offset_right = 1920.0 +offset_bottom = 1080.0 + +[node name="title" type="Label" parent="."] +layout_mode = 0 +offset_left = 730.0 +offset_top = 22.0 +offset_right = 1056.0 +offset_bottom = 121.0 +theme = SubResource("1") +theme_override_colors/font_color = Color(0, 0, 0, 1) +theme_override_fonts/font = ExtResource("2") +theme_override_font_sizes/font_size = 65 +text = "설정하기" +horizontal_alignment = 1 +vertical_alignment = 1 + +[node name="defensive_character" type="VBoxContainer" parent="."] +layout_mode = 0 +offset_left = 109.0 +offset_top = 159.0 +offset_right = 889.0 +offset_bottom = 509.0 +pivot_offset = Vector2(-207, -18) +theme_override_constants/separation = 15 + +[node name="label" type="Label" parent="defensive_character"] +layout_mode = 2 +theme_override_colors/font_color = Color(0, 0, 0, 1) +theme_override_fonts/font = ExtResource("3_f2etg") +theme_override_font_sizes/font_size = 45 +text = "수비 캐릭터 배치하기" + +[node name="edit" type="TextEdit" parent="defensive_character"] +custom_minimum_size = Vector2(450, 150) +layout_mode = 2 +size_flags_vertical = 3 +theme_override_colors/font_color = Color(0, 0, 0, 1) +theme_override_fonts/font = ExtResource("5") +theme_override_font_sizes/font_size = 35 +theme_override_styles/normal = SubResource("2") +script = ExtResource("4") + +[node name="attack_character" type="VBoxContainer" parent="."] +layout_mode = 0 +offset_left = 977.0 +offset_top = 159.0 +offset_right = 1757.0 +offset_bottom = 509.0 +pivot_offset = Vector2(-207, -18) +theme_override_constants/separation = 15 + +[node name="label" type="Label" parent="attack_character"] +layout_mode = 2 +theme_override_colors/font_color = Color(0, 0, 0, 1) +theme_override_fonts/font = ExtResource("1") +theme_override_font_sizes/font_size = 45 +text = "공격 캐릭터 배치하기" + +[node name="edit" type="TextEdit" parent="attack_character"] +custom_minimum_size = Vector2(450, 150) +layout_mode = 2 +size_flags_vertical = 3 +theme_override_colors/font_color = Color(0, 0, 0, 1) +theme_override_fonts/font = ExtResource("5") +theme_override_font_sizes/font_size = 35 +theme_override_styles/normal = SubResource("2") +script = ExtResource("4") + +[node name="defensive_command" type="VBoxContainer" parent="."] +layout_mode = 0 +offset_left = 112.0 +offset_top = 603.0 +offset_right = 892.0 +offset_bottom = 953.0 +pivot_offset = Vector2(-207, -18) +theme_override_constants/separation = 15 + +[node name="label" type="Label" parent="defensive_command"] +layout_mode = 2 +theme_override_colors/font_color = Color(0, 0, 0, 1) +theme_override_fonts/font = ExtResource("1") +theme_override_font_sizes/font_size = 45 +text = "수비 기보 입력하기" + +[node name="edit" type="TextEdit" parent="defensive_command"] +custom_minimum_size = Vector2(450, 150) +layout_mode = 2 +size_flags_vertical = 3 +theme_override_colors/font_color = Color(0, 0, 0, 1) +theme_override_fonts/font = ExtResource("5") +theme_override_font_sizes/font_size = 35 +theme_override_styles/normal = SubResource("2") +script = ExtResource("4") + +[node name="attack_command" type="VBoxContainer" parent="."] +layout_mode = 0 +offset_left = 968.0 +offset_top = 606.0 +offset_right = 1748.0 +offset_bottom = 956.0 +pivot_offset = Vector2(-207, -18) +theme_override_constants/separation = 15 + +[node name="label" type="Label" parent="attack_command"] +layout_mode = 2 +theme_override_colors/font_color = Color(0, 0, 0, 1) +theme_override_fonts/font = ExtResource("1") +theme_override_font_sizes/font_size = 45 +text = "공격 기보 입력하기" + +[node name="edit" type="TextEdit" parent="attack_command"] +custom_minimum_size = Vector2(450, 150) +layout_mode = 2 +size_flags_vertical = 3 +theme_override_colors/font_color = Color(0, 0, 0, 1) +theme_override_fonts/font = ExtResource("5") +theme_override_font_sizes/font_size = 35 +theme_override_styles/normal = SubResource("2") +script = ExtResource("4") + +[node name="game_start" type="Button" parent="."] +layout_mode = 0 +offset_left = 1529.0 +offset_top = 21.0 +offset_right = 1887.0 +offset_bottom = 107.0 +theme_override_colors/font_color = Color(1, 1, 1, 1) +theme_override_fonts/font = ExtResource("1") +theme_override_font_sizes/font_size = 40 +theme_override_styles/normal = SubResource("3") +text = "게임 실행하기" + +[connection signal="text_changed" from="defensive_character/edit" to="defensive_character/edit" method="_on_edit_text_changed_defense_batch"] +[connection signal="text_changed" from="attack_character/edit" to="attack_character/edit" method="_on_edit_text_changed_attack_batch"] +[connection signal="text_changed" from="defensive_command/edit" to="defensive_command/edit" method="_on_edit_text_changed_defense_command"] +[connection signal="text_changed" from="attack_command/edit" to="attack_command/edit" method="_on_edit_text_changed_attack_command"] +[connection signal="pressed" from="game_start" to="." method="_on_game_start_pressed"] diff --git a/MockBattle/scenes/levels/setF17C.tmp b/MockBattle/scenes/levels/setF17C.tmp new file mode 100644 index 0000000..3b0b6cb --- /dev/null +++ b/MockBattle/scenes/levels/setF17C.tmp @@ -0,0 +1,167 @@ +[gd_scene load_steps=10 format=3 uid="uid://bn2fpsxxx8uyq"] + +[ext_resource type="FontFile" uid="uid://d00vm0x0a7tly" path="res://sub_title.tres" id="1"] +[ext_resource type="FontVariation" uid="uid://cxd8jd4l5405w" path="res://title.tres" id="2"] +[ext_resource type="Script" path="res://scenes/levels/settings.gd" id="3"] +[ext_resource type="FontFile" uid="uid://rb827p6o1ltk" path="res://fonts/HakgyoansimSantteutdotumM.ttf" id="3_f2etg"] +[ext_resource type="Script" path="res://scenes/levels/text_edit.gd" id="4"] +[ext_resource type="FontFile" uid="uid://cefdq34a4kdtn" path="res://label.tres" id="5"] + +[sub_resource type="Theme" id="1"] + +[sub_resource type="StyleBoxFlat" id="2"] +bg_color = Color(1, 1, 1, 1) +border_width_left = 1 +border_width_top = 1 +border_width_right = 1 +border_width_bottom = 1 +border_color = Color(0, 0, 0, 1) + +[sub_resource type="StyleBoxFlat" id="3"] +bg_color = Color(0.94902, 0.372549, 0.14902, 1) + +[node name="Settings" type="Control"] +layout_mode = 3 +anchors_preset = 0 +script = ExtResource("3") + +[node name="bg" type="ColorRect" parent="."] +layout_mode = 0 +offset_right = 1920.0 +offset_bottom = 1080.0 + +[node name="title" type="Label" parent="."] +layout_mode = 0 +offset_left = 730.0 +offset_top = 22.0 +offset_right = 1056.0 +offset_bottom = 121.0 +theme = SubResource("1") +theme_override_colors/font_color = Color(0, 0, 0, 1) +theme_override_fonts/font = ExtResource("2") +theme_override_font_sizes/font_size = 65 +text = "설정하기" +horizontal_alignment = 1 +vertical_alignment = 1 + +[node name="defensive_character" type="VBoxContainer" parent="."] +layout_mode = 0 +offset_left = 109.0 +offset_top = 159.0 +offset_right = 889.0 +offset_bottom = 509.0 +pivot_offset = Vector2(-207, -18) +theme_override_constants/separation = 15 + +[node name="label" type="Label" parent="defensive_character"] +layout_mode = 2 +theme_override_colors/font_color = Color(0, 0, 0, 1) +theme_override_fonts/font = ExtResource("3_f2etg") +theme_override_font_sizes/font_size = 45 +text = "수비 캐릭터 배치하기" + +[node name="edit" type="TextEdit" parent="defensive_character"] +custom_minimum_size = Vector2(450, 150) +layout_mode = 2 +size_flags_vertical = 3 +theme_override_colors/font_color = Color(0, 0, 0, 1) +theme_override_fonts/font = ExtResource("5") +theme_override_font_sizes/font_size = 35 +theme_override_styles/normal = SubResource("2") +script = ExtResource("4") + +[node name="attack_character" type="VBoxContainer" parent="."] +layout_mode = 0 +offset_left = 977.0 +offset_top = 159.0 +offset_right = 1757.0 +offset_bottom = 509.0 +pivot_offset = Vector2(-207, -18) +theme_override_constants/separation = 15 + +[node name="label" type="Label" parent="attack_character"] +layout_mode = 2 +theme_override_colors/font_color = Color(0, 0, 0, 1) +theme_override_fonts/font = ExtResource("1") +theme_override_font_sizes/font_size = 45 +text = "공격 캐릭터 배치하기" + +[node name="edit" type="TextEdit" parent="attack_character"] +custom_minimum_size = Vector2(450, 150) +layout_mode = 2 +size_flags_vertical = 3 +theme_override_colors/font_color = Color(0, 0, 0, 1) +theme_override_fonts/font = ExtResource("5") +theme_override_font_sizes/font_size = 35 +theme_override_styles/normal = SubResource("2") +script = ExtResource("4") + +[node name="defensive_command" type="VBoxContainer" parent="."] +layout_mode = 0 +offset_left = 112.0 +offset_top = 603.0 +offset_right = 892.0 +offset_bottom = 953.0 +pivot_offset = Vector2(-207, -18) +theme_override_constants/separation = 15 + +[node name="label" type="Label" parent="defensive_command"] +layout_mode = 2 +theme_override_colors/font_color = Color(0, 0, 0, 1) +theme_override_fonts/font = ExtResource("1") +theme_override_font_sizes/font_size = 45 +text = "수비 기보 입력하기" + +[node name="edit" type="TextEdit" parent="defensive_command"] +custom_minimum_size = Vector2(450, 150) +layout_mode = 2 +size_flags_vertical = 3 +theme_override_colors/font_color = Color(0, 0, 0, 1) +theme_override_fonts/font = ExtResource("5") +theme_override_font_sizes/font_size = 35 +theme_override_styles/normal = SubResource("2") +script = ExtResource("4") + +[node name="attack_command" type="VBoxContainer" parent="."] +layout_mode = 0 +offset_left = 968.0 +offset_top = 606.0 +offset_right = 1748.0 +offset_bottom = 956.0 +pivot_offset = Vector2(-207, -18) +theme_override_constants/separation = 15 + +[node name="label" type="Label" parent="attack_command"] +layout_mode = 2 +theme_override_colors/font_color = Color(0, 0, 0, 1) +theme_override_fonts/font = ExtResource("1") +theme_override_font_sizes/font_size = 45 +text = "공격 기보 입력하기" + +[node name="edit" type="TextEdit" parent="attack_command"] +custom_minimum_size = Vector2(450, 150) +layout_mode = 2 +size_flags_vertical = 3 +theme_override_colors/font_color = Color(0, 0, 0, 1) +theme_override_fonts/font = ExtResource("5") +theme_override_font_sizes/font_size = 35 +theme_override_styles/normal = SubResource("2") +script = ExtResource("4") + +[node name="game_start" type="Button" parent="."] +layout_mode = 0 +offset_left = 1529.0 +offset_top = 21.0 +offset_right = 1887.0 +offset_bottom = 107.0 +theme_override_colors/font_color = Color(1, 1, 1, 1) +theme_override_fonts/font = ExtResource("1") +theme_override_font_sizes/font_size = 40 +theme_override_styles/normal = SubResource("3") +text = "게임 실행하기" + +[connection signal="text_changed" from="defensive_character/edit" to="defensive_character/edit" method="_on_edit_text_changed_defense_batch"] +[connection signal="text_changed" from="attack_character/edit" to="attack_character/edit" method="_on_edit_text_changed_attack_batch"] +[connection signal="text_changed" from="defensive_command/edit" to="defensive_command/edit" method="_on_edit_text_changed_defense_command"] +[connection signal="text_changed" from="attack_command/edit" to="attack_command/edit" method="_on_edit_text_changed_attack_command"] +[connection signal="pressed" from="game_start" to="." method="_on_game_start_pressed"] diff --git a/MockBattle/scenes/levels/settings.gd b/MockBattle/scenes/levels/settings.gd index d0d4b88..d21ec85 100644 --- a/MockBattle/scenes/levels/settings.gd +++ b/MockBattle/scenes/levels/settings.gd @@ -1,9 +1,21 @@ extends Control +@onready var d1 = $defensive_character/edit +@onready var a1 = $attack_character/edit +@onready var d2 = $defensive_command/edit +@onready var a2 = $attack_command/edit + func _on_game_start_pressed(): + GameData.defense_position_str = d1.text + GameData.defense_command_str = d2.text + GameData.attack_position_str = a1.text + GameData.attack_command_str = a2.text + + GameData.saveall() + get_tree().change_scene_to_file("res://scenes/levels/battle.tscn") -func _ready(): +func al_ready(): var batch_settings = Settings.get_batch_setting() var command_settings = Settings.get_command_settings() @@ -12,3 +24,10 @@ func _ready(): $defensive_command/edit.text = command_settings.get("defense", "") $attack_command/edit.text = command_settings.get("attack", "") + + +func _ready(): + d1.text = GameData.defense_position_str + d2.text = GameData.defense_command_str + a1.text = GameData.attack_position_str + a2.text = GameData.attack_command_str diff --git a/MockBattle/scenes/levels/text_edit.gd b/MockBattle/scenes/levels/text_edit.gd index 7c8ef6d..ffc549b 100644 --- a/MockBattle/scenes/levels/text_edit.gd +++ b/MockBattle/scenes/levels/text_edit.gd @@ -4,12 +4,12 @@ extends TextEdit func _on_edit_text_changed_defense_batch(): Settings.update_defense_batch_settings(self.text) - + func _on_edit_text_changed_defense_command(): Settings.update_defense_command_settings(self.text) func _on_edit_text_changed_attack_batch(): Settings.update_attack_batch_settings(self.text) - + func _on_edit_text_changed_attack_command(): Settings.update_attack_command_settings(self.text) diff --git a/MockBattle/singletons/game_data.gd b/MockBattle/singletons/game_data.gd new file mode 100644 index 0000000..af1eb2f --- /dev/null +++ b/MockBattle/singletons/game_data.gd @@ -0,0 +1,71 @@ +extends Node + +# Actual vars for game +var defense_position = {} +var defense_command = {} +var attack_position = {} +var attack_command = {} + +# Strings for Edit +var defense_position_str = {} +var defense_command_str = {} +var attack_position_str = {} +var attack_command_str = {} + +# Load Gamedatas of position & command +var atk_pos_path = "res://datas/attack_position.json" +var dfn_pos_path = "res://datas/defense_position.json" +var atk_cmd_path = "res://datas/attack_command.json" +var dfn_cmd_path = "res://datas/defense_command.json" + + +func _ready(): + defense_position = loadjson(dfn_pos_path) + defense_command = loadjson(dfn_cmd_path) + attack_position = loadjson(atk_pos_path) + attack_command = loadjson(atk_cmd_path) + + defense_position_str = loadstring(dfn_pos_path) + defense_command_str = loadstring(dfn_cmd_path) + attack_position_str = loadstring(atk_pos_path) + attack_command_str = loadstring(atk_cmd_path) + +func saveall(): + savejson(attack_position_str, atk_pos_path) + savejson(defense_position_str, dfn_pos_path) + savejson(attack_command_str, atk_cmd_path) + savejson(defense_command_str, dfn_cmd_path) + +func loadjson(path : String): + if FileAccess.file_exists(path): + var datafile = FileAccess.open(path, FileAccess.READ) + var strings = datafile.get_as_text() + var json = JSON.new() + var parsed = json.parse(strings) + if parsed == OK: + var data_received = json.data + if typeof(data_received) == TYPE_ARRAY: + print("ARRAY") + print(path) + print(data_received) + return data_received + else: + print(typeof(data_received)) + print(path) + else: + print("JSON Parse Error: ", json.get_error_message(), " in ", strings, "at line ", json.get_error_line()) + + +func loadstring(path : String): + if FileAccess.file_exists(path): + var datafile = FileAccess.open(path, FileAccess.READ) + var strings = datafile.get_as_text() + return strings + + + +func savejson(data : String, path : String): + var dataFile = FileAccess.open(path, FileAccess.WRITE) + dataFile.store_string(data) + + diff --git a/MockBattle/singletons/settings.gd b/MockBattle/singletons/settings.gd index 621e14f..99e127b 100644 --- a/MockBattle/singletons/settings.gd +++ b/MockBattle/singletons/settings.gd @@ -29,6 +29,9 @@ func update_defense_command_settings(setting: String): func update_attack_command_settings(setting: String): command_settings.attack = setting +func _ready(): + pass + enum character_type { JJAJANG, @@ -52,162 +55,8 @@ enum SkillEffectType { const DEFENSE_TEAM_CODE: int = 1 const ATTACK_TEAM_CODE: int = 2 -var defense_position = [ - [ - { - "type": character_type.JJAJANG, - "id": 1 - } - ], - [ - { - "type": character_type.JJAMBBONG, - "id": 2 - }, - { - "type": character_type.JJAMBBONG, - "id": 3 - }, - ], - [ - { - "type": character_type.CAKE, - "id": 4 - }, - { - "type": character_type.JJAMBBONG, - "id": 5 - }, - ] -] - -var defense_command = [ - { - "id": 1, - "skill_id": 1 - }, - { - "id": 1, - "skill_id": 2 - }, - { - "id": 1, - "skill_id": 0, - "meta": 1, - }, - { - "id": 2, - "skill_id": 1 - }, - { - "id": 2, - "skill_id": 2 - }, - { - "id": 1, - "skill_id": 0, - "meta": 0, - }, - { - "id": 3, - "skill_id": 1 - }, - { - "id": 3, - "skill_id": 2 - }, - { - "id": 1, - "skill_id": 0, - "meta": 1, - }, - { - "id": 4, - "skill_id": 1 - }, - { - "id": 4, - "skill_id": 2 - }, - { - "id": 5, - "skill_id": 1 - }, - { - "id": 5, - "skill_id": 2 - }, -] - -var attack_position = [ - [ - { - "type": character_type.CAKE, - "id": 6 - }, - { - "type": character_type.MILK_SHAKE, - "id": 7 - }, - { - "type": character_type.JJAJANG, - "id": 8 - } - ], - [ - { - "type": character_type.JJAJANG, - "id": 9 - } - ], - [ - { - "type": character_type.JJAMBBONG, - "id": 10 - }, - ] -] - -var attack_command = [ - { - "id": 6, - "skill_id": 1 - }, - { - "id": 6, - "skill_id": 2 - }, - { - "id": 7, - "skill_id": 1 - }, - { - "id": 7, - "skill_id": 2 - }, - { - "id": 8, - "skill_id": 1 - }, - { - "id": 8, - "skill_id": 2 - }, - { - "id": 9, - "skill_id": 1 - }, - { - "id": 9, - "skill_id": 2 - }, - { - "id": 10, - "skill_id": 1 - }, - { - "id": 10, - "skill_id": 2 - } -] +var defense_position = [] +var defense_command = [] +var attack_position = [] +var attack_command = []