Skip to content

sfrdmn/solitairewin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

For nice victory

Options

viewport

The container element to which the canvas will be appended. The animation will conform to the size of this element.

images

An array of the names of all images to be animated.

path

Path to the folder containing the images.

n

Number of images onscreen at a time. Defaults to 1.

resize

Boolean indicating whether to resize canvas on window resize. Basically only for when viewport resizes with window.

minVx

maxVx

minVy

maxVy

bounce

gravity

Notes

There's a load method which accepts a callback and loads the images. A load event is also triggered on load. Using start implicitly calls load.

About

classic win95 style winning in the browser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published