aboutsummaryrefslogtreecommitdiff
path: root/lib/nodes/drawn_grabber.js
diff options
context:
space:
mode:
authorRubén Beltrán del Río <ben@nsovocal.com>2018-05-28 21:35:38 -0500
committerGitHub <noreply@github.com>2018-05-28 21:35:38 -0500
commit1676911c8a2621274bf75ff7271faa926cf58d6c (patch)
tree776613e919a5fae242ba65f0871028d4c678bcff /lib/nodes/drawn_grabber.js
parent764ac76aa90b75cd5d79c217220654a6975069af (diff)
Add Grab System (#9)
* Remove unused code * Adds grab components * Adds grab nodes * Add sensors to the physics world * Add grab systems * Add new sprites * Attach grab components * Add grab system to engine * Update changelog
Diffstat (limited to 'lib/nodes/drawn_grabber.js')
-rw-r--r--lib/nodes/drawn_grabber.js27
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/nodes/drawn_grabber.js b/lib/nodes/drawn_grabber.js
new file mode 100644
index 0000000..49af6d4
--- /dev/null
+++ b/lib/nodes/drawn_grabber.js
@@ -0,0 +1,27 @@
+import { Node } from '@serpentity/serpentity';
+
+import GrabComponent from '../components/grab';
+import PixiContainerComponent from '../components/pixi_container';
+
+/**
+ * Node identifying an entity that can grab and is drawn
+ *
+ * @extends {external:Serpentity.Node}
+ * @class DrawnGrabberNode
+ */
+export default class DrawnGrabberNode extends Node {
+
+};
+
+/**
+ * Holds the types that are used to identify a drawn grabber entity
+ *
+ * @property {object} types
+ * @name types
+ * @memberof DrawnGrabberNode
+ */
+DrawnGrabberNode.types = {
+ container: PixiContainerComponent,
+ grab: GrabComponent
+};
+