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/20-comp-Playmat.coffee

40 lines
607 B
CoffeeScript
Raw Normal View History

2018-09-30 21:48:24 +00:00
################
# Playmat
################
Crafty.c 'Playmat',
# Basic 2D Entity
required: '2D, Canvas'
# initialize Playmat
init: ->
@attr {
x: 0
y: 0
2018-09-30 21:48:24 +00:00
z: CONF.layer.playmats
w: CONF.playmat.w
h: CONF.playmat.h
}
@origin 'top middle'
return
################
# EnemyPlaymat
################
Crafty.c 'EnemyPlaymat',
# Is a Playmat
required: 'Playmat'
# initialize Playmat
init: ->
@attr {
rotation: 180
}
return
################
# AllyPlaymat
################
Crafty.c 'AllyPlaymat',
# Is a Playmat
required: 'Playmat'