Skip to content

Latest commit

 

History

History
92 lines (82 loc) · 4.09 KB

README.md

File metadata and controls

92 lines (82 loc) · 4.09 KB

Water Management Game

Video Demonstration

https://www.youtube.com/watch?v=PvTv1Ti4qYc

How to Install the Windows 10 App

  1. Download the repository ZIP.
  2. Unzip the repository.
  3. Open the City_X.X.X.X_Master_Test folder.
  4. Install everything in the Dependencies folder like any other application.
  5. Trust the certificate associated with the City_X.X.X.X_x86_Master.appxbundle.
  • Right click City_X.X.X.X_x86_Master.appxbundle.
  • Click Properties.
  • Go to the Digital Signatures tab.
  • Select the signature then click Details.
  • Click View Certificate.
  • Click Install Certificate.
  • Select the Local Machine option and click Next.
  • Select "Place all certificates in the following store" and click Browse.
  • Scroll down and select "Trusted People" then click OK.
  • Click Next then Finish.
  • Close all other dialogs by clicking OK.
  1. Install the City_X.X.X.X_x86_Master.appxbundle like any other application.
  2. Print out this image to use for the AR target of the application. Image Target

Project Report

Things that we learned...

  • Learned how to use sound in Unity
  • Learned Unity NavMeshAgent

Issues

  • A few issues with lighting when changing scenes.
  • Sound was hard to get working the first time around.
  • NavMeshAgent took a bit of work to get going.

Contributors

  • David Cooper
  • Tien Dang
  • Olisa Omekam

Work Distribution

  • David Cooper
    • Added more to city controller script including:
      • Showing moving cars during migration events.
      • Showing sun and changing lighting when temp got hot enough.
  • Tien Dang
    • Built new city design.
    • Added cars to the city.
  • Olisa Omekam
    • UI and sound.

How the Game Works

  • The player must meet the water consumption needs of the city through a turn base game.
    Var Pane
    • i.e. Water distribution and supply must meet or exceed water consumption needs.
    • Water consumption is dependent upon temperature and population
      • Higher temperature and population means higher water consumption, and vice versa.
    • The player loses a life for each turn this requirement is not fulfilled.
    • After the player loses 10 lives then the game is over.
    • The game is considered won when the player has lasted until turn 50.
  • The player can invest in different infrastructure to manipulate Water Distribution:
    UI Buttons
    • Water Tower
      • Investments increases water distribution maximum.
    • Water Sources
      • Investments increases water availability, the maximum ammount to be drawn from each source.
      • Availability cannot exceed the water source's reserve.
    • Water Shipments
      • Investment make available a supply of water that is not refilled by rain.
  • Money comes in the form of taxes each turn and varies based on the population amount.
  • Different events can occur that affect the flow of gameplay.
    Event Pane
    • These events affect:
      • Populaion through migration events.
      • Temperature through cold and warm fronts.
      • Rain frequency through droughts and monsoons.
    • Water sources' reserves are replenished slightly on rain events.

Modeling the City

  • City was built using two different Low-Poly European City Packs that were free on the Unity Asset Store.
  • Everything lies on a terrain with a hole left for the lake.
  • Lake water was made using Advanced Water prefab in the unity standard assets package.
  • Cloud was a model downloaded off Sketchfab. Cloud Model
  • Rain was created using the Unity Particle System.
    Rain Image
  • The Lake moves up and down based on the amount of water in it.