Skip to content

Commit

Permalink
NANCY: Implement CollisionPuzzle
Browse files Browse the repository at this point in the history
Implemented the record type responsible for the
grid puzzle where pieces slide in four directions until they
hit a wall or another piece.
  • Loading branch information
fracturehill committed Sep 3, 2023
1 parent 3279224 commit b2a3194
Show file tree
Hide file tree
Showing 4 changed files with 614 additions and 0 deletions.
3 changes: 3 additions & 0 deletions engines/nancy/action/arfactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
#include "engines/nancy/action/turningpuzzle.h"
#include "engines/nancy/action/tangrampuzzle.h"
#include "engines/nancy/action/safelockpuzzle.h"
#include "engines/nancy/action/collisionpuzzle.h"

#include "engines/nancy/state/scene.h"

Expand Down Expand Up @@ -210,6 +211,8 @@ ActionRecord *ActionManager::createActionRecord(uint16 type) {
return new TurningPuzzle();
case 210:
return new SafeLockPuzzle();
case 211:
return new CollisionPuzzle();
case 212:
return new OrderingPuzzle(OrderingPuzzle::PuzzleType::kOrderItems);
default:
Expand Down
Loading

0 comments on commit b2a3194

Please sign in to comment.