google / blockly-games

Games for tomorrow's programmers.
https://blockly.games/
Apache License 2.0
1.29k stars 605 forks source link

How to add multiple Finish/Checkpoints #193

Closed mriganksingh closed 4 years ago

mriganksingh commented 4 years ago

How to add multiple Finish/Checkpoints in place of just a single Finish point in Maze Game?

NeilFraser commented 4 years ago

Interesting question, not one that's been asked before. Maze doesn't support this, but it could be added. You'd need to change Maze.finish_ from an X/Y object, to an array of X/Y objects. You'd also need to create multiple finishMarker objects and keep them in an array.