-
Notifications
You must be signed in to change notification settings - Fork 0
Effect Of Weather On The Unit Movement
Changing the movement speed for the unit according to the weather that is represent in Weather Effect Visual Representation.
Edit these variable to change the movement speed of the unit arcoding to the weather. It is exists in WeatherIcon
. The value below are exaggerated at the moment.
private final float[] movementSpeedFactor = {
1.5f,
0.5f,
0.4f,
2f,
0.6f
};
There are some slight addition on the PhysicsMovementComponent
about the change of the velocity of the movement according to the weather. It will update the value of it with the multiplication from the movementSpeedFactor
above.
public void changeSpeed(float factor) {
float newSpeed = this.speed * factor;
this.vel = new Vector2(newSpeed, newSpeed);
}
You can try to access the code using the listener function on your code. For now, the trigger to change the movement speed exists on WeatherIconDisplay
on Update()
function.
Map
City
Buildings
Unit Selections
Game User Testing: Theme of Unit Selection & Spell System
Health Bars
In Game menu
- Feature
- User Testing:In Game Menu
Landscape Tile Design Feedback