Skip to content

cirion02/YouDroveOffTheRoadTas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

General info

This is a modification of the You drove of the road game by Ian Henderson to allow for tassing.
The html file here includes all code needed for tasing.
To run a tas add it as a script tag at the comment <!-- load your tasfile(s) here-->,
The file will run on loading the page, reload to rerun the file.
The tas file manually caps your inputs to between 0-800 as these seem to be the boandries on my machine,
however your actual screensize should not effect the tas.

Tas File Layout

tas files are .js files with the following inside them

tasFiles.push({
loadLevel : [levelname],
frameAdvance : [number] (optional),
skipFrames: [number] (optional),
showHitbox: true (optional),
inputs : `
[inputlines]
`
})

levelname = the name of the level you're tasing
frameAdvance = if set the game will run in frameadvance mode, the numer you enter will specify the default amount of frames to advance.
skipFrames = the starting of frameadvance will be delayed by this amount (overwritten by breakpoints)
showHitbox = if true will show the hitboxes of signes as well as the true track limits
inputs = the actual inputs of the tas, see below

Input format

Actual input take two forms
frames:X,Y and frames
The former will hold the mouse down on those coordinator for that many frames (X and Y are capped between 0-800 and only allow integers)
The latter will release the mouse for that many frames
Spaces are ignored so both 5:200,200 and 5 : 200, 200 are valid inputs

Further Commands

*** will create a breakpoint, when running in frameadvance mode, the tas will run and stop the frame before the input after the last breakpoint.
#anything is a comment and will be ignored
empty lines will also be ignored

Frame Advance

Note: Frame Advance is not perfectly accurate, run tases without it to verify

When running in frameadvance, there are three buttons to use:

  • P: Will run the game for the amount of frames specified in the tas file
  • O: Will run the game for 1 frame
  • I: Will exit frameadvance mode

About

A modded version of http://ianhenderson.org/you-drove-off-the-road.html that allows you to tas

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published