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.js20
1 files changed, 15 insertions, 5 deletions
diff --git a/client/splash/face/index.js b/client/splash/face/index.js
index f52ac57b..49246e10 100644
--- a/client/splash/face/index.js
+++ b/client/splash/face/index.js
@@ -1,8 +1,18 @@
-import faces from './faces'
+import { choice } from '../../util'
+import { faces, names } from './faces'
+import * as markers from './markers'
+import * as mesh from './mesh'
-const names = Object.keys(faces)
+export function init() {
+ const name = names[0]
+ const face = faces[name]
+ markers.build(face)
+ mesh.load(name)
+}
-function load(){
+export function load() {
const name = choice(names)
-
-} \ No newline at end of file
+ const face = faces[name]
+ markers.swap(face)
+ mesh.load(name)
+}