From fb9a663440255f89fcf34b3d9ab1dda70fbef469 Mon Sep 17 00:00:00 2001 From: Simon Cambier Date: Thu, 23 Feb 2023 18:33:19 +0100 Subject: [PATCH] Commit before breaking stuff --- 0hh1.p8 | 33 +++++++++++++++++---------------- tile.lua | 7 +++++++ visuals.lua | 2 +- 3 files changed, 25 insertions(+), 17 deletions(-) create mode 100644 tile.lua diff --git a/0hh1.p8 b/0hh1.p8 index a4539a4..b84a9b9 100644 --- a/0hh1.p8 +++ b/0hh1.p8 @@ -9,6 +9,7 @@ poke4(0x5700,unpack(split"0x0000.0000,0x0000.0000,0x0202.0202,0x0000.0200,0x0000 #include globals.lua -- +#include tile.lua #include board.lua #include coroutines.lua #include ui.lua @@ -41,22 +42,22 @@ __gfx__ 50555055050505050500050055000555000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 55505550505050500050505050555055000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 50555055050505050505000555555555000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +00006666666600007000700000070007700770077007700777077707707770770000000000000000000000000000000000000000000000000000000000000000 +00060000000060000700070000700070770077000077007777707770077707770000000000000000000000000000000000000000000000000000000000000000 +00600666666006000070007007000700077007700770077077770777777077770000000000000000000000000000000000000000000000000000000000000000 +06006000000600600007000770007000007700777700770007777077770777700000000000000000000000000000000000000000000000000000000000000000 +60060066660060067000700000070007700770077007700770777707707777070000000000000000000000000000000000000000000000000000000000000000 +60600600006006060700070000700070770077000077007777077770077770770000000000000000000000000000000000000000000000000000000000000000 +60606006600606060070007007000700077007700770077007707777777707700000000000000000000000000000000000000000000000000000000000000000 +60606060060606060007000770007000007700777700770070770777777077070000000000000000000000000000000000000000000000000000000000000000 +60606060060606060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +60606006600606060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +60600600006006060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +60060066660060060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +06006000000600600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +00600666666006000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +00060000000060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +00006666666600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 cc0cc01101100cc0cc08801100110110110110011011011011001101101101100880110110110011011011011001101101101100000000000000000000000000 cc0cc01101100cc0cc08801100110110110110011011011011001101101101100880110110110011011011011001101101101100000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 diff --git a/tile.lua b/tile.lua new file mode 100644 index 0000000..fa9594a --- /dev/null +++ b/tile.lua @@ -0,0 +1,7 @@ +local Tile = {} + +function Tile.new(color) + return { + color=color + } +end diff --git a/visuals.lua b/visuals.lua index 7abd1a9..333b883 100644 --- a/visuals.lua +++ b/visuals.lua @@ -4,7 +4,7 @@ function get_main_color(tint) if tint == BLUE then return 12 elseif tint == YELLOW then - return 8 + return 9 else return 1 end