-
Notifications
You must be signed in to change notification settings - Fork 1
TERRAIN FACTORY
AElanagai edited this page Sep 11, 2024
·
2 revisions
The TerrainFactory class is responsible for creating and managing the terrain in the game. It generates the visual representation of rooms and levels using tiled maps
- MAP_SIZE: Defines the size of the map in grid coordinates.
- camera: The orthographic camera used for rendering.
- currentLevel: Tracks the current level number.
- isBossRoom: Boolean flag to indicate if the current room is a boss room
1. createTerrain(TerrainType terrainType, boolean isBossRoom)
- Creates a terrain component based on the specified type and whether it's a boss room.
2. createRoomTerrain(float tileWorldSize, TextureRegion[] tileSet)
- Generates a room terrain using the provided tile set.
3. createRoomTiles(GridPoint2 tileSize, TextureRegion[] tileSet)
- Creates the tiled map for a room.
4. fillTiles(TiledMapTileLayer layer, GridPoint2 mapSize, TerrainTile[] tileList)
- Fills the tile layer with appropriate tiles, including boundary, broken, and stained tiles.
Design Choices
Utilities
Animals
Menus/screens
Character
- Character Animations
- Character's Inventory On Display
- Character's Inventory System
- Character's HealthBar
- Character's Interaction with Items
- Character achievements
- Saving Character
- Player-(and-other-NPC)-invincibility-frames
- Player Factory
- Scoring System
- Test Plan for Inventory System
- Test Plan for Player's Interaction with Items
- Test Plan for Player's Inventory Display
- Test Plan for Saving Character State
- Test Plan for Scoring System
Map
Weapon
- Weapon Overview
- Weapon Types
- Weapon Structure
- Weapon Stats Display
- Testing Plan for Weapon Factory
- Testing Plan for Firing Controller Component
- Testing Plan for Position Tracker Component
- Testing Plan for Weapon Animation Controller component
- Testing Plan for Concrete Melee Weapon class
- Testing Plan for Concrete Ranged Weapon class