Verify Game Mechanics
Compare implementation against design document specifications.
Arguments
$ARGUMENTS - Which mechanic to verify (movement, collision, laps, or all)
Verification Checklist
Movement Mechanics
From design doc:
code
NewPosition = CurrentPosition + CurrentVelocity + Acceleration NewVelocity = CurrentVelocity + Acceleration
Verify:
- •Read movement code in Swift
- •Confirm formula matches
- •Play-test: Start at (5,5) with vel (0,0), accel (1,1) → should be at (6,6) with vel (1,1)
Collision Detection
From design doc:
- •Use Bresenham's line algorithm
- •Check ALL cells along path
- •Any wall cell = crash
Verify:
- •Find collision code
- •Confirm Bresenham implementation
- •Play-test: Move toward wall, verify crash occurs
Crash Handling
From design doc:
- •Lose 1 life
- •Velocity resets to (0, 0)
- •Respawn at nearest valid cell
Verify:
- •Find crash handling code
- •Confirm all three effects
- •Play-test: Crash, verify life decremented
Lap Counting
From design doc:
- •Cross finish line in correct direction
- •Use line segment intersection
Verify:
- •Find lap counting code
- •Confirm direction check
- •Play-test: Complete lap, verify counter
Report Format
code
Mechanic Verification: [name] =========================== Design Spec: [quote from doc] Implementation: [file:line] Match: YES / NO / PARTIAL Issues: [any discrepancies]