client/entityTracker.js
function onEntityDraw(entity, context) {
      context.save();
      if (selectionService.isSelected(entity)) {
        context.strokeStyle = '#f33';
      } else {
        context.strokeStyle = '#666';
      }
      context.strokeRect(
        entity.pos.x, entity.pos.y, entity.size.x, entity.size.y);
      context.restore();
    }
function onEntityDraw(entity, context) {
      context.save();
      if (selectionService.isSelected(entity)) {
        context.strokeStyle = '#f33';
      } else {
        context.strokeStyle = '#666';
      }
      context.strokeRect(
        entity.pos.x, entity.pos.y, entity.size.x, entity.size.y);
      context.restore();
    }
function onEntityDraw ( entity , context ) { context . save ( ) ; if ( selectionService . isSelected ( entity ) ) { context . strokeStyle = '#f33' ; } else { context . strokeStyle = '#666' ; } context . strokeRect ( entity . pos . x , entity . pos . y , entity . size . x , entity . size . y ) ; context . restore ( ) ; }
Subscribed to entity draw event.
Subscribed to entity draw event .