Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix sapling auto-growth; link calculator in tutorial
- Loading branch information
Showing
5 changed files
with
13 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
extends Drifter | ||
|
||
# every so often | ||
func evolve(): | ||
tweak() | ||
|
||
# when the player clicks | ||
func tweak(): | ||
if randf()*20<1: | ||
intend_transmute("res://DriftersUserDefined/pancelor-debug/Fish.tscn") | ||
else: | ||
world.log("the river carves a new path") | ||
intend_clone(DirsOrthogonal[randi()%4]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
extends Drifter | ||
|
||
# every so often | ||
func evolve(): | ||
tweak() | ||
|
||
func tweak(): | ||
world.log("new life grows") | ||
intend_transmute("res://DriftersUserDefined/pancelor-debug/Tree.tscn") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters