-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
11c136a
commit c9a648a
Showing
60 changed files
with
1,889 additions
and
23 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using Godot; | ||
using System; | ||
|
||
public class TileMap : Godot.TileMap | ||
{ | ||
// Declare member variables here. Examples: | ||
// private int a = 2; | ||
// private string b = "text"; | ||
|
||
// Called when the node enters the scene tree for the first time. | ||
public override void _Ready() | ||
{ | ||
GD.Print("TileMap ready"); | ||
} | ||
|
||
// // Called every frame. 'delta' is the elapsed time since the previous frame. | ||
// public override void _Process(float delta) | ||
// { | ||
// | ||
// } | ||
} |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
extends Reference | ||
|
||
var blackboard = {} | ||
|
||
func set(key, value, blackboard_name = 'default'): | ||
if not blackboard.has(blackboard_name): | ||
blackboard[blackboard_name] = {} | ||
|
||
blackboard[blackboard_name][key] = value | ||
|
||
|
||
func get(key, default_value = null, blackboard_name = 'default'): | ||
if has(key, blackboard_name): | ||
return blackboard[blackboard_name].get(key, default_value) | ||
return default_value | ||
|
||
|
||
func has(key, blackboard_name = 'default'): | ||
return blackboard.has(blackboard_name) and blackboard[blackboard_name].has(key) and blackboard[blackboard_name][key] != null | ||
|
||
|
||
func erase(key, blackboard_name = 'default'): | ||
if blackboard.has(blackboard_name): | ||
blackboard[blackboard_name][key] = null |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.