Trying to set a game with multiple exits for one number makes crash the app
lgraziani2712 opened this issue · 1 comments
lgraziani2712 commented
Right now, the relation between actors and exits are 1:1. I want to make them 1:N so I can make games with possibly wrong exits.
engine/containers/mazeEngineGenerator
is the module responsible for instanciating everything. Also, the gameMetadata lacks definitions or a better shape of data for that kind of relationship.
I need to check both.
lgraziani2712 commented
- The
gameMetadata
doesn't need to be changed. - What it needs to change is the
randomizeActorsConfig
function fromrandomConfigurations
. - What it also needs to change is the actor's creation function inside the
mazeEngineGenerator
.