Random Room Spawning Using Scene Graph
81,208 Views
-
using { /Fortnite.com/Devices } using { /Verse.org/SceneGraph } using { /Verse.org/Simulation } using { /Verse.org/SpatialMath } # Defines a room in the dungeon. dungeon_room := class<abstract>: # Whether or not the room contains enemies. @editable ContainsEnemies:logic = false # The physical bounds of the room. Defaults to double the fortnite tile size of 512cm x 384cm x 512cm to represent a 2x2 tile room. @editable_vector_number(float): ToolTip := RoomBoundsTip RoomBounds:vector3 = vector3{Left := 512.0, Up := 256.0, Forward := 512.0} # What enemies should spawn in the room. @editable EnemySpawners:[]guard_spawner_device = array{} # Constructs the entity prefab associated with this dungeon room. ConstructRoomPrefab()<transacts>:?entity = false <# simple_dungeon_room := class<concrete>(dungeon_room):
You're reading a preview
The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.
Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.