summaryrefslogtreecommitdiff
path: root/web/dartboat_wasm.c
diff options
context:
space:
mode:
Diffstat (limited to 'web/dartboat_wasm.c')
-rw-r--r--web/dartboat_wasm.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/web/dartboat_wasm.c b/web/dartboat_wasm.c
deleted file mode 100644
index 42535aa..0000000
--- a/web/dartboat_wasm.c
+++ /dev/null
@@ -1,31 +0,0 @@
-#include "web_control.h"
-#include "web_opts.h"
-#include "web_prompt.h"
-#include "web_svg.h"
-
-#include "comp.h"
-
-#include <stdlib.h>
-#include <time.h>
-
-#include <emscripten/emscripten.h>
-
-EMSCRIPTEN_KEEPALIVE
-void init()
-{
- srand(time(NULL));
- init_board();
- svg_draw_board();
-
- EM_ASM(readOpts());
- EM_ASM({updateDelay($0)}, delay_ms);
- EM_ASM({updateStdev($0)}, horizontal_stdev);
-
- set_prompt_mode(PM_VISIT);
- handle_next();
-}
-
-int main()
-{
- EM_ASM(boatAfloat());
-}