add simple fuzz test

This commit is contained in:
Asraelite 2016-03-27 20:26:53 +01:00
parent 0a90b6b77a
commit 27520842e3
59 changed files with 191 additions and 34 deletions

View file

@ -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>

View file

Before

Width:  |  Height:  |  Size: 486 B

After

Width:  |  Height:  |  Size: 486 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 649 B

After

Width:  |  Height:  |  Size: 649 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 678 B

After

Width:  |  Height:  |  Size: 678 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 422 B

After

Width:  |  Height:  |  Size: 422 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 355 B

After

Width:  |  Height:  |  Size: 355 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 154 B

After

Width:  |  Height:  |  Size: 154 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 156 B

After

Width:  |  Height:  |  Size: 156 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 126 B

After

Width:  |  Height:  |  Size: 126 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 122 B

After

Width:  |  Height:  |  Size: 122 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 124 B

After

Width:  |  Height:  |  Size: 124 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 121 B

After

Width:  |  Height:  |  Size: 121 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 127 B

After

Width:  |  Height:  |  Size: 127 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 144 B

After

Width:  |  Height:  |  Size: 144 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 167 B

After

Width:  |  Height:  |  Size: 167 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 179 B

After

Width:  |  Height:  |  Size: 179 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 210 B

After

Width:  |  Height:  |  Size: 210 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 219 B

After

Width:  |  Height:  |  Size: 219 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 233 B

After

Width:  |  Height:  |  Size: 233 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 195 B

After

Width:  |  Height:  |  Size: 195 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 132 B

After

Width:  |  Height:  |  Size: 132 B

Before After
Before After

3
public/static/js/lib/dexie.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View 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();
}
}

View file

@ -9,7 +9,7 @@ function init() {
game.tick();
game.net.connect();
//game.net.connect();
}
class Game {

View file

@ -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
View 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
View file

@ -0,0 +1 @@
include game.jade