diff options
author | Joris | 2021-02-14 20:25:55 +0100 |
---|---|---|
committer | Joris | 2021-02-14 20:25:55 +0100 |
commit | f47b2e3f68e69238b731d6183e739805db20ae5b (patch) | |
tree | 2eaa3937cdec3dccf4e751f9b519833740e69aca /public | |
parent | 0b60fd8c2cf5746a45cea137d2eac918ca7a8307 (diff) |
Control a ship that can fire missiles
Diffstat (limited to 'public')
-rw-r--r-- | public/icon.png | bin | 0 -> 1060 bytes | |||
-rw-r--r-- | public/index.html | 27 | ||||
-rw-r--r-- | public/main.css | 11 |
3 files changed, 38 insertions, 0 deletions
diff --git a/public/icon.png b/public/icon.png Binary files differnew file mode 100644 index 0000000..3bc9ba2 --- /dev/null +++ b/public/icon.png diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..bcedaf9 --- /dev/null +++ b/public/index.html @@ -0,0 +1,27 @@ +<!doctype html> +<html lang="fr"> +<meta charset="utf-8"> +<meta name="viewport" content="width=device-width"> +<title>Shoot</title> +<link rel="stylesheet" href="/main.css"> +<link rel="icon" href="/icon.png"> + +<canvas width="1000" height="600"></canvas> + +<script> + // https://github.com/al6x/stupid-simple-typescript-web-starter + window.define = function(name, required, moduleFn) { + var require = function() { throw new Error("AMD require not supported!")} + var exports = window.define.modules[name] = {} + var resolved = [require, exports] + for (var i = 2; i < required.length; i++) { + var m = window.define.modules[required[i]] + if (!m) throw new Error("AMD module `" + required[i] + "` not found!") + resolved.push(m) + } + moduleFn.apply(null, resolved) + } + window.define.modules = {} +</script> + +<script src="main.js"></script> diff --git a/public/main.css b/public/main.css new file mode 100644 index 0000000..2654c0e --- /dev/null +++ b/public/main.css @@ -0,0 +1,11 @@ +html { + height: 100%; +} + +body { + height: 100%; + margin: 0; + display: flex; + justify-content: center; + align-items: center; +} |