;; xoffs/yoffs table
;; horizontal resolution (full 360 degrees): 512
;; vertical resolution (45 degrees): 32
;; This table corresponds to xoffs (each row is a different x horizontal angle, for the first 128 angles:
;; table size: 4096 bytes
ray_x_offs_table:
    db 12, 12, 12, 13, 13, 14, 15, 15, 16, 17, 18, 18, 19, 21, 22, 23, 25, 26, 28, 31, 33, 36, 40, 45, 50, 58, 67, 81, 101, 135, 203, 407
    db 12, 12, 12, 13, 13, 14, 15, 15, 16, 17, 18, 18, 19, 21, 22, 23, 25, 26, 28, 31, 33, 36, 40, 45, 50, 58, 67, 81, 101, 135, 203, 407
    db 12, 12, 12, 13, 13, 14, 15, 15, 16, 17, 18, 18, 19, 21, 22, 23, 25, 26, 28, 31, 33, 36, 40, 45, 50, 58, 67, 81, 101, 135, 203, 407
    db 12, 12, 12, 13, 13, 14, 15, 15, 16, 17, 18, 18, 19, 21, 22, 23, 25, 26, 28, 31, 33, 36, 40, 45, 50, 58, 67, 81, 101, 135, 203, 407
    db 12, 12, 12, 13, 13, 14, 15, 15, 16, 17, 18, 18, 19, 21, 22, 23, 25, 26, 28, 31, 33, 36, 40, 45, 50, 57, 67, 81, 101, 135, 203, 406
    db 12, 12, 12, 13, 13, 14, 15, 15, 16, 17, 18, 18, 19, 21, 22, 23, 25, 26, 28, 31, 33, 36, 40, 45, 50, 57, 67, 81, 101, 135, 203, 406
    db 12, 12, 12, 13, 13, 14, 15, 15, 16, 17, 18, 18, 19, 20, 22, 23, 25, 26, 28, 30, 33, 36, 40, 44, 50, 57, 67, 81, 101, 135, 203, 406
    db 12, 12, 12, 13, 13, 14, 15, 15, 16, 17, 18, 18, 19, 20, 22, 23, 25, 26, 28, 30, 33, 36, 40, 44, 50, 57, 67, 81, 101, 135, 202, 405
    db 12, 12, 12, 13, 13, 14, 15, 15, 16, 17, 17, 18, 19, 20, 22, 23, 25, 26, 28, 30, 33, 36, 40, 44, 50, 57, 67, 80, 101, 135, 202, 405
    db 11, 12, 12, 13, 13, 14, 15, 15, 16, 17, 17, 18, 19, 20, 22, 23, 24, 26, 28, 30, 33, 36, 40, 44, 50, 57, 67, 80, 101, 134, 202, 404
    db 11, 12, 12, 13, 13, 14, 15, 15, 16, 17, 17, 18, 19, 20, 22, 23, 24, 26, 28, 30, 33, 36, 40, 44, 50, 57, 67, 80, 101, 134, 202, 404
    db 11, 12, 12, 13, 13, 14, 14, 15, 16, 17, 17, 18, 19, 20, 22, 23, 24, 26, 28, 30, 33, 36, 40, 44, 50, 57, 67, 80, 100, 134, 201, 403
    db 11, 12, 12, 13, 13, 14, 14, 15, 16, 17, 17, 18, 19, 20, 22, 23, 24, 26, 28, 30, 33, 36, 40, 44, 50, 57, 67, 80, 100, 134, 201, 403
    db 11, 12, 12, 13, 13, 14, 14, 15, 16, 17, 17, 18, 19, 20, 21, 23, 24, 26, 28, 30, 33, 36, 40, 44, 50, 57, 66, 80, 100, 134, 201, 402
    db 11, 12, 12, 13, 13, 14, 14, 15, 16, 16, 17, 18, 19, 20, 21, 23, 24, 26, 28, 30, 33, 36, 39, 44, 50, 57, 66, 80, 100, 133, 200, 401
    db 11, 12, 12, 13, 13, 14, 14, 15, 16, 16, 17, 18, 19, 20, 21, 23, 24, 26, 28, 30, 33, 36, 39, 44, 49, 57, 66, 80, 100, 133, 200, 400
    db 11, 12, 12, 13, 13, 14, 14, 15, 16, 16, 17, 18, 19, 20, 21, 23, 24, 26, 28, 30, 33, 36, 39, 44, 49, 56, 66, 79, 99, 133, 199, 399
    db 11, 12, 12, 13, 13, 14, 14, 15, 16, 16, 17, 18, 19, 20, 21, 23, 24, 26, 28, 30, 32, 36, 39, 44, 49, 56, 66, 79, 99, 132, 199, 398
    db 11, 12, 12, 13, 13, 14, 14, 15, 16, 16, 17, 18, 19, 20, 21, 23, 24, 26, 28, 30, 32, 35, 39, 43, 49, 56, 66, 79, 99, 132, 198, 397
    db 11, 12, 12, 13, 13, 14, 14, 15, 16, 16, 17, 18, 19, 20, 21, 22, 24, 26, 28, 30, 32, 35, 39, 43, 49, 56, 65, 79, 99, 132, 198, 396
    db 11, 12, 12, 13, 13, 14, 14, 15, 15, 16, 17, 18, 19, 20, 21, 22, 24, 26, 27, 30, 32, 35, 39, 43, 49, 56, 65, 78, 98, 131, 197, 395
    db 11, 12, 12, 13, 13, 14, 14, 15, 15, 16, 17, 18, 19, 20, 21, 22, 24, 25, 27, 30, 32, 35, 39, 43, 49, 56, 65, 78, 98, 131, 196, 393
    db 11, 12, 12, 12, 13, 14, 14, 15, 15, 16, 17, 18, 19, 20, 21, 22, 24, 25, 27, 29, 32, 35, 39, 43, 48, 55, 65, 78, 98, 130, 196, 392
    db 11, 12, 12, 12, 13, 13, 14, 15, 15, 16, 17, 18, 19, 20, 21, 22, 24, 25, 27, 29, 32, 35, 38, 43, 48, 55, 65, 78, 97, 130, 195, 391
    db 11, 11, 12, 12, 13, 13, 14, 15, 15, 16, 17, 18, 19, 20, 21, 22, 24, 25, 27, 29, 32, 35, 38, 43, 48, 55, 64, 77, 97, 129, 194, 389
    db 11, 11, 12, 12, 13, 13, 14, 15, 15, 16, 17, 18, 19, 20, 21, 22, 23, 25, 27, 29, 32, 35, 38, 42, 48, 55, 64, 77, 97, 129, 194, 388
    db 11, 11, 12, 12, 13, 13, 14, 14, 15, 16, 17, 18, 18, 19, 21, 22, 23, 25, 27, 29, 32, 34, 38, 42, 48, 55, 64, 77, 96, 128, 193, 386
    db 11, 11, 12, 12, 13, 13, 14, 14, 15, 16, 17, 17, 18, 19, 21, 22, 23, 25, 27, 29, 31, 34, 38, 42, 48, 54, 64, 76, 96, 128, 192, 385
    db 11, 11, 12, 12, 13, 13, 14, 14, 15, 16, 17, 17, 18, 19, 20, 22, 23, 25, 27, 29, 31, 34, 38, 42, 47, 54, 63, 76, 95, 127, 191, 383
    db 11, 11, 12, 12, 13, 13, 14, 14, 15, 16, 16, 17, 18, 19, 20, 22, 23, 25, 27, 29, 31, 34, 37, 42, 47, 54, 63, 76, 95, 127, 190, 381
    db 11, 11, 12, 12, 13, 13, 14, 14, 15, 16, 16, 17, 18, 19, 20, 22, 23, 25, 26, 28, 31, 34, 37, 42, 47, 54, 63, 75, 94, 126, 190, 380
    db 11, 11, 12, 12, 12, 13, 14, 14, 15, 16, 16, 17, 18, 19, 20, 21, 23, 24, 26, 28, 31, 34, 37, 41, 47, 53, 62, 75, 94, 126, 189, 378
    db 11, 11, 11, 12, 12, 13, 13, 14, 15, 15, 16, 17, 18, 19, 20, 21, 23, 24, 26, 28, 31, 34, 37, 41, 46, 53, 62, 75, 94, 125, 188, 376
    db 11, 11, 11, 12, 12, 13, 13, 14, 15, 15, 16, 17, 18, 19, 20, 21, 23, 24, 26, 28, 30, 33, 37, 41, 46, 53, 62, 74, 93, 124, 187, 374
    db 11, 11, 11, 12, 12, 13, 13, 14, 15, 15, 16, 17, 18, 19, 20, 21, 22, 24, 26, 28, 30, 33, 37, 41, 46, 53, 61, 74, 93, 124, 186, 372
    db 10, 11, 11, 12, 12, 13, 13, 14, 14, 15, 16, 17, 18, 19, 20, 21, 22, 24, 26, 28, 30, 33, 36, 40, 46, 52, 61, 73, 92, 123, 185, 370
    db 10, 11, 11, 12, 12, 13, 13, 14, 14, 15, 16, 17, 18, 19, 20, 21, 22, 24, 26, 28, 30, 33, 36, 40, 45, 52, 61, 73, 92, 122, 184, 368
    db 10, 11, 11, 12, 12, 13, 13, 14, 14, 15, 16, 17, 17, 18, 20, 21, 22, 24, 25, 27, 30, 33, 36, 40, 45, 52, 60, 73, 91, 121, 183, 366
    db 10, 11, 11, 12, 12, 12, 13, 14, 14, 15, 16, 16, 17, 18, 19, 21, 22, 23, 25, 27, 30, 32, 36, 40, 45, 51, 60, 72, 90, 121, 181, 363
    db 10, 11, 11, 11, 12, 12, 13, 14, 14, 15, 16, 16, 17, 18, 19, 20, 22, 23, 25, 27, 29, 32, 35, 40, 45, 51, 60, 72, 90, 120, 180, 361
    db 10, 11, 11, 11, 12, 12, 13, 13, 14, 15, 15, 16, 17, 18, 19, 20, 22, 23, 25, 27, 29, 32, 35, 39, 44, 51, 59, 71, 89, 119, 179, 359
    db 10, 10, 11, 11, 12, 12, 13, 13, 14, 15, 15, 16, 17, 18, 19, 20, 22, 23, 25, 27, 29, 32, 35, 39, 44, 50, 59, 71, 89, 118, 178, 356
    db 10, 10, 11, 11, 12, 12, 13, 13, 14, 15, 15, 16, 17, 18, 19, 20, 21, 23, 25, 27, 29, 32, 35, 39, 44, 50, 58, 70, 88, 118, 177, 354
    db 10, 10, 11, 11, 12, 12, 13, 13, 14, 14, 15, 16, 17, 18, 19, 20, 21, 23, 24, 26, 29, 31, 35, 38, 43, 50, 58, 70, 87, 117, 175, 351
    db 10, 10, 11, 11, 11, 12, 12, 13, 14, 14, 15, 16, 17, 18, 19, 20, 21, 23, 24, 26, 28, 31, 34, 38, 43, 49, 58, 69, 87, 116, 174, 349
    db 10, 10, 11, 11, 11, 12, 12, 13, 14, 14, 15, 16, 16, 17, 18, 20, 21, 22, 24, 26, 28, 31, 34, 38, 43, 49, 57, 69, 86, 115, 173, 346
    db 10, 10, 10, 11, 11, 12, 12, 13, 13, 14, 15, 16, 16, 17, 18, 19, 21, 22, 24, 26, 28, 31, 34, 38, 42, 49, 57, 68, 85, 114, 172, 344
    db 10, 10, 10, 11, 11, 12, 12, 13, 13, 14, 15, 15, 16, 17, 18, 19, 21, 22, 24, 26, 28, 30, 33, 37, 42, 48, 56, 68, 85, 113, 170, 341
    db 10, 10, 10, 11, 11, 12, 12, 13, 13, 14, 15, 15, 16, 17, 18, 19, 20, 22, 23, 25, 28, 30, 33, 37, 42, 48, 56, 67, 84, 112, 169, 338
    db 9, 10, 10, 11, 11, 11, 12, 13, 13, 14, 14, 15, 16, 17, 18, 19, 20, 22, 23, 25, 27, 30, 33, 37, 41, 47, 55, 67, 83, 111, 167, 335
    db 9, 10, 10, 10, 11, 11, 12, 12, 13, 14, 14, 15, 16, 17, 18, 19, 20, 21, 23, 25, 27, 30, 33, 36, 41, 47, 55, 66, 83, 110, 166, 333
    db 9, 10, 10, 10, 11, 11, 12, 12, 13, 13, 14, 15, 16, 17, 18, 19, 20, 21, 23, 25, 27, 29, 32, 36, 41, 47, 54, 65, 82, 110, 165, 330
    db 9, 10, 10, 10, 11, 11, 12, 12, 13, 13, 14, 15, 16, 16, 17, 18, 20, 21, 23, 24, 27, 29, 32, 36, 40, 46, 54, 65, 81, 109, 163, 327
    db 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 14, 15, 15, 16, 17, 18, 20, 21, 22, 24, 26, 29, 32, 35, 40, 46, 53, 64, 80, 108, 162, 324
    db 9, 9, 10, 10, 11, 11, 11, 12, 12, 13, 14, 14, 15, 16, 17, 18, 19, 21, 22, 24, 26, 29, 31, 35, 40, 45, 53, 64, 80, 107, 160, 321
    db 9, 9, 10, 10, 10, 11, 11, 12, 12, 13, 14, 14, 15, 16, 17, 18, 19, 20, 22, 24, 26, 28, 31, 35, 39, 45, 52, 63, 79, 105, 159, 318
    db 9, 9, 10, 10, 10, 11, 11, 12, 12, 13, 13, 14, 15, 16, 17, 18, 19, 20, 22, 24, 26, 28, 31, 34, 39, 44, 52, 62, 78, 104, 157, 314
    db 9, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 14, 15, 16, 17, 18, 19, 20, 22, 23, 25, 28, 31, 34, 38, 44, 51, 62, 77, 103, 155, 311
    db 9, 9, 9, 10, 10, 11, 11, 11, 12, 13, 13, 14, 15, 15, 16, 17, 19, 20, 21, 23, 25, 27, 30, 34, 38, 43, 51, 61, 77, 102, 154, 308
    db 9, 9, 9, 10, 10, 10, 11, 11, 12, 12, 13, 14, 14, 15, 16, 17, 18, 20, 21, 23, 25, 27, 30, 33, 38, 43, 50, 60, 76, 101, 152, 305
    db 8, 9, 9, 9, 10, 10, 11, 11, 12, 12, 13, 14, 14, 15, 16, 17, 18, 19, 21, 23, 24, 27, 30, 33, 37, 43, 50, 60, 75, 100, 150, 301
    db 8, 9, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 14, 15, 16, 17, 18, 19, 21, 22, 24, 26, 29, 33, 37, 42, 49, 59, 74, 99, 149, 298
    db 8, 9, 9, 9, 10, 10, 10, 11, 11, 12, 13, 13, 14, 15, 16, 17, 18, 19, 20, 22, 24, 26, 29, 32, 36, 42, 49, 58, 73, 98, 147, 295
    db 8, 8, 9, 9, 10, 10, 10, 11, 11, 12, 12, 13, 14, 15, 15, 16, 17, 19, 20, 22, 24, 26, 29, 32, 36, 41, 48, 58, 72, 97, 145, 291
    db 8, 8, 9, 9, 9, 10, 10, 11, 11, 12, 12, 13, 14, 14, 15, 16, 17, 18, 20, 21, 23, 26, 28, 31, 35, 41, 47, 57, 71, 95, 144, 288
    db 8, 8, 9, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 14, 15, 16, 17, 18, 20, 21, 23, 25, 28, 31, 35, 40, 47, 56, 71, 94, 142, 284
    db 8, 8, 8, 9, 9, 10, 10, 10, 11, 11, 12, 13, 13, 14, 15, 16, 17, 18, 19, 21, 23, 25, 27, 31, 35, 40, 46, 56, 70, 93, 140, 280
    db 8, 8, 8, 9, 9, 9, 10, 10, 11, 11, 12, 12, 13, 14, 15, 16, 17, 18, 19, 21, 22, 25, 27, 30, 34, 39, 46, 55, 69, 92, 138, 277
    db 8, 8, 8, 9, 9, 9, 10, 10, 11, 11, 12, 12, 13, 14, 14, 15, 16, 18, 19, 20, 22, 24, 27, 30, 34, 38, 45, 54, 68, 91, 136, 273
    db 7, 8, 8, 8, 9, 9, 10, 10, 10, 11, 11, 12, 13, 13, 14, 15, 16, 17, 19, 20, 22, 24, 26, 29, 33, 38, 44, 53, 67, 89, 134, 269
    db 7, 8, 8, 8, 9, 9, 9, 10, 10, 11, 11, 12, 13, 13, 14, 15, 16, 17, 18, 20, 22, 24, 26, 29, 33, 37, 44, 53, 66, 88, 133, 266
    db 7, 8, 8, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 14, 15, 16, 17, 18, 20, 21, 23, 26, 29, 32, 37, 43, 52, 65, 87, 131, 262
    db 7, 7, 8, 8, 8, 9, 9, 10, 10, 10, 11, 12, 12, 13, 14, 14, 15, 17, 18, 19, 21, 23, 25, 28, 32, 36, 43, 51, 64, 86, 129, 258
    db 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 11, 11, 12, 13, 13, 14, 15, 16, 18, 19, 21, 23, 25, 28, 31, 36, 42, 50, 63, 84, 127, 254
    db 7, 7, 7, 8, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 14, 15, 16, 17, 19, 20, 22, 24, 27, 31, 35, 41, 50, 62, 83, 125, 250
    db 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 11, 12, 12, 13, 14, 15, 16, 17, 18, 20, 22, 24, 27, 30, 35, 41, 49, 61, 82, 123, 246
    db 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 11, 11, 12, 13, 14, 14, 15, 17, 18, 20, 21, 24, 26, 30, 34, 40, 48, 60, 80, 121, 242
    db 7, 7, 7, 7, 8, 8, 8, 9, 9, 10, 10, 11, 11, 12, 13, 13, 14, 15, 16, 18, 19, 21, 23, 26, 29, 34, 39, 47, 59, 79, 119, 238
    db 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 11, 12, 12, 13, 14, 15, 16, 17, 19, 21, 23, 25, 29, 33, 39, 46, 58, 78, 117, 234
    db 6, 7, 7, 7, 7, 8, 8, 8, 9, 9, 10, 10, 11, 11, 12, 13, 14, 15, 16, 17, 19, 20, 22, 25, 28, 32, 38, 46, 57, 76, 115, 230
    db 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 10, 10, 11, 11, 12, 13, 13, 14, 16, 17, 18, 20, 22, 25, 28, 32, 37, 45, 56, 75, 113, 226
    db 6, 6, 7, 7, 7, 7, 8, 8, 8, 9, 9, 10, 10, 11, 12, 12, 13, 14, 15, 16, 18, 20, 22, 24, 27, 31, 36, 44, 55, 74, 111, 222
    db 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 10, 10, 11, 11, 12, 13, 14, 15, 16, 18, 19, 21, 24, 27, 31, 36, 43, 54, 72, 108, 217
    db 6, 6, 6, 7, 7, 7, 7, 8, 8, 9, 9, 9, 10, 11, 11, 12, 13, 14, 15, 16, 17, 19, 21, 23, 26, 30, 35, 42, 53, 71, 106, 213
    db 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 10, 10, 11, 12, 12, 13, 14, 15, 17, 18, 20, 23, 26, 29, 34, 41, 52, 69, 104, 209
    db 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 13, 14, 15, 16, 18, 20, 22, 25, 29, 34, 40, 51, 68, 102, 205
    db 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 10, 10, 11, 12, 13, 14, 15, 16, 18, 19, 22, 25, 28, 33, 40, 50, 66, 100, 200
    db 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 9, 9, 10, 10, 11, 12, 12, 13, 14, 16, 17, 19, 21, 24, 27, 32, 39, 49, 65, 98, 196
    db 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 10, 11, 11, 12, 13, 14, 15, 17, 19, 21, 23, 27, 31, 38, 47, 63, 96, 192
    db 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 10, 10, 11, 12, 13, 14, 15, 16, 18, 20, 23, 26, 31, 37, 46, 62, 93, 187
    db 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 10, 10, 11, 12, 12, 13, 15, 16, 18, 20, 22, 26, 30, 36, 45, 61, 91, 183
    db 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 10, 11, 11, 12, 13, 14, 16, 17, 19, 22, 25, 29, 35, 44, 59, 89, 178
    db 5, 5, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 10, 10, 11, 12, 13, 14, 15, 17, 19, 21, 24, 28, 34, 43, 58, 87, 174
    db 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 10, 11, 11, 12, 14, 15, 16, 18, 21, 24, 28, 33, 42, 56, 84, 169
    db 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 12, 13, 14, 16, 18, 20, 23, 27, 32, 41, 55, 82, 165
    db 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 10, 11, 12, 13, 14, 15, 17, 20, 22, 26, 32, 40, 53, 80, 160
    db 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 11, 11, 12, 14, 15, 17, 19, 22, 25, 31, 38, 51, 77, 155
    db 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 10, 11, 12, 13, 15, 16, 18, 21, 25, 30, 37, 50, 75, 151
    db 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 11, 12, 13, 14, 16, 18, 20, 24, 29, 36, 48, 73, 146
    db 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 8, 8, 9, 10, 10, 11, 12, 14, 15, 17, 20, 23, 28, 35, 47, 70, 141
    db 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8, 9, 9, 10, 11, 12, 13, 15, 17, 19, 22, 27, 34, 45, 68, 137
    db 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 9, 10, 10, 11, 13, 14, 16, 18, 22, 26, 33, 44, 66, 132
    db 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 7, 7, 8, 9, 9, 10, 11, 12, 14, 15, 18, 21, 25, 31, 42, 63, 127
    db 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 9, 10, 11, 12, 13, 15, 17, 20, 24, 30, 40, 61, 123
    db 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 7, 7, 8, 9, 9, 10, 11, 13, 14, 16, 19, 23, 29, 39, 59, 118
    db 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 7, 7, 8, 8, 9, 10, 11, 12, 14, 16, 18, 22, 28, 37, 56, 113
    db 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 7, 7, 8, 8, 9, 10, 12, 13, 15, 18, 21, 27, 36, 54, 108
    db 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 9, 10, 11, 12, 14, 17, 20, 25, 34, 51, 103
    db 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 7, 7, 8, 8, 9, 10, 12, 14, 16, 19, 24, 32, 49, 98
    db 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 7, 7, 8, 9, 10, 11, 13, 15, 18, 23, 31, 47, 94
    db 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 7, 8, 8, 9, 11, 12, 14, 17, 22, 29, 44, 89
    db 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 7, 8, 9, 10, 12, 14, 16, 21, 28, 42, 84
    db 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 6, 6, 7, 7, 8, 9, 11, 13, 15, 19, 26, 39, 79
    db 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 6, 6, 7, 8, 9, 10, 12, 14, 18, 24, 37, 74
    db 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 6, 6, 7, 8, 9, 11, 13, 17, 23, 34, 69
    db 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 6, 7, 8, 9, 10, 12, 16, 21, 32, 64
    db 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 6, 7, 8, 9, 11, 14, 19, 29, 59
    db 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 6, 6, 7, 9, 10, 13, 18, 27, 54
    db 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 6, 7, 8, 9, 12, 16, 24, 49
    db 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 6, 7, 8, 11, 14, 22, 44
    db 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 5, 6, 7, 9, 13, 19, 39
    db 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 5, 6, 8, 11, 17, 34
    db 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4, 5, 7, 9, 14, 29
    db 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 4, 4, 6, 8, 12, 24
    db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 4, 6, 9, 19
    db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 4, 7, 14
    db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 3, 4, 9
    db 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, 1, 1, 2, 4

    db 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, 0, 0, 0, 0
;; The "ray_y_offs_table" is basically a mirror of the "ray_x_offs_table", 
;; so, what I do is to subtract the offset from here, rather than add the offset
ray_y_offs_table:
