diff --git a/godot_ship/.import/2longShipS.png-801d61680041dba5398a94c57d0e9262.md5 b/godot_ship/.import/2longShipS.png-801d61680041dba5398a94c57d0e9262.md5 index 7db7717..e3afea3 100644 --- a/godot_ship/.import/2longShipS.png-801d61680041dba5398a94c57d0e9262.md5 +++ b/godot_ship/.import/2longShipS.png-801d61680041dba5398a94c57d0e9262.md5 @@ -1,3 +1,3 @@ -source_md5="9e91c010f678dd0d23b8d9efb811370a" -dest_md5="8e4332e351eefabd8f0349cd49fe52ff" +source_md5="5a201530a2c7e3bb42181c09984b89f5" +dest_md5="39b189f098cbee69227d4913fcf35a6e" diff --git a/godot_ship/.import/2longShipS.png-801d61680041dba5398a94c57d0e9262.stex b/godot_ship/.import/2longShipS.png-801d61680041dba5398a94c57d0e9262.stex index 6f829b9..3d149fa 100644 Binary files a/godot_ship/.import/2longShipS.png-801d61680041dba5398a94c57d0e9262.stex and b/godot_ship/.import/2longShipS.png-801d61680041dba5398a94c57d0e9262.stex differ diff --git a/godot_ship/.import/3longShipAS.png-c88b2d866e65fe50f618c22da6c0a5d4.md5 b/godot_ship/.import/3longShipAS.png-c88b2d866e65fe50f618c22da6c0a5d4.md5 index eb1537a..b6767bc 100644 --- a/godot_ship/.import/3longShipAS.png-c88b2d866e65fe50f618c22da6c0a5d4.md5 +++ b/godot_ship/.import/3longShipAS.png-c88b2d866e65fe50f618c22da6c0a5d4.md5 @@ -1,3 +1,3 @@ -source_md5="263ca33dd302d621fee895e7ac383887" -dest_md5="339c525433359be4bef49afd8a886aba" +source_md5="bd884562b68793860604020d5a651d91" +dest_md5="c961eaade5ba9a652feb566a65040afb" diff --git a/godot_ship/.import/3longShipAS.png-c88b2d866e65fe50f618c22da6c0a5d4.stex b/godot_ship/.import/3longShipAS.png-c88b2d866e65fe50f618c22da6c0a5d4.stex index eabfb6c..706ce43 100644 Binary files a/godot_ship/.import/3longShipAS.png-c88b2d866e65fe50f618c22da6c0a5d4.stex and b/godot_ship/.import/3longShipAS.png-c88b2d866e65fe50f618c22da6c0a5d4.stex differ diff --git a/godot_ship/.import/3longShipBS.png-16d8048d7e635bcebbedc6038f4faaa5.md5 b/godot_ship/.import/3longShipBS.png-16d8048d7e635bcebbedc6038f4faaa5.md5 index e2d5165..43fc505 100644 --- a/godot_ship/.import/3longShipBS.png-16d8048d7e635bcebbedc6038f4faaa5.md5 +++ b/godot_ship/.import/3longShipBS.png-16d8048d7e635bcebbedc6038f4faaa5.md5 @@ -1,3 +1,3 @@ -source_md5="24ed4b24e9603882a33d8f18ee46d922" -dest_md5="9e8d32510b6010bd437605aa787cc6b0" +source_md5="086625ddff37c472c9d5d5e1c4d5ab3c" +dest_md5="f02370861aec23baa35bf0a1f97f385d" diff --git a/godot_ship/.import/3longShipBS.png-16d8048d7e635bcebbedc6038f4faaa5.stex b/godot_ship/.import/3longShipBS.png-16d8048d7e635bcebbedc6038f4faaa5.stex index a928bc2..aed071a 100644 Binary files a/godot_ship/.import/3longShipBS.png-16d8048d7e635bcebbedc6038f4faaa5.stex and b/godot_ship/.import/3longShipBS.png-16d8048d7e635bcebbedc6038f4faaa5.stex differ diff --git a/godot_ship/.import/4longShipS.png-8dc80f51885d7a7242ed523ee285aaa0.md5 b/godot_ship/.import/4longShipS.png-8dc80f51885d7a7242ed523ee285aaa0.md5 index 3b5fb71..6b7de2f 100644 --- a/godot_ship/.import/4longShipS.png-8dc80f51885d7a7242ed523ee285aaa0.md5 +++ b/godot_ship/.import/4longShipS.png-8dc80f51885d7a7242ed523ee285aaa0.md5 @@ -1,3 +1,3 @@ -source_md5="d6943caf0946316838b9cd9c8fbdb2f1" -dest_md5="f3bfd7942ca02a45a0a53af26f79a60c" +source_md5="77989e8476ff29d4ab3a32a70c772b3c" +dest_md5="cd23260b170f58022c0d09f60a98af66" diff --git a/godot_ship/.import/4longShipS.png-8dc80f51885d7a7242ed523ee285aaa0.stex b/godot_ship/.import/4longShipS.png-8dc80f51885d7a7242ed523ee285aaa0.stex index 3d27e48..6fec713 100644 Binary files a/godot_ship/.import/4longShipS.png-8dc80f51885d7a7242ed523ee285aaa0.stex and b/godot_ship/.import/4longShipS.png-8dc80f51885d7a7242ed523ee285aaa0.stex differ diff --git a/godot_ship/.import/5longShipS.png-9d546ec87dabd586e250ea5c5229aa8f.md5 b/godot_ship/.import/5longShipS.png-9d546ec87dabd586e250ea5c5229aa8f.md5 index 3e42f58..9d8a216 100644 --- a/godot_ship/.import/5longShipS.png-9d546ec87dabd586e250ea5c5229aa8f.md5 +++ b/godot_ship/.import/5longShipS.png-9d546ec87dabd586e250ea5c5229aa8f.md5 @@ -1,3 +1,3 @@ -source_md5="040b2cdbb0654ad245f989217247bd7f" -dest_md5="a8f0e7cd43f7c196985ae222f836bef4" +source_md5="7273b593f374b6fd54f7c33ee56d7ef0" +dest_md5="27a3f76531230e0b36bab4843641d961" diff --git a/godot_ship/.import/5longShipS.png-9d546ec87dabd586e250ea5c5229aa8f.stex b/godot_ship/.import/5longShipS.png-9d546ec87dabd586e250ea5c5229aa8f.stex index 6fc2c95..f9e95f5 100644 Binary files a/godot_ship/.import/5longShipS.png-9d546ec87dabd586e250ea5c5229aa8f.stex and b/godot_ship/.import/5longShipS.png-9d546ec87dabd586e250ea5c5229aa8f.stex differ diff --git a/godot_ship/assets/game/2longShipS.png b/godot_ship/assets/game/2longShipS.png index d5eea58..8af3d65 100644 Binary files a/godot_ship/assets/game/2longShipS.png and b/godot_ship/assets/game/2longShipS.png differ diff --git a/godot_ship/assets/game/3longShipAS.png b/godot_ship/assets/game/3longShipAS.png index 0fa89f2..bca66d7 100644 Binary files a/godot_ship/assets/game/3longShipAS.png and b/godot_ship/assets/game/3longShipAS.png differ diff --git a/godot_ship/assets/game/3longShipBS.png b/godot_ship/assets/game/3longShipBS.png index 4b36eee..a904795 100644 Binary files a/godot_ship/assets/game/3longShipBS.png and b/godot_ship/assets/game/3longShipBS.png differ diff --git a/godot_ship/assets/game/4longShipS.png b/godot_ship/assets/game/4longShipS.png index a81672e..b737b89 100644 Binary files a/godot_ship/assets/game/4longShipS.png and b/godot_ship/assets/game/4longShipS.png differ diff --git a/godot_ship/assets/game/5longShipS.png b/godot_ship/assets/game/5longShipS.png index 77eb3ae..2c7832e 100644 Binary files a/godot_ship/assets/game/5longShipS.png and b/godot_ship/assets/game/5longShipS.png differ diff --git a/godot_ship/script/debug/debug_menu.gd b/godot_ship/script/debug/debug_menu.gd index 6b33819..3baba86 100644 --- a/godot_ship/script/debug/debug_menu.gd +++ b/godot_ship/script/debug/debug_menu.gd @@ -11,6 +11,8 @@ var debug_active = false var menu_position = 0.0 var menu_velocity = 4 +onready var present_working_node = get_node("/root") + # positions when the menu is hidden/active var menu_hidden = Transform2D(Vector2(1,0), Vector2(0,1), Vector2(0,-170)) var menu_active = Transform2D(Vector2(1,0), Vector2(0,1), Vector2(0, 0)) @@ -71,6 +73,10 @@ func _on_LineEdit_text_entered(line): command_clear(command) "help", "h": command_help(command) + "pwd", "pwn": + command_pwd(command) + "cd", "cn": + command_cd(command) _: debug_print_line("Command not recognized.\n") @@ -100,8 +106,11 @@ func command_stop (command): # list: Lists names of active scenes (children of Root) func command_list (_command): - debug_print_line("list: ") - MessageBus.emit_signal("list_scenes") + var children = present_working_node.get_children() + var names = [] + for i in range (children.size()): + names.append(children[i].name) + debug_print_line(String(names) + "\n") # restart: Kills the current tree and replants Root func command_restart (_command): @@ -128,7 +137,24 @@ func command_emit (command): func command_clear (_command): emit_signal("clear_out"); -func command_tree (_command): +func command_pwd (_command): + debug_print_line("pwd\n" + String(present_working_node.get_path()) + "\n") + +func command_cd (command): + if command.size() > 1: + var path + if command[1].is_abs_path(): + path = command[1] + else: #convert to absolute path + path = String(present_working_node.get_path()) + "/" + command[1] + var node = get_node(path) + if node: + debug_print_line("cd " + command[1] + "\n") + present_working_node = node + else: + debug_print_line ('change node: node not found.\n') + else: + debug_print_line("") pass # help: Prints help dialogue diff --git a/godot_ship/script/game/moveShip.gd b/godot_ship/script/game/moveShip.gd index edbfa84..c419f25 100644 --- a/godot_ship/script/game/moveShip.gd +++ b/godot_ship/script/game/moveShip.gd @@ -11,7 +11,7 @@ var held = false func _ready(): pass # Replace with function body. -var click_radius = 32 +var click_radius = 16 var orient = 0; func _input(event):