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/web_main.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 web/web_main.c (limited to 'web/web_main.c') diff --git a/web/web_main.c b/web/web_main.c new file mode 100644 index 0000000..42535aa --- /dev/null +++ b/web/web_main.c @@ -0,0 +1,31 @@ +#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