From 2c849abf15d8921938126b52be519af923b3e3f6 Mon Sep 17 00:00:00 2001 From: Kara Alexandra Date: Sun, 25 Jan 2026 16:40:41 -0600 Subject: [PATCH] Remove analyze.rb --- gk/data/analyze.rb | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 gk/data/analyze.rb diff --git a/gk/data/analyze.rb b/gk/data/analyze.rb deleted file mode 100644 index f6ca5c8..0000000 --- a/gk/data/analyze.rb +++ /dev/null @@ -1,39 +0,0 @@ -File.open("supertile_shapes.asm", "r") do |file| - bytes = [] - while line = file.gets - m = line.match(/dw \$(\h+), \$(\h+), \$(\h+), \$(\h+)/) - bytes += m.captures if m - break if bytes.length >= 4 * 0xE0 - end - - counts = [] - for byte in bytes do - value = byte.to_i(16) - next if value == 0xFFFF - value = (value & 0x03FF) - 0x340 - if not counts[value] - counts[value] = 0 - end - counts[value] += 1 - end - - print(" ") - for col in 0...16 - printf(" x%X", col) - end - puts - - for row in 0...0xC - printf("%Xx", row + 4) - for col in 0...16 - printf("%4d", counts[row * 16 + col] || 0) - end - puts - end - - printf("Unused:") - for i in 0...0x80 - printf(" %2X", i) unless counts[i] - end - puts -end