girlwillneversingagain/scenes/room/room_config.gd

18 lines
648 B
GDScript

class_name RoomConfig extends Resource
@export_group('Player')
## The initial player spawn point.
## Only used if one wasn't provided to the room beforehand.
@export var initial_spawn: Vector2i = Vector2i.ZERO
@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)