Terasology / LightAndShadow

Light & Shadow is an experimental game type set in a quirky Alice in Wonderland inspired setting
Apache License 2.0
8 stars 22 forks source link

feat: set a family factor at the UILabel #148

Closed stefaniamak closed 4 years ago

stefaniamak commented 4 years ago

Purpose

The change of colors to the gameOverResult UILabel. When text is "Victory" its color is Blue, when "Defeat" its color is "Red"

Changes made

I decided to set the variable to a different Family, and edit both families at the skin file.

My initial tried were to set the color via code, using as reference the below two methods that his happens:

  1. Check https://github.com/Terasology/LightAndShadowResources/pull/57
  2. Start a LAS game
  3. Choose a team
  4. Open the developer tab and gain the enemy team's by writting give and redflag or blackflag
  5. Score as many points as you need to finish up the game
  6. The Game Over Screen will pop up when you score the last point

Note: You can go to LAUtils.java and change GOAL_SCORE variable from 5 to 1, so you need to score 1 point to end the game.

Screenshot

image