Commit graph

1886 commits

Author SHA1 Message Date
Paul Holden
df1b31f2a2 Remove unused import and arg. 2023-10-27 08:53:48 +01:00
Paul Holden
3c47ef5002 Remove unused constants. 2023-10-27 08:52:54 +01:00
Paul Holden
84f9fcd0d1 Remove unused arg. 2023-10-27 08:51:15 +01:00
Paul Holden
f3d32cc5e2 Fix some lexical scoping issues in switch statements. 2023-10-27 08:49:21 +01:00
Paul Holden
e3edda323e Remove some unused constants/imports. 2023-10-27 08:47:27 +01:00
Paul Holden
2ea87351e5 Tidy rsp task offsets. 2023-10-27 08:44:14 +01:00
Paul Holden
e9d66d0f88 Automated build 2023-10-26 22:10:26 +00:00
Paul Holden
de15e2593d Rewrite base64 helpers using atob/btoa. 2023-10-26 23:10:10 +01:00
Paul Holden
18aac0dfe3 Fix for zero width/height tiles. 2023-10-26 23:10:10 +01:00
Paul Holden
a5bc2540de Automated build 2023-10-25 22:16:10 +00:00
Paul Holden
e9e13c66a1 Remove code to resize textures to powers of 2. WebGL support non-power-of-2 textures. 2023-10-25 23:15:53 +01:00
Paul Holden
5e83540f54 Automated build 2023-10-25 22:07:50 +00:00
Paul Holden
fd40f033f4 Tidy attribute names. 2023-10-25 23:07:32 +01:00
Paul Holden
e1ff155dfe Automated build 2023-10-25 22:02:37 +00:00
Paul Holden
8c6aa98129 Migrate the main shader to use VertexArray. 2023-10-25 23:02:12 +01:00
Paul Holden
2373479b57 bind/unbind as needed during construction. 2023-10-25 22:38:25 +01:00
Paul Holden
d5503ea037 Automated build 2023-10-25 08:14:50 +00:00
Paul Holden
8355180ea1 Update fillRect to use VertexArray. 2023-10-25 09:14:23 +01:00
Paul Holden
4b6e0cd22c Add a VertexArray helper. 2023-10-25 09:14:23 +01:00
Paul Holden
8e4892ffbf Use a VertexArray for debugClear. 2023-10-25 09:14:23 +01:00
Paul Holden
6b4d5b55c4 Use a VertexArray for copyTextureToFrontBuffer. 2023-10-25 09:14:22 +01:00
Paul Holden
5383fe8068 Automated build 2023-10-24 08:09:16 +00:00
Paul Holden
cf676dd557 Add a couple of TODOs for WebGL 2 improvements. 2023-10-24 09:08:59 +01:00
Paul Holden
b8efdd2de6 Migrate to WebGL 2. 2023-10-24 09:08:59 +01:00
Paul Holden
248ef361aa Automated build 2023-10-23 07:50:11 +00:00
Paul Holden
61c0a439c6 Turn gamepad constants into enums. 2023-10-23 08:49:53 +01:00
Paul Holden
1884e6d7ee Automated build 2023-10-23 07:28:07 +00:00
Paul Holden
b3debbec26 Always set alpha to 1 when blitting the backbuffer to the canvas.
This fixes https://github.com/hulkholden/n64js/issues/14.
2023-10-23 08:27:42 +01:00
Paul Holden
6d10f003b2 Move makeEnum to its own module so it can be reused elsewhere. 2023-10-23 08:26:44 +01:00
Paul Holden
33ebe8bbf1 Automated build 2023-10-22 20:07:58 +00:00
Paul Holden
adfd94979c Add ControllerMapping 2023-10-22 21:07:36 +01:00
Paul Holden
7acb6d0bb5 Automated build 2023-10-19 22:23:19 +00:00
Paul Holden
1697c372cb Add an input element for each control. 2023-10-19 23:23:03 +01:00
Paul Holden
8cdbd38ce8 Automated build 2023-10-19 21:54:02 +00:00
Paul Holden
5747fb676b Fix controller modal structure. 2023-10-19 22:53:47 +01:00
Paul Holden
10eb4f6a13 Move ui.js to ui subdir. 2023-10-19 22:53:47 +01:00
Paul Holden
6fca19ef1b Automated build 2023-10-19 08:16:56 +00:00
Paul Holden
5c0eb86534 Add ControllerConfig class. 2023-10-19 09:16:31 +01:00
Paul Holden
1bad2a3b6e Automated build 2023-10-18 07:49:56 +00:00
Paul Holden
cd7ea3a995 Add a controller modal. 2023-10-18 08:49:35 +01:00
Paul Holden
ac11df1542 Format 2023-10-18 08:49:35 +01:00
Paul Holden
94d15cf5b0 Format 2023-10-18 08:49:35 +01:00
Paul Holden
7bdaf56bea Automated build 2023-10-17 21:45:15 +00:00
Paul Holden
e3f20c4c0f Add a controller button. 2023-10-17 22:44:51 +01:00
Paul Holden
77edd4afe3 Automated build 2023-10-16 08:15:22 +00:00
Paul Holden
4d04fe98ea Initial gamepad support.
This assumes the standard mapping for now.
2023-10-16 09:15:00 +01:00
Paul Holden
9c786d4882 Register keyup/keydown event listeners in Controllers constructor. 2023-10-16 09:15:00 +01:00
Paul Holden
271aa1e68d Automated build 2023-10-15 21:21:06 +00:00
Paul Holden
518f8b4707 Tidy 2023-10-15 22:20:43 +01:00
Paul Holden
0ccbb9becb Ignore empty commits. 2023-10-15 22:19:19 +01:00