summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2023-03-17 19:10:46 +0100
committerkdx <kikoodx@paranoici.org>2023-03-17 19:10:46 +0100
commit1e02a6cf8a3acad1469eb7f3d718c54a4bb6cad3 (patch)
treeb7a5cd5a0e5422dbb1c0e27980ee09c37d8e5ebb
parent5a84257033fe83d08b11ec845fbee1fa7bc56ca4 (diff)
downloadhyperultra-1e02a6cf8a3acad1469eb7f3d718c54a4bb6cad3.tar.gz
tweak graphics to look better on calc
-rw-r--r--src/background.c2
-rw-r--r--src/map.c4
-rw-r--r--src/player.c6
3 files changed, 5 insertions, 7 deletions
diff --git a/src/background.c b/src/background.c
index 3694ce8..4d17af3 100644
--- a/src/background.c
+++ b/src/background.c
@@ -2,7 +2,7 @@
#include "cfg.h"
#include <math.h>
-long tick = 0;
+static long tick = 0;
static void
rotate(double *x, double *y, double angle)
diff --git a/src/map.c b/src/map.c
index 8cade23..bcd40a0 100644
--- a/src/map.c
+++ b/src/map.c
@@ -22,12 +22,10 @@ map_get_px(int x, int y)
void
map_draw(void)
{
- extern long tick;
- const int tile_id = 1 + tick / 18 % 2;
for (int y = 0; y < 14; y++)
for (int x = 0; x < map_00_json.width; x++)
if (map_00_json.data[x + y * map_00_json.width] == 1) {
LZY_DrawSetColor(BLACK);
- LZY_DrawTile(tile_id, x * 16, y * 16);
+ LZY_DrawTile(1, x * 16, y * 16);
}
}
diff --git a/src/player.c b/src/player.c
index 485296c..3ff73f7 100644
--- a/src/player.c
+++ b/src/player.c
@@ -62,9 +62,9 @@ player_draw(Entity *this, Game *g)
LZY_DrawRect(this->pos[0] - width / 2,
this->pos[1] - height / 2,
width, height);
- LZY_DrawRect(this->pos[0] - width / 2 + 1,
- this->pos[1] - height / 2 + 1,
- width - 2, height - 2);
+ //LZY_DrawRect(this->pos[0] - width / 2 + 1,
+ // this->pos[1] - height / 2 + 1,
+ // width - 2, height - 2);
}
void