26 lines
932 B
GDScript
26 lines
932 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
|
|
## Enables player's point light.
|
|
@export var enable_point_light: bool = false
|
|
## Intensity of player's point light.
|
|
@export_range(0,16,0.4) var point_light_energy: float = 0
|
|
|
|
@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('Lighting')
|
|
@export var enable_canvas_modulate: bool = false
|
|
@export var modulate_color: Color
|
|
|
|
@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)
|