setup
This commit is contained in:
parent
658949c7d4
commit
24530a0370
25
index.html
Normal file
25
index.html
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<!-- <link rel="icon" type="image/gif" href="icon.png"/> -->
|
||||||
|
<title>title</title>
|
||||||
|
<style>
|
||||||
|
html {
|
||||||
|
background-color: #242424;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
canvas {
|
||||||
|
position:absolute;
|
||||||
|
top:0;bottom:0;right:0;left:0;
|
||||||
|
margin:auto;
|
||||||
|
border: 5px solid rgb(63, 63, 63);
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<canvas width="1000" height="800" id="game"></canvas>
|
||||||
|
<script src="scripts/game.js"></script>
|
||||||
|
<script src="scripts/index.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
BIN
pixelmix.ttf
Normal file
BIN
pixelmix.ttf
Normal file
Binary file not shown.
1063
scripts/game.js
Normal file
1063
scripts/game.js
Normal file
File diff suppressed because it is too large
Load Diff
29
scripts/index.js
Normal file
29
scripts/index.js
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
images = [
|
||||||
|
""
|
||||||
|
];
|
||||||
|
|
||||||
|
audio = [
|
||||||
|
""
|
||||||
|
];
|
||||||
|
|
||||||
|
function update() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function input() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function draw() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function absoluteDraw() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function onAssetsLoaded() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
setup(60);
|
Reference in New Issue
Block a user