Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<title>Javascript Snakes</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link href="snakes.min.css" media="screen, print" rel="stylesheet" type="text/css" />
<link href="snakes.css" media="screen, print" rel="stylesheet" type="text/css" />
</head>

<body>
Expand Down Expand Up @@ -63,7 +63,7 @@ <h1>High Scores</h1>

</div>

<script src="snakes.min.js"></script>
<script src="snakes.js"></script>
<script>
Game.ready(function() {
game = Snakes();
Expand Down
2 changes: 0 additions & 2 deletions snakes.css
Original file line number Diff line number Diff line change
Expand Up @@ -602,5 +602,3 @@ body {
.watermark.left { left: -302px; width: 300px; height: 720px; background: url('images/firesnake/720.left.png'); }
.watermark.right { right: -302px; width: 300px; height: 720px; background: url('images/firesnake/720.right.png'); }
}


10 changes: 5 additions & 5 deletions snakes.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ Sizzle.filter = function( expr, set, inplace, not ) {
}

if ( curLoop === result ) {
result = [];
result = [];
}

if ( Expr.preFilter[ type ] ) {
Expand Down Expand Up @@ -3976,8 +3976,8 @@ Snakes = function() {
spark.image * cfg.fruit.size, 0, cfg.fruit.size, cfg.fruit.size,
(spark.pos.x-1) * this.game.dw,
(spark.pos.y-1) * this.game.dh,
this.game.dw * 3,
this.game.dh * 3);
this.game.dw * 2,
this.game.dh * 2);
}
}

Expand All @@ -3989,8 +3989,8 @@ Snakes = function() {
this.game.fruit.image * cfg.fruit.size, 0, cfg.fruit.size, cfg.fruit.size,
(this.game.fruit.pos.x-1) * this.game.dw,
(this.game.fruit.pos.y-1) * this.game.dh,
this.game.dw * 3,
this.game.dh * 3);
this.game.dw * 2,
this.game.dh * 2);

// walls
for(n = 0, max = this.game.court.walls.length ; n < max ; n++)
Expand Down