Skip to content

Conversation

@e-jayy
Copy link
Collaborator

@e-jayy e-jayy commented Feb 3, 2025

Add all room prefabs into an array to instantiate onto 'spawnpoint' game objects.

e-jayy and others added 13 commits February 3, 2025 23:24
20 x 11.25 room sizes (equivalent to how many tiles on a 320 x 180 screen size)
With combinations of room doors
Each with a spawnpoint gameobject to instantiate new rooms
20 x 11.25 room sizes (equivalent to how many tiles on a 320 x 180 screen size)
With combinations of room doors
Each with a spawnpoint gameobject to instantiate new rooms
Completed room generation

TO DO:
- Reduce how many rooms generate
Fixed bug where rooms would instantiate on top of one-another and exits would lead to empty space
ACTUALLY fixed bug where rooms would instantiate on one-another
ATTEMPTED to fix rooms blocking each other

!NOTE: Does not work
REAL REVERT OF PATCH 1.2
Fixed overlapping rooms
Rooms still block each other off
Fixed bug where rooms would block one another.

NOTE: In the future give the 'walls' a 'Wall' tag to prevent door destroyers from destroying other game objects
Added 'Wall' tag to walls
Added logic that spawns a "boss prefab"  upon the last room instantiated.
Reduced the amount of rooms that are instantiated

NOTE: Cannot be CONSISTENTLY 10 rooms EXACTLY. However, it will always be around 10 give or take 1-3 rooms
Fixed bug where closed rooms spawning by entry rooms would cause the game to crash.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants