girlwillneversingagain/scenes/room/room_config.gd

14 lines
477 B
GDScript

class_name RoomConfig extends Resource
@export_group('Camera')
## Whether the camera will (initially) follow the player ot not.
@export var follow_player: bool = true
## Initial position of the camera.
@export var camera_position: Vector2i = Vector2i.ZERO
@export_group('Room Loop')
## Whether the room loops itself or not.
@export var loopable: bool = false
## Section of the room that will loop itself.
@export var loop_size: Rect2i = Rect2i(Vector2i.ZERO, Vector2i.ZERO)