Changes made for this site
Original: Blockly Games, Maze (https://github.com/google/blockly-games), English offline build
generated/blockly-games-en.zip from the "offline" branch @ 2768f123085854bcf972081d3b222c2d7ffa4158.
License: Apache License 2.0 (LICENSE, copied from the master branch @ 5d2ff6f39207f7ed31e3d11ba1de277c85efe4c2).
The game is served from the original compiled (minified) files; the patches below are plain text
substitutions in maze/generated/en/compressed.js.
- Only this one game was copied (with the shared common/ and third-party/ files it uses); the
games menu, the other games, about.html and the favicon were left out.
- index.html is the original maze.html with: a new
; the request for /common/storage.js
(server-side saving and sharing of programs) removed; common/boot.js (which picked the game
from the page URL) replaced by a small inline loader for the English language pack.
- maze/generated/en/compressed.js:
- The page always runs in "offline HTML" mode, whatever its URL. This keeps the
server features of the online version switched off: Google Analytics, error reports sent to
the server, the "save and link to blocks" button and the gallery submission form.
- The Google Analytics script tag is never inserted.
- The "Help" item in the block right-click menu (it opened Wikipedia/GitHub reference pages in a
new window) is disabled.
- The Blockly default media path pointed at blockly-demo.appspot.com; it now points at the local
third-party/blockly/media/ folder (the game already passed that local path).
- The header and browser title read "Block Code" instead of the original product name.
- After the last level the original asks "Are you ready for the next challenge?" and opens the
games menu; since only this game is included, the text now says that every level is solved and
OK returns to level 1.
- The "this level is extremely difficult" dialog offered to skip to the next game; it now offers
to go back to level 1 (which is what OK does in this single-game copy).
- Characters: the original offers three, defaulting to "Pegman" (a mascot from another Google
product) on a road-map tile set with a map-pin goal marker. Only the astronaut character and its
pipe tile set are kept, on a plain background: the Pegman and panda sprites/tiles/sounds, the map
pin and the two background photos (a star-cluster photo used "with permission" and a forest
photo, neither under a stated open license) were removed. The goal marker is a flag drawn for this
site (maze/goal.svg, CC0). The character menu button is hidden with CSS and the level-5 hint that
points at it is not shown.