aboutsummaryrefslogtreecommitdiff
path: root/lib/nodes/drawn_dasher.js
diff options
context:
space:
mode:
authorRubén Beltrán del Río <ben@nsovocal.com>2018-04-23 07:58:20 -0500
committerGitHub <noreply@github.com>2018-04-23 07:58:20 -0500
commit6768cd461ec1a8ea87c0f64e1b3c29e36b0b02ed (patch)
treea681bf5e89210cc86f8108696e4f51ee16d62ee6 /lib/nodes/drawn_dasher.js
parent7ade6f8d96825386bf2e89dea51f9297cbac8e9c (diff)
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
Diffstat (limited to 'lib/nodes/drawn_dasher.js')
-rw-r--r--lib/nodes/drawn_dasher.js27
1 files changed, 27 insertions, 0 deletions
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
+};
+