board design

This commit is contained in:
Jörn-Michael Miehe 2018-10-01 03:32:42 +02:00
parent 66aeb6398c
commit 3bad9b9902
7 changed files with 13 additions and 18 deletions

View file

@ -1,2 +1,3 @@
node_modules node_modules
npm-debug.log npm-debug.log
*.xcf

View file

@ -1,16 +1,16 @@
CONF = CONF =
playmat: playmat:
w: 1600 w: 2000
h: 900 h: 1000
card: card:
w: 172 w: 225
h: 240 h: 315
bigcard: bigcard:
x: (1600 - 1200) / 2 x: (2000 - 1200) / 2
y: (1800 - 1675) / 2 y: (2000 - 1675) / 2
w: 1200 w: 1200
h: 1675 h: 1675

View file

@ -25,7 +25,7 @@ Crafty.defineScene "Battle", ->
Crafty.trigger 'ViewportResize' Crafty.trigger 'ViewportResize'
# Example playmats at https://imgur.com/a/VSosu#cwGQdAS # Example playmats at https://imgur.com/a/VSosu#cwGQdAS
Crafty.sprite 997, 582, '//i.imgur.com/cwGQdAS.png', Crafty.sprite 2000, 1000, 'assets/ff7.jpg',
playmat: [ playmat: [
0 0
0 0

View file

@ -8,20 +8,14 @@ Crafty.sprite 480, 670, '//www.fftcgmognet.com/images/cards/hd/1/1/107.jpg',
0 0
] ]
card = Crafty.e 'shantotto, AllyCard' Crafty.e 'shantotto, AllyCard, Backup'
.attr { .place 0, 0
x: 0
y: 0
}
.bind 'DoubleClick', ->
@destroy()
return
Crafty.e 'shantotto, AllyCard' Crafty.e 'shantotto, AllyCard, Backup'
.place 300, 0 .place 300, 0
Crafty.e 'shantotto, AllyCard' Crafty.e 'shantotto, AllyCard, Backup'
.place 600, 0 .place 600, 0
Crafty.e 'shantotto, EnemyCard' Crafty.e 'shantotto, EnemyCard, Backup'
.place 900, 0 .place 900, 0

BIN
static/assets/board.xcf Normal file

Binary file not shown.

BIN
static/assets/ff7.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 610 KiB

BIN
static/assets/ranx.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 615 KiB