SlideServe
Menu
Préférences
© SlideServe · v2026

Hive Wars

heinz avatar
23 diapositives · 476 Views · Jul 24, 2014

Hive Wars. April 28th, 2009. Josh Bruno, Aaron Murdoch, Zain Rizvi. Overview. Game Details Problem Description Alternative Solutions Selected Solution Implementation Demonstration. Game Details. Real Time Strategy Two Players Communication over the Internet. Game Play.

Hive Wars - slide 1
01 / 23Hive Wars
1 / 17

Télécharger la présentation

Hive Wars
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  1. Hive Wars April 28th, 2009 Josh Bruno, Aaron Murdoch, Zain Rizvi

  2. Overview • Game Details • Problem Description • Alternative Solutions • Selected Solution • Implementation • Demonstration

  3. Game Details • Real Time Strategy • Two Players • Communication over the Internet

  4. Game Play • Goal: eliminate the other player • Each person starts off with one hive

  5. Game Rules • Capture enemy hive by sending minions to it • Can send one minion every 0.1 seconds • Can send minions to your own hive to reinforce it

  6. Game Constraints • Each hive has its own: • minion spawn rate • maximum capacity • Hive can never surpass max capacity

  7. Connecting to your Opponent

  8. Problem Description • Consistent Game State • No game state divergence • Speed • Fairness • Playable with 500ms latencies

  9. Game State Divergence

  10. Alternative Solutions • Central Server • Central Referee • Asynchronous

  11. Central Server • All Messages through Central Server • Consistent Game State Saved On Server • Violates Fairness and Speed

  12. Central Referee • Clients communicate with each other • Send a copy of each state to referee • Referee solves disputes • Violates speed

  13. Asynchronous • Clients communicate directly • Algorithm saves a concurrent state • No recovery from divergence

  14. Implementation

  15. GameState • GameState Number • ArrayList of Attacks • HashMap of Hives • Master vs. Viewable Protected by Semaphores

  16. GUI • Displays Current Viewable GameState • Records Attacks New Attack

  17. Clock • Checks Master GameState Number • Adds New Attack to the Viewable GameState • Transmits Current Viewable New Clock Thread Started Every 100 ms Transmit Viewable

  18. Receive • Receives Opponents GameState • Reconcile • Updates Master GameState • Add Opponents Attacks to Viewable

  19. Concurrency • Lag Timer • Distance Between Hives 150pixels

  20. Implementation Spawns Threads Stores New Attacks Every 100 ms Adds New Attack to Viewable Transmits Viewable Opponent GameState Displays Viewable Updates Master and Viewable

  21. Development Details • Golden T Game Engine • Subversion • Google Code

  22. Conclusion • Real Time Strategy • Multiplayer Over the Internet • No Central Server • Fair Game-play, No Divergence, and Speed

  23. http://code.google.com/p/hivewars/orgoogle “hivewars code” Demonstration April 28th, 2009 Josh Bruno, Aaron Murdoch, Zain Rizvi