Posts for magneticduck

magneticduck
He/Him
Joined: 6/20/2019
Posts: 2
Location: Portugal / New England
InfamousKnight wrote:
Very neat! I wonder if this will be a more simple project than libtas is. Ive ran windows 2000 in the browser before Runs slow though.
Instant Coffee is, for the moment, not at all comparable to libTAS because it is not able to make explicit savestates. This is a big limitation; I have to rely on the game itself to give me points I can reset to and replay inputs from. Today I was able to make a cute run of a short HTML5 game called "The Last Balloon": https://vimeo.com/345468351 The TAS makes it look easy, but manipulating the balloon as precisely as is done here seems quite impossible to do by hand. Here's another cute, short run. The optimization isn't up to the standards of the usual TAS videos on this site, but it succeeds in making tricks that are totally impossible by hand look very easy. https://twitter.com/ChrisGadzinksi/status/1146391752649125888.
Post subject: TASing a HTML5 game (inside a browser)
magneticduck
He/Him
Joined: 6/20/2019
Posts: 2
Location: Portugal / New England
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