diff --git a/Web/VisualStudioTemplate/OpenSiv3D(0.6.0)Web/MyTemplate.vstemplate b/Web/VisualStudioTemplate/OpenSiv3D(0.6.0)Web/MyTemplate.vstemplate
index eb5f8231d..fe9c19093 100644
--- a/Web/VisualStudioTemplate/OpenSiv3D(0.6.0)Web/MyTemplate.vstemplate
+++ b/Web/VisualStudioTemplate/OpenSiv3D(0.6.0)Web/MyTemplate.vstemplate
@@ -176,6 +176,8 @@
resources\engine\texture\box-shadow\32.png
resources\engine\texture\box-shadow\64.png
resources\engine\texture\box-shadow\8.png
+ Templates\Embeddable\web-player.html
+ Templates\Embeddable\web-player.js
\ No newline at end of file
diff --git a/Web/VisualStudioTemplate/OpenSiv3D(0.6.0)Web/Siv3DTest.vcxproj b/Web/VisualStudioTemplate/OpenSiv3D(0.6.0)Web/Siv3DTest.vcxproj
index 5e3108dd3..9f03c6661 100644
--- a/Web/VisualStudioTemplate/OpenSiv3D(0.6.0)Web/Siv3DTest.vcxproj
+++ b/Web/VisualStudioTemplate/OpenSiv3D(0.6.0)Web/Siv3DTest.vcxproj
@@ -253,16 +253,23 @@
+
+
+
+
$(ProjectDir)\resources@/resources;$(ProjectDir)\example@/example
- -s USE_ZLIB=1 -s USE_LIBPNG=1 -s USE_OGG=1 -s USE_VORBIS=1 -s ERROR_ON_UNDEFINED_SYMBOLS=0 -s FULL_ES3=1 -s USE_GLFW=3 -s MIN_WEBGL_VERSION=2 -s MAX_WEBGL_VERSION=2 -s USE_SDL=2 %(AdditionalOptions)
+ -s USE_ZLIB=1 -s USE_LIBPNG=1 -s USE_OGG=1 -s USE_VORBIS=1 -s ERROR_ON_UNDEFINED_SYMBOLS=0 -s FULL_ES3=1 -s USE_GLFW=3 -s MIN_WEBGL_VERSION=2 -s MAX_WEBGL_VERSION=2 -s USE_SDL=2 -s MODULARIZE=1 %(AdditionalOptions)
$(LibraryPath);%(AdditionalLinkDirectories)
Siv3D;opencv_objdetect;opencv_photo;opencv_imgproc;opencv_core;harfbuzz;freetype;turbojpeg;gif;webp;opusfile;opus;tiff;
false
$(SIV3D_0_6_0_WEB)\lib\Siv3D.js;
+ $(ProjectDir)\Templates\Embeddable\web-player.js
+ $(ProjectDir)\Templates\Embeddable\web-player.html
true
true
+
$(IncludePath);
@@ -277,14 +284,17 @@
-D_XM_NO_INTRINSICS_
- -s USE_ZLIB=1 -s USE_LIBPNG=1 -s USE_OGG=1 -s USE_VORBIS=1 -s ERROR_ON_UNDEFINED_SYMBOLS=0 -s FULL_ES3=1 -s USE_GLFW=3 -s MIN_WEBGL_VERSION=2 -s MAX_WEBGL_VERSION=2 -s USE_SDL=2 %(AdditionalOptions)
+ -s USE_ZLIB=1 -s USE_LIBPNG=1 -s USE_OGG=1 -s USE_VORBIS=1 -s ERROR_ON_UNDEFINED_SYMBOLS=0 -s FULL_ES3=1 -s USE_GLFW=3 -s MIN_WEBGL_VERSION=2 -s MAX_WEBGL_VERSION=2 -s USE_SDL=2 -s MODULARIZE=1 %(AdditionalOptions)
Siv3D;opencv_objdetect;opencv_photo;opencv_imgproc;opencv_core;harfbuzz;freetype;turbojpeg;gif;webp;opusfile;opus;tiff;
$(ProjectDir)\resources@/resources;$(ProjectDir)\example@/example
$(SIV3D_0_6_0_WEB)\lib\Siv3D.js;
+ $(ProjectDir)\Templates\Embeddable\web-player.js
+ $(ProjectDir)\Templates\Embeddable\web-player.html
$(LibraryPath);%(AdditionalLinkDirectories)
false
true
true
+
diff --git a/Web/VisualStudioTemplate/OpenSiv3D(0.6.0)Web/Siv3DTest.vcxproj.filters b/Web/VisualStudioTemplate/OpenSiv3D(0.6.0)Web/Siv3DTest.vcxproj.filters
index e8f490fc0..9b57eaedc 100644
--- a/Web/VisualStudioTemplate/OpenSiv3D(0.6.0)Web/Siv3DTest.vcxproj.filters
+++ b/Web/VisualStudioTemplate/OpenSiv3D(0.6.0)Web/Siv3DTest.vcxproj.filters
@@ -121,6 +121,12 @@
{aeb4dbf4-f1ba-402b-9249-c3056a02598d}
+
+ {3DC55764-A3B8-4D7E-AA91-C3C467637996}
+
+
+ {1155355D-3484-407F-BCE3-BC5EB094E4DD}
+
@@ -606,6 +612,14 @@
Resource Files\example
+
+
+ Template Files\Embeddable
+
+
+ Template Files\Embeddable
+
+
Source Files
diff --git a/Web/VisualStudioTemplate/OpenSiv3D(0.6.0)Web/Templates/Embeddable/web-player.html b/Web/VisualStudioTemplate/OpenSiv3D(0.6.0)Web/Templates/Embeddable/web-player.html
new file mode 100644
index 000000000..99272a403
--- /dev/null
+++ b/Web/VisualStudioTemplate/OpenSiv3D(0.6.0)Web/Templates/Embeddable/web-player.html
@@ -0,0 +1,337 @@
+
+
+
+
+
+
+
+ OpenSiv3D for Web
+
+
+
+
+
+ {{{ SCRIPT }}}
+
+
+
diff --git a/Web/VisualStudioTemplate/OpenSiv3D(0.6.0)Web/Templates/Embeddable/web-player.js b/Web/VisualStudioTemplate/OpenSiv3D(0.6.0)Web/Templates/Embeddable/web-player.js
new file mode 100644
index 000000000..be689bf2f
--- /dev/null
+++ b/Web/VisualStudioTemplate/OpenSiv3D(0.6.0)Web/Templates/Embeddable/web-player.js
@@ -0,0 +1,7 @@
+Module["getCurrentAudioContext"] = function() {
+ return Module["SDL2"].audioContext;
+}
+
+Module["getCurrentAudioSource"] = function() {
+ return Module["SDL2"].audio.scriptProcessorNode;
+}