EightSideRoom
Extends: Node2D
Description
A scene, that can be instantiated in a scene and features a room with up to eight different sides with automatic view navigation using a Camera2D
Constants Descriptions
TEXTURE_DISTANCE
const TEXTURE_DISTANCE: int = 100
Distance between textures to allow overlapping hotspot areas
VIEW_BACK
const VIEW_BACK: String = "back"
VIEW_BACKLEFT
const VIEW_BACKLEFT: String = "backleft"
VIEW_BACKRIGHT
const VIEW_BACKRIGHT: String = "backright"
VIEW_FRONT
const VIEW_FRONT: String = "front"
view constants
VIEW_FRONTLEFT
const VIEW_FRONTLEFT: String = "frontleft"
view constants
VIEW_FRONTRIGHT
const VIEW_FRONTRIGHT: String = "frontright"
VIEW_LEFT
const VIEW_LEFT: String = "left"
VIEW_RIGHT
const VIEW_RIGHT: String = "right"
VIEW_UNSET
const VIEW_UNSET: String = ""
An unset view
Property Descriptions
view_dict
var view_dict
Dictionary used to map view constant to index (and back)
default_view
export var default_view = "front"
The default/starting view of the four views
frontleft_texture
export var frontleft_texture = "[Object:null]"
The texture for the front view
front_texture
export var front_texture = "[Object:null]"
The texture for the front view
frontright_texture
export var frontright_texture = "[Object:null]"
right_texture
export var right_texture = "[Object:null]"
backright_texture
export var backright_texture = "[Object:null]"
back_texture
export var back_texture = "[Object:null]"
backleft_texture
export var backleft_texture = "[Object:null]"
left_texture
export var left_texture = "[Object:null]"
current_view
var current_view
The current view shown to the player
Signals
signal view_changed(old_view, new_view): Triggered when the user switches the view