diff --git a/client/scripts/10-config.coffee b/client/scripts/10-conf.coffee similarity index 100% rename from client/scripts/10-config.coffee rename to client/scripts/10-conf.coffee diff --git a/client/scripts/10-framework-init.coffee b/client/scripts/10-init-framework.coffee similarity index 100% rename from client/scripts/10-framework-init.coffee rename to client/scripts/10-init-framework.coffee diff --git a/client/scripts/20-component-Card.coffee b/client/scripts/20-comp-Card.coffee similarity index 100% rename from client/scripts/20-component-Card.coffee rename to client/scripts/20-comp-Card.coffee diff --git a/client/scripts/20-component-Playmat.coffee b/client/scripts/20-comp-Playmat.coffee similarity index 100% rename from client/scripts/20-component-Playmat.coffee rename to client/scripts/20-comp-Playmat.coffee diff --git a/client/scripts/30-scene-Battle.coffee b/client/scripts/30-scene-Battle.coffee index a2657a0..a7bb5c2 100644 --- a/client/scripts/30-scene-Battle.coffee +++ b/client/scripts/30-scene-Battle.coffee @@ -1,10 +1,10 @@ Crafty.defineScene "Battle", -> - + # free viewport Crafty.viewport.clampToEntities = false # attach viewport to an (invisible) entity twice as big as a playmat - Crafty.viewport.follow( + Crafty.viewport.follow ( Crafty.e('2D, Canvas') .attr { w: 1 * CONF.playmat.w @@ -31,7 +31,8 @@ Crafty.defineScene "Battle", -> 0 ] - Crafty.e('playmat, AllyPlaymat') - Crafty.e('playmat, EnemyPlaymat') + # Place example playmats + Crafty.e 'playmat, AllyPlaymat' + Crafty.e 'playmat, EnemyPlaymat' return