FourSideRoom

Extends: Node2D

Description

A scene, that can be instantiated in a scene and features a room with four different sides with automatic view navigation using a Camera2D

Constants Descriptions

VIEW_BACK

const VIEW_BACK: String = "back"

The backwards view

VIEW_FRONT

const VIEW_FRONT: String = "front"

The front view

VIEW_LEFT

const VIEW_LEFT: String = "left"

The left view

VIEW_RIGHT

const VIEW_RIGHT: String = "right"

The right view

VIEW_UNSET

const VIEW_UNSET: String = ""

An unset view

Property Descriptions

default_view

export var default_view = "front"

The default/starting view of the four views

front_texture

export var front_texture = "[Object:null]"

The texture for the front view

right_texture

export var right_texture = "[Object:null]"

The texture for the right view

back_texture

export var back_texture = "[Object:null]"

The texture for the backwards view

left_texture

export var left_texture = "[Object:null]"

The texture for the left view

enable_navigation

export var enable_navigation = true

Whether navigation features are enabled in this room

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