Blocky apps step by step execution (ala Debug)

352 views
Skip to first unread message

Jurgis Pralgauskis

unread,
May 21, 2014, 5:17:33 PM5/21/14
to blo...@googlegroups.com
Hi,

is anyone else interested in simple way to have pause/next in Blocky apps?
https://code.google.com/p/blockly/issues/detail?id=223

I tried with Maze -- added pause, nextaction variables and some extra logic to Maze.animate function.
http://galvosukykla.lt/failai/coding/blockly-read-only-PauseButton/apps/maze/index.html?lang=en&level=3&skin=0
(Pause/Next added just for English language, others absent there)

Marlon Smith

unread,
May 21, 2014, 9:07:01 PM5/21/14
to blo...@googlegroups.com
I am interested in this example. Where is the source?


--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jurgis Pralgauskis

unread,
May 22, 2014, 2:14:11 AM5/22/14
to blo...@googlegroups.com
I inserted the HTML for Pause/Next buttons manually into http://galvosukykla.lt/failai/coding/blockly-read-only-PauseButton/apps/maze/generated/en.js
Normaly should make changes to
http://code.google.com/p/blockly/source/browse/trunk/apps/maze/template.soy

And the logic in several places in maze.js (can find with "Pause/Next hack by jurgis" in coments or by diff )
http://galvosukykla.lt/failai/coding/blockly-read-only-PauseButton/apps/maze/maze.js :)
original:
http://code.google.com/p/blockly/source/browse/trunk/apps/maze/maze.js

The same logic seems to be applicable to turtle as well -- but maybe there is more abstract way -- not to repeat in every app?
Reply all
Reply to author
Forward
0 new messages