add simple fuzz test
|
@ -1,23 +0,0 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="icon" type="image/png" href="img/favicon.png">
|
||||
<link rel="stylesheet" type="text/css" href="css/styles.css">
|
||||
|
||||
<title>
|
||||
Wingbase
|
||||
</title>
|
||||
|
||||
<script src="js/lib/socket.io.js"></script>
|
||||
<script src="js/lib/box2dweb.min.js"></script>
|
||||
<script src="https://rawgit.com/Asraelite/pallet.js/master/pallet.js"></script>
|
||||
|
||||
<script src="starbugs.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<canvas id="wingbase_canvas">
|
||||
Sorry, your browser does not currently support HTML5 Canvas.
|
||||
</canvas>
|
||||
</body>
|
||||
</html>
|
Before Width: | Height: | Size: 486 B After Width: | Height: | Size: 486 B |
Before Width: | Height: | Size: 649 B After Width: | Height: | Size: 649 B |
Before Width: | Height: | Size: 678 B After Width: | Height: | Size: 678 B |
Before Width: | Height: | Size: 422 B After Width: | Height: | Size: 422 B |
Before Width: | Height: | Size: 355 B After Width: | Height: | Size: 355 B |
Before Width: | Height: | Size: 154 B After Width: | Height: | Size: 154 B |
Before Width: | Height: | Size: 156 B After Width: | Height: | Size: 156 B |
Before Width: | Height: | Size: 126 B After Width: | Height: | Size: 126 B |
Before Width: | Height: | Size: 122 B After Width: | Height: | Size: 122 B |
Before Width: | Height: | Size: 124 B After Width: | Height: | Size: 124 B |
Before Width: | Height: | Size: 121 B After Width: | Height: | Size: 121 B |
Before Width: | Height: | Size: 127 B After Width: | Height: | Size: 127 B |
Before Width: | Height: | Size: 144 B After Width: | Height: | Size: 144 B |
Before Width: | Height: | Size: 167 B After Width: | Height: | Size: 167 B |
Before Width: | Height: | Size: 179 B After Width: | Height: | Size: 179 B |
Before Width: | Height: | Size: 210 B After Width: | Height: | Size: 210 B |
Before Width: | Height: | Size: 219 B After Width: | Height: | Size: 219 B |
Before Width: | Height: | Size: 233 B After Width: | Height: | Size: 233 B |
Before Width: | Height: | Size: 195 B After Width: | Height: | Size: 195 B |
Before Width: | Height: | Size: 132 B After Width: | Height: | Size: 132 B |
3
public/static/js/lib/dexie.min.js
vendored
Normal file
7
public/static/js/wingbase/db.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
class DB {
|
||||
constructor() {
|
||||
this.db = new Dexie("WingbaseConfig");
|
||||
this.db.version(1).stores({config: "++id,name,age"});
|
||||
this.db.open();
|
||||
}
|
||||
}
|
|
@ -9,7 +9,7 @@ function init() {
|
|||
|
||||
game.tick();
|
||||
|
||||
game.net.connect();
|
||||
//game.net.connect();
|
||||
}
|
||||
|
||||
class Game {
|
|
@ -41,6 +41,8 @@ class Net {
|
|||
this.socket.on('effect', data => {
|
||||
game.renderer.addEffect(data);
|
||||
});
|
||||
|
||||
this.socket.on('chat', data => console.log(data));
|
||||
};
|
||||
|
||||
sendUpdate(inputs) {
|
19
public/views/game.jade
Normal file
|
@ -0,0 +1,19 @@
|
|||
doctype html
|
||||
html(lang='en')
|
||||
head
|
||||
meta(charset="UTF-8")
|
||||
link(rel="icon", type="image/png", href="img/favicon.png")
|
||||
link(rel="stylesheet", type="text/css", href="css/styles.css")
|
||||
title
|
||||
| Wingbase
|
||||
script(src="js/lib/dexie.min.js")
|
||||
script(src="socket.io/socket.io.js")
|
||||
script(src="js/lib/box2dweb.min.js")
|
||||
script(src="https://rawgit.com/Asraelite/pallet.js/master/pallet.js")
|
||||
|
||||
script(src="wingbase.min.js")
|
||||
body
|
||||
canvas#wingbase_canvas
|
||||
| Sorry, your browser does not currently support HTML5 Canvas.
|
||||
#gui
|
||||
include
|
1
public/views/index.jade
Normal file
|
@ -0,0 +1 @@
|
|||
include game.jade
|