From 6768cd461ec1a8ea87c0f64e1b3c29e36b0b02ed Mon Sep 17 00:00:00 2001 From: Rubén Beltrán del Río Date: Mon, 23 Apr 2018 07:58:20 -0500 Subject: Draw the Arena (#7) * Add defaults to config * Create arena sprite * Draw the arena * Draw a face when cooling down the dash * Correct linter issues --- lib/nodes/drawn_dasher.js | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 lib/nodes/drawn_dasher.js (limited to 'lib/nodes') diff --git a/lib/nodes/drawn_dasher.js b/lib/nodes/drawn_dasher.js new file mode 100644 index 0000000..162593f --- /dev/null +++ b/lib/nodes/drawn_dasher.js @@ -0,0 +1,27 @@ +import { Node } from '@serpentity/serpentity'; + +import DashComponent from '../components/dash'; +import PixiContainerComponent from '../components/pixi_container'; + +/** + * Node identifying an entity that can dash and is drawn + * + * @extends {external:Serpentity.Node} + * @class DrawnDasherNode + */ +export default class DrawnDasherNode extends Node { + +}; + +/** + * Holds the types that are used to identify a drawn dasher entity + * + * @property {object} types + * @name types + * @memberof DrawnDasherNode + */ +DrawnDasherNode.types = { + container: PixiContainerComponent, + dash: DashComponent +}; + -- cgit