Skip to content

Commit

Permalink
decreased inter block spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
chinchang committed May 27, 2012
1 parent 6d6d767 commit f932447
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions isoblocks.coffee
Expand Up @@ -140,8 +140,8 @@ class IsoBlocks
for val, j in arr
if val
# Calulate isometric position of the cube
pos_x = (row+i+col+j) * Cube.width * 0.85 + @config.x
pos_y = (row+i-(col+j)) * Cube.height / 2 * 0.85 + @config.y
pos_x = (row+i+col+j) * Cube.width * 0.8 + @config.x
pos_y = (row+i-(col+j)) * Cube.height / 2 * 0.8 + @config.y

# Calculate z-index according to the cube's position
z = parseInt 100 * pos_y - 40 * pos_x + 2000, 10
Expand Down

0 comments on commit f932447

Please sign in to comment.