lgraziani2712/codimo

Trying to set a game with multiple exits for one number makes crash the app

lgraziani2712 opened this issue · 1 comments

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.

  1. The gameMetadata doesn't need to be changed.
  2. What it needs to change is the randomizeActorsConfig function from randomConfigurations.
  3. What it also needs to change is the actor's creation function inside the mazeEngineGenerator.