Skip to content

Demo Scenario

cub3D demo running
Preview of the cub3D demo used during the defense.
  • show the repository structure briefly
  • run make
  • run make bonus
  • confirm the binaries:
    • ./cub3D
    • ./cub3D_bonus
  • run ./cub3D tests/mandatory/validation/good.cub or another known-good mandatory map from the repository
  • confirm that:
    • the window opens
    • the world is rendered
    • startup does not crash

Demonstrate:

  • W and S for forward and backward movement
  • A and D for strafe
  • left and right arrows for rotation
  • F1, F2, F3 for runtime resize presets
  • ESC for clean exit

Mention that collision prevents wall crossing.

Run two or three quick invalid cases:

  • wrong extension
  • invalid texture path
  • invalid or open map

Show clean Error\n... handling and no uncontrolled crash.

Run ./cub3D_bonus tests/bonus/retro_small.cub or ./cub3D_bonus maps/bonus/level1.cub.

Show:

  • minimap and zoom
  • door interaction with E
  • mouse look
  • pickups and HUD updates
  • sprite visibility and occlusion
  • next level trigger with F4 if available

Important note:

  • if the defense machine has no valid X11 session, valid runtime demos can fail at mlx_init, so keep one parser/error-handling scenario ready independently from the graphical demo
  1. run make and make bonus
  2. launch mandatory mode, show controls, then exit cleanly
  3. launch one invalid map and show controlled failure
  4. launch bonus mode and demonstrate minimap, door, pickup, and HUD
  5. exit cleanly