- Introduced MapData, MapGenerator, and MapPainter classes for procedural map generation. - Implemented LevelManager to handle level initialization and navigation. - Created TurnManager for managing turn order in a turn-based system. - Added Player and Enemy character classes with movement and turn-taking capabilities. - Established pathfinding using AStar2D in PathfindingHandler. - Integrated new scenes for player and enemy characters, along with world setup. - Included a new tileset for futuristic Zelda-themed assets.
11 lines
299 B
GDScript
11 lines
299 B
GDScript
## Room.gd
|
|
# Resource representing a single room in the map.
|
|
# Stores the room's position and size in grid coordinates.
|
|
class_name Room
|
|
extends Resource
|
|
|
|
# Top-left position of the room in grid coordinates.
|
|
var room_pos: Vector2i
|
|
# Size of the room (width, height) in tiles.
|
|
var room_size: Vector2i
|