Jump to content

Maze generator


Toraito
 Share

Recommended Posts

Hello, ok here's my request, I am trying to create a minigame like in "The legend of zelda: phantom hourglass" multiplayer game https://youtu.be/rwNNHZlyuGU?t=1m45s

one of the difference with this gameplay is that it will be a multidevice mobile version, another difference is that the level will be randomly generated.

I have found a maze generator here: https://codepen.io/GabbeV/pen/viAec

therefor i have a few questions:

-how could i use this to create multiple paths like showed on this picture? https://i.stack.imgur.com/EYBEV.png

-Am i able to export a phaser game to an android app with cordova?

-Is is possible to put a hitbox on the randomly generated walls on the canvas and if so how?

Thanks for reading this post and hopefully i'll find a solution thanks to you

Link to comment
Share on other sites

If you're looking for a great resource on maze generation I'd recommend this blog.  He goes through a load of different approaches to writing mazes and provides example code written in Ruby, so you just have to translate that to javascript to get it to work with Phaser.  

I don't have any experience with cordova but from my own testing of phaser apps, they seem to function well in the chrome app on android, if you wanted to provide your game as a webpage rather than a packaged app.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...