Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by harryfeng

Hi,

so I put my entity js file in the a different folder under entities directory, but it won't show in the WM.

Is there a way to show both folder's entities in WM.

e.g show both entities from these two folder

/game/entities/
/game/entities/monsterA/

1 decade ago by dominic

Yes, you can instruct Weltmeister to check several folders for Entities. In your lib/weltmeister/config.js, search for the project.entityFiles setting:

'entityFiles': [
    'lib/game/entities/*.js',
    'lib/game/entities/monsterA/*.js'
],

You can also add all subdirectories at once, instead adding /monsterA/ manually: 'lib/game/entities/*/*.js'

1 decade ago by harryfeng

it works. thanks.
Page 1 of 1
« first « previous next › last »