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

28 lines
441 B
CoffeeScript
Raw Normal View History

2018-09-30 21:48:24 +00:00
# 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'
2018-09-30 21:48:24 +00:00
.attr {
x: 0
y: 0
}
.bind 'DoubleClick', ->
@destroy()
return
Crafty.e 'shantotto, AllyCard'
2018-09-30 21:48:24 +00:00
.place 300, 0
Crafty.e 'shantotto, AllyCard'
2018-09-30 21:48:24 +00:00
.place 600, 0
Crafty.e 'shantotto, EnemyCard'
2018-09-30 21:48:24 +00:00
.place 900, 0