engine/core.js
/**
       Put the entity into the cell at the given position.
     */
Put the entity into the cell at the given position.
Put the entity into the cell at the given position .
spawn(entity, x, y) {
        let cell = this.getCell(x, y);
        if (cell === Cell.OutOfBounds) {
            throw new Error("Won't spawn out of bounds.");
        }
        cell.enter(entity);
        entity.cell = cell;
    }
spawn ( entity , x , y ) { let cell = this . getCell ( x , y ) ; if ( cell === Cell . OutOfBounds ) { throw new Error ( "Won't spawn out of bounds." ) ; } cell . enter ( entity ) ; entity . cell = cell ; }
Put the entity into the cell at the given position.
Put the entity into the cell at the given position .