« get me outta code hell

Sprite tweaks - csb-game - Pixelly spin-off of the Command Synergy Battle system used in Final Fantasy XIII
summary refs log tree commit diff
path: root/index.js
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2018-08-09 22:55:16 -0300
committerFlorrie <towerofnix@gmail.com>2018-08-09 22:56:13 -0300
commitd7ea29632d1f1d08b713e01f663cdddad0cfc1ff (patch)
tree12ff64a733b79b850a373f2d71d4e19e3d16066d /index.js
parent4c9bc240f9e5fe1a16029107132d2accb16ef5d4 (diff)
Sprite tweaks
Diffstat (limited to 'index.js')
-rw-r--r--index.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/index.js b/index.js
index e7653d8..cbdd4fc 100644
--- a/index.js
+++ b/index.js
@@ -25,7 +25,7 @@ class Sprite {
 class Backdrop extends Sprite {
   constructor() {
     super()
-    this.image.src = 'img/weird-woods.png'
+    this.image.src = 'img/bg.png'
   }
 }
 
@@ -199,7 +199,7 @@ class ActionMenu {
       if (effectiveLevel < maxLevel) {
         const ghostRectW = this.getRectW(maxLevel)
         ctx.fillStyle = 'rgba(255, 255, 255, 0.3)'
-        ctx.fillRect(1, y, ghostRectW, 9)
+        ctx.fillRect(1.5, y + 0.5, ghostRectW, 8)
         ctx.strokeStyle = 'rgba(0, 0, 0, 0.3)'
         ctx.strokeRect(1.5, y + 0.5, ghostRectW, 8)
       }
@@ -279,7 +279,7 @@ class BattleCharacter extends Sprite {
     // Parts
 
     this.atbBar = new ATBBar(this)
-    this.image.src = 'img/cat1.png'
+    this.image.src = 'img/char.png'
 
     // State
 
@@ -339,7 +339,7 @@ class Camera extends Sprite {
 
 const battleCharacter = new BattleCharacter()
 battleCharacter.x = 0
-battleCharacter.y = 80
+battleCharacter.y = 240
 
 const atbBar = battleCharacter.atbBar
 //atbBar.queuedActions = [{label: 'Fire', size: 1}, {label: 'Blizz', size: 1}, {label: 'Zap', size: 1}, {label: 'Firaga', size: 3}]