@@ -62,7 +62,7 @@ give the player the feeling of being in direct control of the onscreen
6262
6363{{index "fractional number", discretization, "artificial life", "electronic life"}}
6464
65- The ((game)) consists of a fixed ((background)), laid out like a
65+ The ((game)) consists of a static ((background)), laid out like a
6666((grid)), with the moving elements overlaid on that background. Each
6767field on the grid is either empty, solid, or ((lava)). The moving
6868elements are the player, coins, and certain pieces of lava. The
@@ -119,7 +119,7 @@ part of the background grid or a moving element.
119119The plan for a small level might look like this:
120120
121121``` {includeCode: true}
122- var simpleLevelPlan = `
122+ let simpleLevelPlan = `
123123......................
124124..#................#..
125125..#..............=.#..
@@ -692,8 +692,8 @@ element into which we draw the game. That is why the
692692protruding outside the viewport, we scroll that viewport to make sure
693693the player is near its center. The following ((CSS)) gives the game's
694694wrapping ((DOM)) element a maximum size and ensures that anything that
695- sticks out of the element's box is not visible. We also give the outer
696- element a relative position so that the actors inside it are
695+ sticks out of the element's box is not visible. We also give it
696+ a relative position so that the actors inside it are
697697positioned relative to the level's top-left corner.
698698
699699``` {lang: "text/css"}
0 commit comments