summaryrefslogtreecommitdiff
path: root/client/splash/face/index.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-01-28 00:12:14 +0100
committerJules Laplace <julescarbon@gmail.com>2019-01-28 00:12:14 +0100
commitbd0bb81ee5d1856f3b3e86b43ac7ff7312472dfe (patch)
tree95c7154838296385d2bda1235c3ae66d0aa8b351 /client/splash/face/index.js
parent93a7fae69e5c3a45515a309cfcd96a0fa90a602b (diff)
moar constants etc
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)
+}