summaryrefslogtreecommitdiff
path: root/client/splash/face/index.js
diff options
context:
space:
mode:
authoradamhrv <adam@ahprojects.com>2019-01-28 18:11:52 +0100
committeradamhrv <adam@ahprojects.com>2019-01-28 18:11:52 +0100
commitf8b279b2f0be793c5f877cac6373332954c6a5de (patch)
tree60be7caeb0e8c96c59718300c68d5b1cdecde6f4 /client/splash/face/index.js
parentdd2c36288aa1e8af14588f9258f6785879b8638c (diff)
parentb0eb2d9672044a1b64a2a1f21540f9ef1bd7b571 (diff)
Merge branch 'master' of github.com:adamhrv/megapixels_dev
Diffstat (limited to 'client/splash/face/index.js')
-rw-r--r--client/splash/face/index.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/client/splash/face/index.js b/client/splash/face/index.js
new file mode 100644
index 00000000..4090a9fa
--- /dev/null
+++ b/client/splash/face/index.js
@@ -0,0 +1,22 @@
+import { choice } from '../../util'
+import { faces, names } from './faces'
+import * as markers from './markers'
+import * as mesh from './mesh'
+
+export function init() {
+ const name = choice(names)
+ const face = faces[name]
+ markers.build(face)
+ mesh.load(name)
+}
+
+export function load() {
+ const name = choice(names)
+ const face = faces[name]
+ markers.swap(face)
+ // mesh.load(name)
+}
+
+export function update() {
+ // markers.update()
+}