From 533741c77c5c8372dae1d4043f78ca62297b0c26 Mon Sep 17 00:00:00 2001 From: realtradam Date: Mon, 24 Jan 2022 13:09:12 -0500 Subject: html shell added for web export --- .gitignore | 3 +- Rakefile | 2 +- game | 1 + vendor/html/minshell.html | 81 ++++++++++++++++++++++++++++++++++++++++ vendor/lib/tux/mruby/libmruby.a | Bin 8581804 -> 8602108 bytes vendor/lib/web/mruby/libmruby.a | Bin 1449104 -> 1452614 bytes 6 files changed, 85 insertions(+), 2 deletions(-) create mode 160000 game create mode 100644 vendor/html/minshell.html diff --git a/.gitignore b/.gitignore index c6b7be3..749a0ef 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ build/* -game/* + game/* + game diff --git a/Rakefile b/Rakefile index 1ab116a..e89b757 100644 --- a/Rakefile +++ b/Rakefile @@ -51,7 +51,7 @@ namespace :build do task :web => :bytecode do Dir.mkdir("build/web") unless File.exists?("build/web") Dir.chdir("build/web") do - system("emcc -Os -Wall -I#{@include_dir}/raylib -I#{@include_dir}/mruby -I#{@bytecode_header_path} #{@vendor_dir}/boilerplate.c #{@library_dir}/web/mruby/libmruby.a #{@library_dir}/web/raylib/libraylib.a -o index.html -s USE_GLFW=3 -DPLATFORM_WEB --preload-file ./assets") + system("emcc -Os -Wall -I#{@include_dir}/raylib -I#{@include_dir}/mruby -I#{@bytecode_header_path} #{@vendor_dir}/boilerplate.c #{@library_dir}/web/mruby/libmruby.a #{@library_dir}/web/raylib/libraylib.a -o index.html -s USE_GLFW=3 -DPLATFORM_WEB --preload-file ./assets --shell-file #{@vendor_dir}/html/minshell.html") end end desc 'Build the game for Linux' diff --git a/game b/game new file mode 160000 index 0000000..941e30c --- /dev/null +++ b/game @@ -0,0 +1 @@ +Subproject commit 941e30c5f5c1bf2984a35f34f5a272d774b52c39 diff --git a/vendor/html/minshell.html b/vendor/html/minshell.html new file mode 100644 index 0000000..5705975 --- /dev/null +++ b/vendor/html/minshell.html @@ -0,0 +1,81 @@ + + + + + + + raylib web game + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+ + {{{ SCRIPT }}} + + diff --git a/vendor/lib/tux/mruby/libmruby.a b/vendor/lib/tux/mruby/libmruby.a index 0b4653c..5cf9ab5 100644 Binary files a/vendor/lib/tux/mruby/libmruby.a and b/vendor/lib/tux/mruby/libmruby.a differ diff --git a/vendor/lib/web/mruby/libmruby.a b/vendor/lib/web/mruby/libmruby.a index 2680589..1c06ba9 100644 Binary files a/vendor/lib/web/mruby/libmruby.a and b/vendor/lib/web/mruby/libmruby.a differ -- cgit v1.2.3