Skip to content

Commit

Permalink
Deploy to GitHub pages
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Jun 12, 2024
0 parents commit 1f7c73d
Show file tree
Hide file tree
Showing 34 changed files with 1,050 additions and 0 deletions.
47 changes: 47 additions & 0 deletions catchthecat.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>
#canvas {
position: absolute;
top: 0px;
left: 0px;
margin: 0px;
width: 100%;
height: 100%;
overflow: hidden;
display: block;
}
</style>
</head>

<body>

<!-- Create the canvas that the C++ code will draw into -->
<canvas id="canvas" oncontextmenu="event.preventDefault()"></canvas>

<!-- Allow the C++ to access the canvas element -->
<script type='text/javascript'>
var canvas = document.getElementById("canvas");
//make the canvas fullscreen
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;

canvas.oncontextmenu = function (e) {
e.preventDefault();
};

//show Emscripten environment where the canvas is
var Module = {};
Module.canvas = canvas;
</script>

<!-- Add the javascript glue code (index.js) as generated by Emscripten -->
<script src="catchthecat.js"></script>

</body>

</html>
1 change: 1 addition & 0 deletions catchthecat.js

Large diffs are not rendered by default.

Binary file added catchthecat.wasm
Binary file not shown.
76 changes: 76 additions & 0 deletions catchthecat.wasm.js

Large diffs are not rendered by default.

47 changes: 47 additions & 0 deletions chess.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>
#canvas {
position: absolute;
top: 0px;
left: 0px;
margin: 0px;
width: 100%;
height: 100%;
overflow: hidden;
display: block;
}
</style>
</head>

<body>

<!-- Create the canvas that the C++ code will draw into -->
<canvas id="canvas" oncontextmenu="event.preventDefault()"></canvas>

<!-- Allow the C++ to access the canvas element -->
<script type='text/javascript'>
var canvas = document.getElementById("canvas");
//make the canvas fullscreen
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;

canvas.oncontextmenu = function (e) {
e.preventDefault();
};

//show Emscripten environment where the canvas is
var Module = {};
Module.canvas = canvas;
</script>

<!-- Add the javascript glue code (index.js) as generated by Emscripten -->
<script src="chess.js"></script>

</body>

</html>
1 change: 1 addition & 0 deletions chess.js

Large diffs are not rendered by default.

Binary file added chess.wasm
Binary file not shown.
76 changes: 76 additions & 0 deletions chess.wasm.js

Large diffs are not rendered by default.

47 changes: 47 additions & 0 deletions editor.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>
#canvas {
position: absolute;
top: 0px;
left: 0px;
margin: 0px;
width: 100%;
height: 100%;
overflow: hidden;
display: block;
}
</style>
</head>

<body>

<!-- Create the canvas that the C++ code will draw into -->
<canvas id="canvas" oncontextmenu="event.preventDefault()"></canvas>

<!-- Allow the C++ to access the canvas element -->
<script type='text/javascript'>
var canvas = document.getElementById("canvas");
//make the canvas fullscreen
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;

canvas.oncontextmenu = function (e) {
e.preventDefault();
};

//show Emscripten environment where the canvas is
var Module = {};
Module.canvas = canvas;
</script>

<!-- Add the javascript glue code (index.js) as generated by Emscripten -->
<script src="editor.js"></script>

</body>

</html>
1 change: 1 addition & 0 deletions editor.js

Large diffs are not rendered by default.

Binary file added editor.wasm
Binary file not shown.
76 changes: 76 additions & 0 deletions editor.wasm.js

Large diffs are not rendered by default.

47 changes: 47 additions & 0 deletions flocking.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>
#canvas {
position: absolute;
top: 0px;
left: 0px;
margin: 0px;
width: 100%;
height: 100%;
overflow: hidden;
display: block;
}
</style>
</head>

<body>

<!-- Create the canvas that the C++ code will draw into -->
<canvas id="canvas" oncontextmenu="event.preventDefault()"></canvas>

<!-- Allow the C++ to access the canvas element -->
<script type='text/javascript'>
var canvas = document.getElementById("canvas");
//make the canvas fullscreen
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;

