mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
Removing trailing whitespace
With `sed -i $(rg -l '[[:blank:]]*$' -g'!classes') -e 's/[[:blank:]]*$//g'`
This commit is contained in:
@@ -10,7 +10,7 @@ This tutorial aims to be a quick reference for how to use GDScript more
|
||||
efficiently. It focuses on common cases specific to the language, but
|
||||
also covers a lot of information on dynamically typed languages.
|
||||
|
||||
It's meant to be especially useful for programmers with little or no previous
|
||||
It's meant to be especially useful for programmers with little or no previous
|
||||
experience with dynamically typed languages.
|
||||
|
||||
Dynamic nature
|
||||
@@ -147,7 +147,7 @@ too. Some Examples:
|
||||
|
||||
SomeClass instance = new SomeClass(); // Created as reference
|
||||
use_class(instance); // Passed as reference
|
||||
// Garbage collector will get rid of it when not in
|
||||
// Garbage collector will get rid of it when not in
|
||||
// use and freeze your game randomly for a second
|
||||
}
|
||||
|
||||
@@ -280,7 +280,7 @@ easily with dictionaries. Here's a simple battleship game example:
|
||||
if pos in board: # Something at that pos
|
||||
if board[pos] == SHIP: # There was a ship! hit it
|
||||
board[pos] = SHIP_HIT
|
||||
else:
|
||||
else:
|
||||
print("Already hit here!") # Hey dude you already hit here
|
||||
else: # Nothing, mark as water
|
||||
board[pos] = WATER_HIT
|
||||
|
||||
Reference in New Issue
Block a user