Sly 2:Game state: Difference between revisions
Add gallery of Sly 2 DAGs
TheOnlyZac (talk | contribs) (Wording and layout) |
TheOnlyZac (talk | contribs) (Add gallery of Sly 2 DAGs) |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1:
{{Infobox game mechanic
The '''DAG''' ('''D'''irected '''A'''cyclic '''G'''raph) is a data structure used to manage the current state of the game world. It was the subject of a 2005 GDC presentation by Bruce Oberg, the Principal Engineer at Sucker Punch.<ref>[https://www.gdcvault.com/play/1020295/The-Picture-Worth-a-Thousand The Picture Worth a Thousand Bugs] - YouTube, 3 April 2021 (archived from a 2005 GDC conference)</ref>▼
|image=Sly 2 Palace DAG official.png
|caption=The official DAG for Sly 2 Episode 2
}}
▲The '''
== Tasks ==
The
=== Task States ===
Each task has a
*
*
*
*
All tasks
===
At all times, every task ''before'' an Available task must be Complete or Final. Additionally, every task ''after'' an Available task must be unavailable. It is possible to
== Missions ==
Tasks
== Checkpoints ==
Some tasks are "checkpoint tasks". A task is
* the character to respawn as
* a location to spawn at
When a checkpoint task becomes Available, that checkpoint is set as the latest checkpoint.
== Rollbacks ==
A rollback is when the game state rewinds
* Resetting the world
* Placing the player at the latest checkpoint
* Forcing the checkpoint task to Available (which may result in the states of other tasks being updated)
== Gallery ==
The following are all DAGs for Sly 2. The DAG for Episode 2 is the official DAG as the developers would have seen it. The rest are reconstructed from data structures in the game's memory.
<gallery mode="nolines" widths=200px heights=200px>
File:Sly2 Intro DAG.png|Sly 2 Intro (Cairo)
File:Sly2 Ep1 Nightclub DAG.png|Sly 2 Ep 1 (Nightclub)
File:Sly 2 Palace DAG official.png|Sly 2 Ep 2 (Palace)
File:Sly2 Ep3 Temple DAG.png|Sly 2 Ep 3 (Temple)
File:Sly2 Ep4 Prison DAG.png|Sly 2 Ep 4 (Prison)
File:Sly2 Ep5 Castle DAG.png|Sly 2 Ep 5 (Castle)
File:Sly2 Ep6 Train DAG.png|Sly 2 Ep 6 (Train)
File:Sly2 Ep7 Sawmill DAG.png|Sly 2 Ep 7 (Sawmill)
File:Sly2 Ep8 Blimp DAG.png|Sly 2 Ep 8 (Blimp)
</gallery>
== See also ==
* [[Sly 1:GS]] - For the game state tracking system in {{Sly 1}}.▼
*[[DAGviz]] - A tool for viewing and editing the DAG in real time
== References ==▼
<references />
{{Navbox Sly 2}}
[[Category:Game mechanics]]
[[Category:Game mechanics in Sly 2]]
[[Category:Game mechanics in Sly 3]]
|