summaryrefslogtreecommitdiff
path: root/level.c
diff options
context:
space:
mode:
Diffstat (limited to 'level.c')
-rw-r--r--level.c26
1 files changed, 8 insertions, 18 deletions
diff --git a/level.c b/level.c
index dbf27da..f45f0d4 100644
--- a/level.c
+++ b/level.c
@@ -4,22 +4,12 @@
#include <stdlib.h>
static const char level[LEVEL_HEIGHT * LEVEL_WIDTH] = {
- "000000000000"
- "0..........0"
- "0..........0"
- "0..........0"
- "0..........0"
- "0..........0"
- "0..........0"
- "0..........0"
- "0..........0"
- "0..........0"
- "0..........0"
- "0..........0"
- "0..........0"
- "0..........0"
- "0..........0"
- "000000000000"
+ "0....."
+ "......"
+ "......"
+ "......"
+ "......"
+ ".....0"
};
void level_draw()
@@ -27,8 +17,8 @@ void level_draw()
LZR_DrawSetColor(1, 1, 1, 1);
for (int y = 0; y < LEVEL_HEIGHT; y++)
for (int x = 0; x < LEVEL_WIDTH; x++) {
- const int dx = (x + 3) * CFG_TSIZE;
- const int dy = y * CFG_TSIZE;
+ const int dx = (x + 6) * CFG_TSIZE;
+ const int dy = (y + 5) * CFG_TSIZE;
if (level_get(x, y) == '0' && ((rand() & 3) == 3 ||
LZR_GetTick() & 1))
LZR_DrawRectangle(true, dx, dy, CFG_TSIZE, CFG_TSIZE);