Fruit Ninja Machinations Diagram
Sources (The Spawner)
Fruit Source: A source node that produces "fruit" tokens. This can be set to an automatic state with an interval, such as 1 fruit token every 1 second.
Bomb Source: A source node that produces “bomb” tokens. This should have a lower probability than the fruit.
Interactions
The “Slice” Gate: A distributed gate that receives tokens from the sources.
Success Path: An edge leading to the Score Pool.
Miss Path: An edge leading to the Missed Fruit Pool.
This machinations diagram includes:
1. Fruit Spawner: An automatic source generating "Fruit" at a random rate.
2. Slicing Mechanic: A ‘Gate’ that simulates player accuracy. Most fruits are sliced for 1 point, but there is a 10% chance for a "Critical Slice" worth 10 points.
3. Hazard System: A separate "Bomb" spawner. If a bomb is "hit" (simulated by the gate), it triggers a life deduction.
4. Score & Lives: Pools to track your current performance and remaining health.
5. Missed Fruit Pool: A new collector for fruit that "falls" without being sliced.
6. Miss Path: A connection from the existing Gate to the new pool with a 15% probability.
7. Penalty Trigger: A State Connection from the Missed Fruit pool to the lose life drain, ensuring that every missed fruit results in a life deduction.