This commit adds city features to the map, currently only Lamps and Water features, but possesses the functionality to quickly add more.
What to look for
Load into the main game, and check that water features and lamps spawn randomly throughout the city. They should be animated and not positioned too awkwardly (i.e. in the middle of a building or something).
Check to make sure nothing else looks visually broken
Files Changed/Added
AtlantisGameArea.java
Added function spawnFeatures() to randomly place features relative to building positions
CityFeatureFactory.java
Was created to allow spawning of city features
SelectionColliderTest.java
Unit test created to test the efficacy of selection hitboxes
GateColliderTest.java
Several more test cases added to ensure it functions as required
TextureScaler.java
Expanded in functionality to allow placement/scaling of entities without a TextureRenderComponent
Description
This commit adds city features to the map, currently only Lamps and Water features, but possesses the functionality to quickly add more.
What to look for
Load into the main game, and check that water features and lamps spawn randomly throughout the city. They should be animated and not positioned too awkwardly (i.e. in the middle of a building or something).
Check to make sure nothing else looks visually broken
Files Changed/Added
AtlantisGameArea.java Added function spawnFeatures() to randomly place features relative to building positions
CityFeatureFactory.java Was created to allow spawning of city features
SelectionColliderTest.java Unit test created to test the efficacy of selection hitboxes
GateColliderTest.java Several more test cases added to ensure it functions as required
TextureScaler.java Expanded in functionality to allow placement/scaling of entities without a TextureRenderComponent