// SPDX-License-Identifier: MIT // The OBJ budget with "H-Blank Interval Free" set: 954 cycles (GBATEK §LCD OBJ - Overview). #include "scene.h" int main(void) { DISPCNT = 0x0080; palette_fill(256, 256, 41); PAL16[0] = rgb(0, 0, 8); for (int t = 0; t < 1024; t++) tile4(0x10000 + t * 32, t + 4); obj_clear(); for (int n = 0; n < 30; n++) obj_set(n, 0 | 0 << 14, (n * 8) % 512 | 3 << 14, n * 4); DISPCNT = 0x1000 | 0x0040 | 0x0020; forever(); }