This commit is contained in:
Malloc of Kuzkycyziklistan 2017-04-17 16:02:12 -05:00
parent 631b620b47
commit 09219e12b4
5 changed files with 26 additions and 2 deletions

11
client/.vscode/tasks.json vendored Normal file
View file

@ -0,0 +1,11 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "0.1.0",
"command": "tsc",
"isShellCommand": true,
"args": ["-w", "-p", "."],
//"showOutput": "silent",
"isBackground": true,
"problemMatcher": "$tsc-watch"
}

7
client/game.js Normal file
View file

@ -0,0 +1,7 @@
var FileCache = (function () {
function FileCache() {
}
FileCache.Initialize = function () {
};
return FileCache;
}());

View file

@ -3,7 +3,7 @@
<head> <head>
<title>CircleScape</title> <title>CircleScape</title>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<script type="text/javascript" src=""></script> <script type="text/javascript" src="game.js"></script>
</head> </head>
<body> <body>
<canvas id="cs"> <canvas id="cs">

View file

@ -1,5 +1,5 @@
class FileCache { class FileCache {
static Initialize() { static Initialize() {
} }
} }

6
client/src/Init.js Normal file
View file

@ -0,0 +1,6 @@
window.indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB;
window.IDBTransaction = window.IDBTransaction || window.webkitIDBTransaction || window.msIDBTransaction;
window.IDBKeyRange = window.IDBKeyRange || window.webkitIDBKeyRange || window.msIDBKeyRange
if (!window.indexedDB)
window.alert("Your browser doesn't support a stable version of IndexedDB.");