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
2018-09-30 23:52:45 +02:00

39 lines
620 B
CoffeeScript

################
# Playmat
################
Crafty.c 'Playmat',
# Basic 2D Entity
required: '2D, Canvas'
# initialize Playmat
init: ->
@attr {
x: 0
y: CONF.playmat.h
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'