mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-05-18 12:17:46 +02:00
Compare commits
3 commits
22ae40b3be
...
cb4d10fc53
Author | SHA1 | Date | |
---|---|---|---|
cb4d10fc53 | |||
9da0bd1fbd | |||
38675f94e8 |
|
@ -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
|
||||
|
|
|
@ -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!
|
||||
|
|
|
@ -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?
|
||||
|
|
|
@ -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")
|
||||
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue