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

27 lines
441 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