Choppy Orc is a short HTML5 game with a certain speedrunning intrigue. You can play the game for free in your JavaScript-enabled browser e.g. on Kongregate and watch the feats of human runners on the game's speedrun.com page:
https://www.speedrun.com/Choppy_Orc/full_game
I developed a TAS tool for the game and am in the intermittent process of polishing up a run. My approach was to inject some JavaScript to rebind critical API for scheduling the game loop and capturing inputs. With this foot in the door, I was able to implement a simple TAS environment and construct a run of the game level-by-level. My implementation of save-states is ad hoc; because I am not able to explicitly save the state of the game, I "reset" to a state within a level by having my tool replay the inputs made up to that point while running the game loop as quickly as the JavaScript interpreter cares to make possible. This has proved adequate since most levels do not exceed 10 seconds.
I am looking for anyone interested in collaborating on this TAS, or for anyone interested in TASing some other interesting HTML5 game. In principle, my approach could work for many recent titles. I am also curious to know if anybody has published a TAS of a HTML5 game or investigated such a project before.
Links
Click "speedrun" and do nothing to watch the current version of the TAS play in your browser:
http://mat.uc.pt/~mat1617/orc/TAS.html The timer at the bottom of the screen is my own addition. The "WR" field gives the best result by human runners on a particular level.
Start the game, open the web console, and press 'r' to try out the TAS tool, which is inexplicably called "Instant Coffee":
http://mat.uc.pt/~mat1617/orc/coffee.html
Investigate and improve our work:
https://docs.google.com/spreadsheets/d/1Xx64WBd3y3i1BCQN6TqErTFil2J1OVZpuoIU_TUbtgU/edit#gid=0
Use my tool for your own adventures:
https://github.com/MagneticDuck/instant-coffee