This repository has been archived on 2024-04-29. You can view files and clone it, but cannot push or open issues or pull requests.
node-fftcg/client/scripts/40-test-entities.coffee
2018-09-30 23:48:24 +02:00

30 lines
525 B
CoffeeScript

# Load base scene
Crafty.scene "Battle"
# Testing some entities
Crafty.sprite 480, 670, '//www.fftcgmognet.com/images/cards/hd/1/1/107.jpg',
shantotto: [
0
0
]
card = Crafty.e('shantotto, AllyCard')
.attr {
x: 0
y: 0
}
.bind 'DoubleClick', ->
@destroy()
return
Crafty.e('shantotto, AllyCard')
.place 300, 0
Crafty.e('shantotto, AllyCard')
.place 600, 0
Crafty.e('shantotto, EnemyCard')
.place 900, 0
# Crafty.e("shantotto, AllyCard")
# .attr({ x: 0, y: 0, w: 1200, h: 1675 });