From acc2836e12b021283b95d4db4337f4413c304be2 Mon Sep 17 00:00:00 2001 From: cflip Date: Sun, 27 Feb 2022 13:42:13 -0700 Subject: Add highlight on hovered tiles --- src/level.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/level.h') diff --git a/src/level.h b/src/level.h index 948dfcb..897daa5 100644 --- a/src/level.h +++ b/src/level.h @@ -6,7 +6,7 @@ class Level { public: - Level(int width, int height); + Level(int width, int height, Bitmap& tileSprites); ~Level() { delete[] m_tiles; } uint8_t get(int x, int y); @@ -17,7 +17,7 @@ public: void toggleTile(int x, int y); private: - Bitmap m_tileSprites; + Bitmap& m_tileSprites; int m_width, m_height; uint8_t* m_tiles; }; -- cgit v1.2.3