summaryrefslogtreecommitdiff
path: root/client/splash/face/index.js
diff options
context:
space:
mode:
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()
+}