This file contains hidden or 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
@tool | |
extends Node3D | |
class_name UsageExample | |
@export var _my_scene: PackedScene | |
func _get_configuration_warnings() -> PackedStringArray: | |
var warnings: PackedStringArray = [] | |
if not _my_scene: | |
warnings.append("My Scene is not assigned.") |
This file contains hidden or 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
class_name ArrowMap | |
extends TileMap | |
enum Direction { NONE = 0, NORTH = 1, EAST = 2, SOUTH = 4, WEST = 8, ALL = 15 } | |
const DIRECTION_MAP = { | |
Vector2i(1, 0): Direction.EAST, | |
Vector2i(-1, 0): Direction.WEST, | |
Vector2i(0, -1): Direction.NORTH, | |
Vector2i(0, 1): Direction.SOUTH | |
} |