Permalink
Browse files

Less is More

  • Loading branch information...
1 parent 1a76351 commit 45958c93d76ce3d6247401064eeee2cf5778ab8d @crteal crteal committed Oct 30, 2012
Showing with 10 additions and 6 deletions.
  1. +1 −1 script/game.js
  2. +1 −1 script/utils.js
  3. +8 −4 style/style.css
View
@@ -27,7 +27,7 @@
var st,
monsters = [],
- m = map(8, ["empty", "grass", "grass2", "block", "monster"], [3.25, 1.25, 1, 2, 0.5], function (t, r, c) {
+ m = map(16, ["empty", "grass", "grass2", "block", "monster"], [3.25, 1.25, 1, 2, 0.5], function (t, r, c) {
if(initPosition[1] == r && initPosition[0] == c) {
return "";
} else {
View
@@ -40,5 +40,5 @@ function vect2dAdd(a, b) {
}
function inbounds(x, y) {
- return x < 8 && x >= 0 && y < 8 && y >= 0;
+ return x < 16 && x >= 0 && y < 16 && y >= 0;
}
View
@@ -10,17 +10,18 @@ body {
.row {
clear: both;
- height: 64px;
+ height: 32px;
}
.tile {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
background: url('../resources/empty.svg');
+ background-size: 32px 32px;
float: left;
- height: 100%;
- width: 64px;
+ height: inherit;
+ width: 32px;
}
.player {
@@ -30,15 +31,18 @@ body {
}
.tile.grass {
- background: url('../resources/grass.svg');
+ background: url('../resources/grass.svg');
+ background-size: 32px 32px;
}
.tile.grass2 {
background: url('../resources/grass2.svg');
+ background-size: 32px 32px;
}
.tile.block {
background: url('../resources/block.svg');
+ background-size: 32px 32px;
}
.tile.monster {

0 comments on commit 45958c9

Please sign in to comment.