markcornwell / spacewar

Javascript implementation of 1962 game Spacewar! originally developed for the PDP-1
MIT License
0 stars 0 forks source link

factor out matrix operation into separate functions #18

Closed markcornwell closed 4 years ago

markcornwell commented 4 years ago

Pulling out matrix operations for translation and rotation would simplify the code. We could make the drawings a list of points and interpret them after rotating and translating them onto the screen.

markcornwell commented 4 years ago

Factored out matrix operations for translation and rotation. Added shapes and rendering of shapes as described above. Same functionality, just refactored internally.