summaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorLogan Hunt <loganhunt@simponic.xyz>2022-04-02 16:04:13 -0600
committerLogan Hunt <loganhunt@simponic.xyz>2022-04-02 16:04:13 -0600
commit5a55b5fa0c678ff03842d2adec8543e754546718 (patch)
tree4f615829acc10045d81a9d553c757a14792bf81a /src/components
parent4d34b0b4b890e957030fbf6e3c8e1d4a02d2a627 (diff)
downloadbbiy-5a55b5fa0c678ff03842d2adec8543e754546718.tar.gz
bbiy-5a55b5fa0c678ff03842d2adec8543e754546718.zip
Grid system & simple physics
Diffstat (limited to 'src/components')
-rw-r--r--src/components/gridPosition.js1
-rw-r--r--src/components/momentum.js1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/components/gridPosition.js b/src/components/gridPosition.js
new file mode 100644
index 0000000..ede4b23
--- /dev/null
+++ b/src/components/gridPosition.js
@@ -0,0 +1 @@
+game.components.GridPosition = ({x, y}) => game.Component('gridPosition', {x, y}); \ No newline at end of file
diff --git a/src/components/momentum.js b/src/components/momentum.js
new file mode 100644
index 0000000..b974aa7
--- /dev/null
+++ b/src/components/momentum.js
@@ -0,0 +1 @@
+game.components.Momentum = ({dx, dy}) => game.Component('momentum', {dx, dy}); \ No newline at end of file