/Lasers

A laser simulator made with SDL in the Odin programming language

Primary LanguageOdin

A laser simulator made with SDL in the Odin programming language

lasers.mp4

Run with odin run src

Keybinds:

  • Escape or Space to toggle between editing walls and aiming the pointer
  • Ctrl Q to close
  • Ctrl -/Ctrl + to adjust pixel scale (zoom in/out)

Aim Mode: (Black background)

Hold left click to aim the pointer

Edit mode: (Grey background)

Move the pointer and walls by grabbing them with the mouse. The walls are moved by grabbing either end

  • A to spawn a new wall
  • X to delete the currently held wall