Changes made for this site
Original: Blockly Games, Pond Tutor (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 pond/tutor/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 pond-tutor.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.
- pond/tutor/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 "whack" collision sound (pond/whack.mp3/.ogg) has no stated source or license, so it was
replaced by pond/thud.wav, a short sound synthesized for this site (CC0).
- On page load the game "warmed up" its sounds by playing them at 1% volume; browsers block that
before the player clicks, so the warm-up was removed and a blocked play() is now ignored instead
of raising an error.
- pond/docs.html (the in-game documentation frame) got the same loader and title change as index.html.
- third-party/ace/LICENSE (BSD 3-Clause, ace-builds) added for the Ace editor used by the JavaScript levels.