|
|
d0369ca229
|
Rename some function params for clarity
|
2025-12-21 16:21:31 -08:00 |
|
|
|
19a7a26f1b
|
Don't check corners if edge collision, and vise versa
|
2025-12-21 16:08:53 -08:00 |
|
|
|
962e1e4094
|
Refactor
|
2025-12-21 15:56:09 -08:00 |
|
|
|
1a7d6233d8
|
Fix corner collision detection
|
2025-12-21 15:21:02 -08:00 |
|
|
|
60ac7f137b
|
Add additional maps
|
2025-12-21 14:06:07 -08:00 |
|
|
|
5b594d369b
|
Add additional walls
|
2025-12-21 13:42:00 -08:00 |
|
|
|
5868ef2b24
|
WIP: multiple walls
|
2025-12-21 12:54:01 -08:00 |
|
|
|
2c2226d09f
|
Add pointermove event to print pointer coordinates
|
2025-12-21 10:30:05 -08:00 |
|
|
|
1c2f35c87b
|
Clean up
|
2025-12-21 09:15:24 -08:00 |
|
|
|
a6fde9e567
|
Fix cannon rotation
|
2025-12-21 08:47:38 -08:00 |
|
|
|
eb9c805786
|
Simplify collision triangle update function
|
2025-12-20 15:35:20 -08:00 |
|
|
|
8f963ab98c
|
Remove unneeded variable
|
2025-12-20 15:23:44 -08:00 |
|
|
|
5089a30a3b
|
Add missing call to update collision triangles
|
2025-12-20 15:19:30 -08:00 |
|
|
|
e7f098dedf
|
Rename variable
|
2025-12-20 15:13:12 -08:00 |
|
|
|
273ed43a51
|
Refactor
|
2025-12-20 15:06:16 -08:00 |
|
|
|
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 |
|
|
|
264cb1dc81
|
Add key events for arrow and angle bracket keys
|
2025-12-17 15:51:56 -08:00 |
|
|
|
5b3710ac4a
|
Add key events for W, A, S, D, Q, E and Space
|
2025-12-17 13:50:57 -08:00 |
|
|
|
138a2122e0
|
Remove comments
|
2025-12-17 12:53:23 -08:00 |
|
|
|
b1fd38196e
|
Make bullets originate from end of cannon
|
2025-12-17 12:51:01 -08:00 |
|
|
|
60836c9028
|
Fire bullets in direction of cannon
|
2025-12-17 12:37:40 -08:00 |
|
|
|
43f5fccebf
|
WIP: fire bullets
|
2025-12-17 12:23:52 -08:00 |
|