5 ex_gui_isometric_8c example
gullradriel edited this page 2026-10-09 00:51:57 +02:00

ex_gui_isometric.c

Nilorea Library: Isometric tile engine with GUI controls Allegro 5 graphical demo combining the n_iso_engine module with the n_gui module. Features:

  • Height-aware isometric map rendering (iso_map_draw)
  • Terrain transitions with procedural masks (Article 934)
  • Smooth / Cut height modes with adjustable slope max
  • GUI toggle buttons for modes, sliders for height/slope, listbox for terrain selection, projection radio group
  • Click-to-paint terrain and height editing
  • Mouse-wheel zoom, scroll with arrow keys
  • Map save/load (binary ISOM format)
  • Player mode: WASD movement with jump (Space), height collision, wall-sliding, A* click-to-move pathfinding, camera follow
  • Ghost mode: dead reckoning demo with simulated circular-path remote entity (n_dead_reckoning), toggleable DR algorithm/blend/interval

Based on the Nilorea isometric tile engine. Tile BMP assets are in DATAS/tiles/.