Commit Graph

29 Commits

Author SHA1 Message Date
f6974d43f4 Refactor long line 2025-12-20 14:29:13 -08:00
95c45ac7c6 Refactor to find starting edges dynamically 2025-12-20 14:20:34 -08:00
6d7669ac10 Stop reading keys after collisions until a keyup event 2025-12-20 13:12:56 -08:00
5d02620b55 Add a toggle for drawing collision lines 2025-12-20 12:58:57 -08:00
a8f9cce90e Restart after crashing with a keydown event 2025-12-20 12:54:13 -08:00
50a20982a4 Move collision detection code into its own function 2025-12-20 08:40:41 -08:00
1f782f75aa Clean up some code 2025-12-20 08:25:02 -08:00
f9a191048a Stop when all edges have been mapped 2025-12-19 19:27:59 -08:00
fc5a1155dd Remove viewed edges 2025-12-19 18:18:10 -08:00
f3a702cce0 Draw edges 2025-12-19 17:24:16 -08:00
598ecde00e Restart if ship touches wall 2025-12-19 16:48:41 -08:00
fcbae33d51 Only render acute triangles 2025-12-19 14:50:09 -08:00
7b63f0524c Stop bullets when they hit a wall 2025-12-19 13:20:49 -08:00
5a5b4e9272 Modify terrain and remove buttons 2025-12-19 13:05:58 -08:00
8705b5779d Add side collision detection 2025-12-19 12:28:48 -08:00
8b89673b6f Detect corner collisions 2025-12-18 18:08:53 -08:00
29588b36d4 Simplify code 2025-12-18 15:43:41 -08:00
7ad55c07ae Use a class instead of changing direct styles 2025-12-18 15:32:27 -08:00
c3bd622841 Find determinant 2025-12-18 14:45:45 -08:00
2b6fadab29 Remove lines, add polygons 2025-12-18 14:27:05 -08:00
4a44a21395 Rename tank to ship 2025-12-18 11:07:48 -08:00
660bfba1b9 Refactor updateBullets function to simplify 2025-12-18 11:05:51 -08:00
0282a0b721 Move bullets and lines updates to separate functions 2025-12-18 10:47:46 -08:00
a0c804823c Change terrain shape; clean up some 2025-12-18 10:31:38 -08:00
235ea57e81 Draw lines from corners 2025-12-17 18:32:19 -08:00
9e8987fcc0 WIP: collision detection 2025-12-17 17:52:47 -08:00
0b841d8873 Limit ship max speed 2025-12-17 16:59:48 -08:00
9730ff85fb Add debug info 2025-12-17 16:28:36 -08:00
bf807f9e29 Rename file 2025-12-17 15:56:57 -08:00