Fix some typos in comments

This commit is contained in:
Dominic Szablewski
2021-09-14 08:35:55 +02:00
parent 462e00af49
commit 944249b25f
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -10,8 +10,8 @@ class entity_torch_t extends entity_t {
this.p.z -= 16;
this._light_pos = this.p;
// Find which wall we're on; move to the torch model towards the wall
// and the light position outwards
// Find which wall we're on; move the torch model towards the wall and
// the light position outwards
for (let trace_dir of [vec3(-32,0,0), vec3(32,0,0), vec3(0,0,-32), vec3(0,0,32)]) {
let trace_end = vec3_add(this.p, trace_dir);
if (map_trace(this.p, vec3_add(this.p, trace_dir))) {
+2 -2
View File
@@ -10,8 +10,8 @@
let keymap = {
W: 1, p: 1, // Key[W] or ArrowU[p]
A: 2, e: 2, // Key[A] or ArrowL[e]ft
S: 3, o: 3, // Key[S] or ArrowR[i]ght
D: 4, i: 4, // Key[D] or ArrowD[o]wn
S: 3, o: 3, // Key[S] or ArrowR[o]ght
D: 4, i: 4, // Key[D] or ArrowD[i]wn
Q: 5, // Key[Q]
E: 6, // Key[E]
c: 9, // KeySpa[c]e
+1 -1
View File
@@ -46,7 +46,7 @@ map_load_container = async (path) => {
for (let j = 0; j < b.length;) {
// First value is either the x coordinate or a texture change
// sentinel value (255) followed by the texture coordinate
// sentinel value (255) followed by the texture index
if (b[j] == 255) {
j++;
t = b[j++];