Skip to content

nrkn/hrm-image-encoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hrm-image-encoder

An image encoder for Human Resource Machine programs

Screenshot

Human Resource Machine is a puzzle game. In each level, your boss gives you a job. Automate it by programming your little office worker! If you succeed, you'll be promoted up to the next level for another year of work in the vast office building. Congratulations!

NPM

npm install hrm-image-encoder

Unlike some of my other HRM projects, this one is plain ES5

Usage

const encode = require( 'hrm-image-encoder' )

const hrmImage = encode( paths )

Outputs a string in HRM label/comment format.

The input is an array of paths, each of which is an array of points:

[
  [
    [ 2226, 6828 ],
    [ 2701, 18411 ],
    [ 2701, 29125 ]
  ],
  [
    [ 1656, 18700 ],
    [ 6500, 18121 ],
    [ 7355, 17542 ]
  ],
  [ "etc." ]  
]  

Also, see the examples folder

License

MIT

About

An image encoder for Human Resource Machine programs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published