Changes made for this site
Original: Blockly Games, Turtle (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 turtle/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 turtle.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.
- turtle/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).
(The gallery button on level 10 is part of the online version only and stays hidden.)