Download scripts/large_tile.gd from jtatman/godot_rl_DownFall: direct link, hf CLI and curl.
- Browser
- Download file 681 Bytes
-
https://huggingface.co/datasets/jtatman/godot_rl_DownFall/resolve/main/scripts/large_tile.gd
- Command line
-
hf download hf://datasets/jtatman/godot_rl_DownFall/scripts/large_tile.gd
-
curl -L -o large_tile.gd https://huggingface.co/datasets/jtatman/godot_rl_DownFall/resolve/main/scripts/large_tile.gd
681 Bytes
| @tool | |
| extends Node3D | |
| enum TileColor { | |
| Green, Desert, Blue, Red, Yellow | |
| } | |
| @export var tileColor : TileColor = TileColor.Green: | |
| set(value): | |
| $Meshes.get_child(0).visible = false | |
| $Meshes.get_child(1).visible = false | |
| $Meshes.get_child(2).visible = false | |
| $Meshes.get_child(3).visible = false | |
| $Meshes.get_child(4).visible = false | |
| match value: | |
| TileColor.Green: | |
| $Meshes.get_child(0).visible = true | |
| TileColor.Desert: | |
| $Meshes.get_child(1).visible = true | |
| TileColor.Blue: | |
| $Meshes.get_child(2).visible = true | |
| TileColor.Red: | |
| $Meshes.get_child(3).visible = true | |
| TileColor.Yellow: | |
| $Meshes.get_child(4).visible = true | |
| tileColor = value | |