Fix some typos in comments
This commit is contained in:
@@ -10,8 +10,8 @@ class entity_torch_t extends entity_t {
|
|||||||
this.p.z -= 16;
|
this.p.z -= 16;
|
||||||
this._light_pos = this.p;
|
this._light_pos = this.p;
|
||||||
|
|
||||||
// Find which wall we're on; move to the torch model towards the wall
|
// Find which wall we're on; move the torch model towards the wall and
|
||||||
// and the light position outwards
|
// 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)]) {
|
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);
|
let trace_end = vec3_add(this.p, trace_dir);
|
||||||
if (map_trace(this.p, vec3_add(this.p, trace_dir))) {
|
if (map_trace(this.p, vec3_add(this.p, trace_dir))) {
|
||||||
|
|||||||
+2
-2
@@ -10,8 +10,8 @@
|
|||||||
let keymap = {
|
let keymap = {
|
||||||
W: 1, p: 1, // Key[W] or ArrowU[p]
|
W: 1, p: 1, // Key[W] or ArrowU[p]
|
||||||
A: 2, e: 2, // Key[A] or ArrowL[e]ft
|
A: 2, e: 2, // Key[A] or ArrowL[e]ft
|
||||||
S: 3, o: 3, // Key[S] or ArrowR[i]ght
|
S: 3, o: 3, // Key[S] or ArrowR[o]ght
|
||||||
D: 4, i: 4, // Key[D] or ArrowD[o]wn
|
D: 4, i: 4, // Key[D] or ArrowD[i]wn
|
||||||
Q: 5, // Key[Q]
|
Q: 5, // Key[Q]
|
||||||
E: 6, // Key[E]
|
E: 6, // Key[E]
|
||||||
c: 9, // KeySpa[c]e
|
c: 9, // KeySpa[c]e
|
||||||
|
|||||||
+1
-1
@@ -46,7 +46,7 @@ map_load_container = async (path) => {
|
|||||||
for (let j = 0; j < b.length;) {
|
for (let j = 0; j < b.length;) {
|
||||||
|
|
||||||
// First value is either the x coordinate or a texture change
|
// 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) {
|
if (b[j] == 255) {
|
||||||
j++;
|
j++;
|
||||||
t = b[j++];
|
t = b[j++];
|
||||||
|
|||||||
Reference in New Issue
Block a user