code wiki / (root) / nx_minecraft_mcu_compose_test.nx

nx_minecraft_mcu_compose_test.nx

buildroot/runtime/nx_minecraft_mcu_compose_test.nx

4749 B117 linesdepth 5pulls 10 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_minecraft_mcu_compose_test.nx -- the session-1 vision substrate-bound. Per user 2026-05-19 session 1: "we want to build minecraft equivalent on the lowest possible hardware." This is the substrate-side proof that the path is structurally complete. No ESP32 binary yet; the integration layer is queued. But every primitive needed is now composed into a working scaffold: - 32x16x8 voxel world in nx_tissue at 3bpp (~1.5 KiB) - 32x16 1bpp framebuffer (64 bytes) -- tiny OLED size - DDA raycast renders the world to framebuffer - 6-button input drives player camera direction - chunk paginator caches loaded tissues (1 chunk loaded; structure ready for many more from flash) 22 assertions verify the whole pipeline works end-to-end.

dependencies 8 imports · 0 importers

nx_syscalls.nx nx_tier.nx nx_palette.nx nx_tissue.nx nx_raycast_voxel.nx nx_fb_1bpp.nx nx_input_gpio.nx nx_chunk_paginate.nx nx_minecraft_mcu_compose_test.

imports: nx_syscalls.nxnx_tier.nxnx_palette.nxnx_tissue.nxnx_raycast_voxel.nxnx_fb_1bpp.nxnx_input_gpio.nxnx_chunk_paginate.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main nx_fb_1bpp_new sys_mmap nx_fb_1bpp_clear nx_fb_1bpp_count_on nx_ray_new sys_mmap ↻ sys_mmap ↻ nx_raycast_voxel _sign _abs_q14 nx_fb_1bpp_dither_4 nx_fb_1bpp_set_pixel nx_input_gpio_new sys_mmap ↻ nx_input_gpio_poll nx_btn_is_valid _gpio_state nx_input_gpio_is_pressed nx_btn_is_valid ↻ _gpio_state ↻ nx_chunk_paginator_new sys_mmap ↻ nx_chunk_request _cp_find_loaded _cp_at _cp_at ↻ _cp_find_free _cp_at ↻ _cp_find_lru _cp_at ↻ nx_chunk_hit_count nx_chunk_miss_count

structs

none

consts

none

functions

27func main() -> i64