-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
0 parents
commit bdc4dee
Showing
31 changed files
with
973 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.