9d9fa13340
Clean up some
2026-02-11 10:13:22 -08:00
36953062d0
Update todo list
2026-02-11 09:59:09 -08:00
5a99a01eed
Refactor timeouts
2026-02-10 19:34:54 -08:00
09bee9627c
Fix recoil
2026-02-10 19:29:30 -08:00
96153b9a74
Shot ships fall with gravity
2026-02-10 19:27:50 -08:00
22ab464f5d
Refactor shooting and drawing
2026-02-10 19:05:27 -08:00
b54853559f
WIP: toggle gravity effect per ship
2026-02-10 16:08:18 -08:00
af8e222045
WIP: move multiple ships
2026-02-10 16:01:34 -08:00
7f07c94c82
Add another ship
2026-02-07 14:38:27 -08:00
94df5140f8
Add cannon recoil animation
2026-02-06 14:34:18 -08:00
df6cf1f75c
Update ship appearance
2026-02-06 13:36:14 -08:00
0d63f87e39
Update todo list
2026-02-06 13:09:50 -08:00
3bb5536820
Add recoil velocity
2026-02-06 13:06:46 -08:00
340b30c8dc
Handle multiple edge collision in a buggy way
2026-02-06 12:55:08 -08:00
4f9db0a940
Fix cannon length
2026-02-05 14:54:51 -08:00
c783394d01
Increase ship radius?
2026-02-05 14:50:45 -08:00
a13a03e031
Add todo list
2026-02-05 13:37:36 -08:00
3194245309
Move drawing the shot out of the Shoot system
2026-02-05 13:21:57 -08:00
6074b36c99
Remove unused function
2026-02-05 11:49:33 -08:00
d278da060b
Move shooting into a system
2026-02-05 11:48:11 -08:00
418fd716b0
Make gun rotation a system
2026-02-05 11:17:06 -08:00
c708dadde0
Move function into Move object
2026-02-05 10:21:50 -08:00
70f958606d
Clean up
2026-02-05 10:11:02 -08:00
424cb0f150
Remove unused duplicate functions
2026-02-04 13:49:12 -08:00
d89909e7bf
Organize wall elements
2026-02-04 13:05:26 -08:00
93937df1fd
Remove idea
2026-02-04 12:53:16 -08:00
6d7214dd46
Comment out all remaining console messages
...
search and replace with Vim command `:%s/console.log/\/\/ console.log/`
2026-02-04 12:44:40 -08:00
66a044cd2a
Remove commented-out console messages
...
search and replace with Vim command `:%s/\n.*\/\/ console.log.*//`
2026-02-04 12:41:41 -08:00
52e7fd9f9b
Calculate reflection using vectors instead of functions?
2026-02-04 10:19:04 -08:00
fae1fd255f
Place contact point just outside wall shape
2026-02-02 14:27:48 -08:00
93157f17dd
WIP: don't go through walls?
2026-02-02 10:27:19 -08:00
965ed86ed6
WIP: try to fix issue with isAcute function
2026-01-31 11:34:44 -08:00
478c90e398
Something is off in my vector calculations
2026-01-30 13:45:20 -08:00
89cf20e35a
WIP: more rounding
2026-01-30 13:25:51 -08:00
d2a8758fb8
WIP: rounding position values
2026-01-30 10:55:07 -08:00
8198fc7b63
WIP: slide along edge but still fall through sometimes
2026-01-26 16:28:10 -08:00
0b6f7a55c0
Clean up
2026-01-26 16:02:23 -08:00
de0052aa0a
Think I got it
2026-01-26 14:51:25 -08:00
6f580b2b77
WIP: almost got vector calc
2026-01-26 13:36:23 -08:00
5bb861c376
WIP: Bouncing working but still not perfect
2026-01-24 13:19:43 -08:00
ccc6dc1335
WIP: bounce off corners
2026-01-24 12:57:58 -08:00
853728624a
Refactor
2026-01-23 18:22:05 -08:00
435eb0b128
Pull away from contacted walls
2026-01-23 16:20:04 -08:00
7408005ed2
Clean up
2026-01-23 15:29:49 -08:00
aaff3571af
Clean up Move.update()
2026-01-23 15:08:37 -08:00
176fd98cb5
Remove unnecessary conditional branches
2026-01-23 14:58:38 -08:00
e1cfff39f0
Find the bounce vector
2026-01-23 14:48:28 -08:00
55f6328d3f
WIP: bounce off walls
2026-01-22 13:26:34 -08:00
b509ba12ea
WIP: bounce off walls
2026-01-22 12:30:23 -08:00
4b692194ae
WIP: figure out normal vector but i don't th ink i need to
2026-01-21 19:18:47 -08:00
112c100057
WIP: slide along wall on collision
2026-01-21 14:16:34 -08:00
20bcd976a8
WIP: handle vertical and horizontal walls
2026-01-20 16:59:04 -08:00
2e17234daf
WIP: Velocity while in contact with edge
2026-01-20 16:46:10 -08:00
ac9684f4cf
WIP: Velocity while in contact with edge
2026-01-20 16:27:57 -08:00
c6ed409915
WIP: ECS
2026-01-19 14:28:09 -08:00
00f2243f03
WIP
2026-01-19 13:06:59 -08:00
616c8184d0
Add limit for angular velocity
2026-01-17 15:23:59 -08:00
d779f802a6
Rotate gun with torque and angular acceleration/velocity
2026-01-17 13:25:00 -08:00
12d9d8ae95
Add gravity
2026-01-17 12:22:13 -08:00
b68f63b379
Clean up
2026-01-17 10:20:32 -08:00
0fad07d341
Remove unused function
2026-01-17 10:01:13 -08:00
f0ddd4e13a
Remove unused function
2026-01-17 09:59:43 -08:00
bbb6cd2c07
Update todo list
2026-01-17 09:33:06 -08:00
965287bcf4
WIP: bullets hit walls
2026-01-17 09:16:44 -08:00
e027291ec8
Fast bullets
2026-01-16 16:56:55 -08:00
ca9ceebd64
WIP: landing
2026-01-10 12:20:00 -08:00
50a851eb2f
WIP: adjusting edge collision distance
2026-01-09 10:38:32 -08:00
c250275b1d
Revert "WIP: landing"
...
This reverts commit c8d17b7d46 .
2026-01-08 12:40:11 -08:00
c8d17b7d46
WIP: landing
2026-01-08 12:24:18 -08:00
0e4da0fc67
Set indics back to default on reset
2026-01-08 11:11:36 -08:00
da2b1d9a6f
WIP: on landing; on collision, color only local wall
2026-01-08 11:05:20 -08:00
4fd9688d53
Remove unused variables
2026-01-08 10:12:52 -08:00
69a0a1dcdd
Refactor map struct
2026-01-08 10:10:36 -08:00
c8b1d9c8f6
Clean up
2026-01-08 09:19:10 -08:00
ed83435218
Clean up ship update function
2026-01-07 18:37:50 -08:00
3fa1e8f722
Fix indent
2026-01-07 18:13:43 -08:00
da1bebe4f2
Rename variable
2026-01-07 18:06:54 -08:00
b81f0a8565
Refactor
2026-01-07 15:39:27 -08:00
b9884ba077
WIP
2026-01-07 15:27:51 -08:00
d17d0f0a08
Refactor function
2026-01-07 13:33:22 -08:00
625cae288c
Clean up
2026-01-07 13:24:43 -08:00
5c5c76f9a1
Clean up
2026-01-07 12:58:06 -08:00
e9a86c532e
Clean up
2026-01-05 10:00:15 -08:00
2c89910ee8
Clean up
2026-01-05 09:38:45 -08:00
1de687b3f1
Refactor edge collision detect function
2026-01-05 09:22:36 -08:00
d9ab0fa1fd
Fix bound s between 0 and 1
2026-01-05 09:05:30 -08:00
b3f6d79c01
edgeCollisionPosition already accounts for the ship radius
2026-01-04 23:23:53 -08:00
df2eb64ed5
WIP: edge collision position
2026-01-04 23:15:59 -08:00
2f2a82c46f
Fix edges facing ship calc
2026-01-04 18:50:17 -08:00
607486d308
WIP: What is s and t? swapping them seems to work
2026-01-04 17:47:14 -08:00
d6dddc25db
WIP: edge segments
2026-01-04 16:52:48 -08:00
a0f580da95
WIP: Add edge collision back
2026-01-04 11:01:01 -08:00
f3db10ac68
Refactor
2026-01-04 10:21:49 -08:00
406c5d1357
Simplify
2026-01-03 16:23:43 -08:00
8db51f8870
Refactor
2026-01-03 13:53:05 -08:00
607eaa187e
Fix s and t calculations
2026-01-03 13:34:12 -08:00
0868c953a3
Corner collisions
2026-01-03 12:03:59 -08:00
d45575db7c
WIP: forward collision points
2026-01-02 09:31:24 -08:00
b9b744d10f
WIP: perpendicular line
2026-01-01 13:46:29 -08:00
c4c0fdd86d
WIP: corner collision position
2025-12-31 15:06:22 -08:00
65c4c69f21
WIP: collision corners
2025-12-31 13:12:26 -08:00
c4c8667d4f
WIP: collision corners
2025-12-31 12:03:02 -08:00
08c71c05e6
Land on legs
2025-12-29 16:11:43 -08:00
6723e5f5af
WIP: land with gear down
2025-12-29 14:30:41 -08:00
109d1aa6fe
WIP: gear down with G key
2025-12-29 09:07:41 -08:00
2d72c7f83e
WIP: land
2025-12-28 16:28:04 -08:00
e1e2c479af
Clean up line intersection function
2025-12-28 14:35:39 -08:00
e8cc4e5241
Clean up
2025-12-28 14:23:22 -08:00
4903812ca1
Handle horizontal and vertical bases
2025-12-28 14:16:25 -08:00
1ab48b58c3
WIP: some cleanup
2025-12-28 13:27:21 -08:00
38c01d27bf
WIP: place ship in final collision position
2025-12-28 13:18:48 -08:00
790c267957
WIP: found collision position
2025-12-28 11:38:14 -08:00
bb193630b9
WIP
2025-12-26 21:47:45 -08:00
46167340be
WIP: add a circle to the end of the line
2025-12-26 16:40:44 -08:00
b836b1f92b
WIP: draw normal lines
2025-12-26 15:13:44 -08:00
b8df14625c
WIP: position touching on collision
2025-12-26 12:03:41 -08:00
c9b7c62365
WIP: don't overlap wall on collision
2025-12-26 11:20:29 -08:00
d75c8f1b0f
WIP: position after a collision
2025-12-25 20:37:59 -08:00
d13392fef6
WIP: altitude foot point coords
2025-12-25 19:16:01 -08:00
722e8172ab
Land
2025-12-25 16:57:10 -08:00
d732fe0bf1
WIP: landing
2025-12-25 10:01:48 -08:00
63e9c45490
WIP: landing
2025-12-25 08:59:53 -08:00
be61acb030
Light up bg on collision
2025-12-24 09:17:41 -08:00
803402beef
Update todos
2025-12-24 09:11:02 -08:00
1fd87f8351
Add inverse walls
2025-12-23 17:34:37 -08:00
b6bc696823
Inverse?
2025-12-23 16:41:50 -08:00
d65e5c2b34
Add R key to restart
2025-12-22 15:05:14 -08:00
f7984595cc
Add a 3-wall map
2025-12-21 16:55:33 -08:00
32c1d0e56d
Pull collection out of function
2025-12-21 16:30:35 -08:00
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
c33c9ec4bc
WIP: bullet
2025-12-15 11:24:13 -08:00
b358c2c0c5
Relable buttons
2025-12-14 22:13:07 -08:00
58952cfa88
Add rotating gun
2025-12-14 21:58:14 -08:00
d4e1bf5b9e
Add friction
2025-12-13 22:50:42 -08:00
6418c10415
Re-lable buttons
2025-12-13 22:03:47 -08:00
d2163d060b
Float around
2025-12-13 22:02:11 -08:00
1baf76d901
Fix velocity by making a vector
2025-12-13 19:42:01 -08:00
88241ad705
Add velocity
2025-12-13 19:10:56 -08:00
37f683e9a5
Output fps
2025-12-13 14:12:37 -08:00
b735a6e124
Update README.md
2025-11-25 16:10:46 -08:00
5c74ee4cbe
Update base container image from "bookworm" to "trixie" (Debian 13) ( #4 )
...
These changes:
- Update base container image from Bookworm to Trixie Debian
- Update Pandoc version
- Add a `make shell` command
Caveats:
- Uses the "bookworm" version of OpenResty until "trixie" is released
Reviewed-on: #4
2025-11-25 23:56:19 +00:00