From f34ca3eadec0b03a3d8d47837de3f69ff0748c80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Sun, 30 Sep 2018 23:49:27 +0200 Subject: [PATCH] refactoring --- client/scripts/{10-config.coffee => 10-conf.coffee} | 0 ...10-framework-init.coffee => 10-init-framework.coffee} | 0 .../{20-component-Card.coffee => 20-comp-Card.coffee} | 0 ...0-component-Playmat.coffee => 20-comp-Playmat.coffee} | 0 client/scripts/30-scene-Battle.coffee | 9 +++++---- 5 files changed, 5 insertions(+), 4 deletions(-) rename client/scripts/{10-config.coffee => 10-conf.coffee} (100%) rename client/scripts/{10-framework-init.coffee => 10-init-framework.coffee} (100%) rename client/scripts/{20-component-Card.coffee => 20-comp-Card.coffee} (100%) rename client/scripts/{20-component-Playmat.coffee => 20-comp-Playmat.coffee} (100%) 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