the small
This commit is contained in:
parent
3109bdc44a
commit
aff18ec43c
82 changed files with 6436 additions and 630 deletions
18
addons/ldtk-importer/src/components/ldtk-level.gd
Normal file
18
addons/ldtk-importer/src/components/ldtk-level.gd
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
@icon("ldtk-level.svg")
|
||||
@tool
|
||||
class_name LDTKLevel
|
||||
extends Node2D
|
||||
|
||||
@export var iid: String
|
||||
@export var world_position: Vector2
|
||||
@export var size: Vector2i
|
||||
@export var fields: Dictionary
|
||||
@export var neighbours: Array
|
||||
@export var bg_color: Color
|
||||
|
||||
func _ready() -> void:
|
||||
queue_redraw()
|
||||
|
||||
func _draw() -> void:
|
||||
if Engine.is_editor_hint():
|
||||
draw_rect(Rect2(Vector2.ZERO, size), bg_color, false, 2.0)
|
||||
Loading…
Add table
Add a link
Reference in a new issue