canvas.oncontextmenu = function (e) {
e.preventDefault();
};

//show Emscripten environment where the canvas is
var Module = {};
Module.canvas = canvas;
</script>

<!-- Add the javascript glue code (index.js) as generated by Emscripten -->
<script src="flocking.js"></script>

</body>

</html>
1 change: 1 addition & 0 deletions flocking.js

Large diffs are not rendered by default.

Binary file added flocking.wasm
Binary file not shown.
76 changes: 76 additions & 0 deletions flocking.wasm.js

Large diffs are not rendered by default.

47 changes: 47 additions & 0 deletions hideandseek.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>
#canvas {
position: absolute;
top: 0px;
left: 0px;
margin: 0px;
width: 100%;
height: 100%;
overflow: hidden;
display: block;
}
</style>
</head>

<body>

<!-- Create the canvas that the C++ code will draw into -->
<canvas id="canvas" oncontextmenu="event.preventDefault()"></canvas>

<!-- Allow the C++ to access the canvas element -->
<script type='text/javascript'>
var canvas = document.getElementById("canvas");
//make the canvas fullscreen
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;

canvas.oncontextmenu = function (e) {
e.preventDefault();
};

//show Emscripten environment where the canvas is
var Module = {};
Module.canvas = canvas;
</script>

<!-- Add the javascript glue code (index.js) as generated by Emscripten -->
<script src="hideandseek.js"></script>

</body>

</html>
1 change: 1 addition & 0 deletions hideandseek.js

Large diffs are not rendered by default.

Binary file added hideandseek.wasm
Binary file not shown.
76 changes: 76 additions & 0 deletions hideandseek.wasm.js

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<html>
<body>
<a href="editor.html">Editor demo</a> <br>
<a href="flocking.html">Flocking demo</a> <br>
<a href="catchthecat.html">Catch the cat demo</a> <br>
<a href="maze.html">Maze Generation demo</a> <br>
<a href="scenario.html">Scenario Generation demo</a> <br>
<a href="life.html">Game Of Life demo</a> <br>
<a href="chess.html">Chess demo</a> <br>
<a href="hideandseek.html">Hide And Seek demo</a> <br>
</body>
</html>
45 changes: 45 additions & 0 deletions index2.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>
#canvas {
position: relative;
margin: auto;
width: 50vw;
height: 50vh;
overflow: hidden;
display: flex;
}
</style>
</head>

<body>

<!-- Create the canvas that the C++ code will draw into -->
<canvas id="canvas" oncontextmenu="event.preventDefault()"></canvas>

<!-- Allow the C++ to access the canvas element -->
<script type='text/javascript'>
var canvas = document.getElementById("canvas");
//make the canvas fullscreen
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;

canvas.oncontextmenu = function (e) {
e.preventDefault();
};

//show Emscripten environment where the canvas is
var Module = {};
Module.canvas = canvas;
</script>

<!-- Add the javascript glue code (index.js) as generated by Emscripten -->
<script src="maze.js"></script>

</body>

</html>
47 changes: 47 additions & 0 deletions life.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>
#canvas {
position: absolute;
top: 0px;
left: 0px;
margin: 0px;
width: 100%;
height: 100%;
overflow: hidden;
display: block;
}
</style>
</head>

<body>

<!-- Create the canvas that the C++ code will draw into -->
<canvas id="canvas" oncontextmenu="event.preventDefault()"></canvas>

<!-- Allow the C++ to access the canvas element -->
<script type='text/javascript'>
var canvas = document.getElementById("canvas");
//make the canvas fullscreen
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;

canvas.oncontextmenu = function (e) {
e.preventDefault();
};

//show Emscripten environment where the canvas is
var Module = {};
Module.canvas = canvas;
</script>

<!-- Add the javascript glue code (index.js) as generated by Emscripten -->
<script src="life.js"></script>

</body>

</html>
1 change: 1 addition & 0 deletions life.js

Large diffs are not rendered by default.

Binary file added life.wasm
Binary file not shown.
77 changes: 77 additions & 0 deletions life.wasm.js

Large diffs are not rendered by default.

Loading

0 comments on commit 1f7c73d

Please sign in to comment.