-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
- Loading branch information
There are no files selected for viewing
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.
Large diffs are not rendered by default.
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.
Large diffs are not rendered by default.
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> |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
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.
Large diffs are not rendered by default.
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.
Large diffs are not rendered by default.
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> |
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> |
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.
Large diffs are not rendered by default.