From 6a4dd8790c5c98466087a5374611f72131eff958 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Mon, 2 May 2022 05:58:26 -0700 Subject: web: generate all required files in new dir --- web/dartboat_wasm.c | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 web/dartboat_wasm.c (limited to 'web/dartboat_wasm.c') 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 -#include - -#include - -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()); -} -- cgit v1.2.3-70-g09d2