« get me outta code hell

Misc. scenario tweaks - csb-game - Pixelly spin-off of the Command Synergy Battle system used in Final Fantasy XIII
summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2018-08-19 14:22:39 -0300
committerFlorrie <towerofnix@gmail.com>2018-08-19 14:22:39 -0300
commitfde565cc07d6d4d459bf49906b8038fdaba7c584 (patch)
tree7cead71fbb0e82797e19e57a599fb2d466702066
parent791d8c4fac6990f76d48db911ad1d80fe6c54a56 (diff)
Misc. scenario tweaks
-rw-r--r--index.html4
-rw-r--r--index.js10
2 files changed, 7 insertions, 7 deletions
diff --git a/index.html b/index.html
index 80bef7b..5115aa6 100644
--- a/index.html
+++ b/index.html
@@ -29,7 +29,7 @@ u.heading {
   color: #AAF;
 }
 
-#help { display: none; width: 400px; }
+#help { display: none; width: 300px; }
 #help:target { display: block; }
 </style>
 <p><a href="#help">Huh? <i>(Click me!)</i></a></p>
@@ -55,5 +55,5 @@ Please use <u>Firefox</u>. It's the only browser where I've actually tested the
 <br><u class="heading">I WANT TO PLAY A BETTER VERSION OF THIS HECKING DEMO</u><br>
 Try Final Fantasy XIII?<br>
 <br><a href='#'>Close</a></p>
-<canvas id="canvas" tabindex="1" width="400" height="240"></canvas>
+<canvas id="canvas" tabindex="1" width="300" height="240"></canvas>
 <script src="index.js"></script>
diff --git a/index.js b/index.js
index be34775..a57f8af 100644
--- a/index.js
+++ b/index.js
@@ -1175,7 +1175,7 @@ class BattleCamera extends Camera {
   constructor() {
     super()
 
-    this.battlefieldCenterX = 20
+    this.battlefieldCenterX = 40
     this.battlefieldCenterY = 220
   }
 
@@ -1272,17 +1272,17 @@ class SlideacrossMessage {
 const battle = new Battle({
   teamData: [
     {characterData: [
-      {x: -75, y: 190, name: 'Ren', hp: 400, maxHP: 400, knownActions: ['fire', 'fira', 'firaga', 'blizz', 'blizzara', 'cure']},
-      {x: -95, y: 225, name: 'Fie', hp: 375, maxHP: 375, knownActions: ['fire', 'blizz', 'blizzara', 'blizzaga', 'aqua', 'aquara']}
+      {x: -55, y: 190, name: 'Ren', hp: 600, maxHP: 600, knownActions: ['fire', 'fira', 'firaga', 'blizz', 'blizzara', 'cure']},
+      {x: -75, y: 225, name: 'Fie', hp: 475, maxHP: 475, knownActions: ['fire', 'blizz', 'blizzara', 'blizzaga', 'aqua', 'aquara']}
     ]},
     {characterData: [
-      {x: 100, y: 200, aiID: 'manasvinWarmech', name: 'Manasvin Warmech', hp: 1600, maxHP: 1600, knownActions: ['aqua', 'aquaga', 'manasvinSwipe', 'manasvinRecover']}
+      {x: 80, y: 200, aiID: 'manasvinWarmech', name: 'Manasvin Warmech', hp: 1600, maxHP: 1600, knownActions: ['aqua', 'aquaga', 'manasvinSwipe', 'manasvinRecover']}
     ]}
   ]
 })
 
 battle.teams[0].characters[0].atbBar.segmentCount = 4
-battle.teams[0].characters[1].atbBar.segmentCount = 4
+battle.teams[0].characters[1].atbBar.segmentCount = 5
 battle.teams[1].characters[0].image.src = 'img/warmech.png'
 
 const camera = battle.camera