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
npm-debug.log
*.xcf

View file

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

View file

@ -25,7 +25,7 @@ Crafty.defineScene "Battle", ->
Crafty.trigger 'ViewportResize'
# 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: [
0
0

View file

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