Compare commits

...

3 commits

Author SHA1 Message Date
Morten M. Neergaard cb4d10fc53
Merge 38675f94e8 into 9da0bd1fbd 2024-02-19 07:17:15 -07:00
Marcel Ribeiro-Dantas 9da0bd1fbd Fix typos 2024-02-13 15:20:04 +01:00
Morten Minde Neergaard 38675f94e8 fake-editor: Prefix save message with an "s"
With this, we can distinguish "save" from "close"

This fixes issue #160
2022-11-03 09:34:32 +01:00
6 changed files with 11 additions and 9 deletions

View file

@ -21,7 +21,7 @@ Wanna build your own level? Great! Here's how to do it:
1. Run the game the easiest way to do so is to run `godot scenes/main.tscn` from the project directory.
1. Get a bit familiar with the levels which are currently there.
1. Take a look into the `levels` directory. It's split into chapters, and each level is a file.
1. Make a copy of an existing level or start writing your own. See the documention of the format below.
1. Make a copy of an existing level or start writing your own. See the documentation of the format below.
1. Write and test your level. If you're happy with it, feel free to send it to us in a pull request! <3
### Level format

View file

@ -35,4 +35,4 @@ test "$(git show main^:c)" != "c"
[congrats]
Well done! Try tavelling between the commits using `git checkout`, so you can look at their contents again!
Well done! Try travelling between the commits using `git checkout`, so you can look at their contents again!

View file

@ -39,7 +39,7 @@ git add recipe
[win]
# Did you resolve the confict and commit?
# Did you resolve the conflict and commit?
{ git show HEAD | grep "Flour"; } && { git show HEAD | grep "Salt"; }
# Did you clear stash stack?

View file

@ -74,7 +74,7 @@ func shell_received(text):
func _notification(what):
if what == MainLoop.NOTIFICATION_WM_QUIT_REQUEST:
#get_tree().quit() # default behavio
#get_tree().quit() # default behavior
get_tree().change_scene("res://scenes/survey.tscn")

View file

@ -38,7 +38,7 @@ func save():
if text.length() > 0 and text.substr(text.length()-1, 1) != "\n":
text += "\n"
_client_connection.put_string(text)
_client_connection.put_string("s" + text)
emit_signal("saved")
close()

View file

@ -28,10 +28,12 @@ my $new_content = "";
$socket->recv($new_content, $length);
# Write content back into the file.
my $handle;
open ($handle,'>',$absolute_path) or die("Error opening file");
print $handle $new_content;
close ($handle) or die ("Error closing file");
if ($new_content =~ /^s/) {
my $handle;
open ($handle,'>',$absolute_path) or die("Error opening file");
print $handle (substr $new_content, 1);
close ($handle) or die ("Error closing file");
}
# This call is intended to block, we're waiting for Godot to close the connection.
my $reply;