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/frontend/src_old/game/components/Playmat.coffee

39 lines
607 B
CoffeeScript

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