Skip to content

Carson12345/websprite.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

websprite.js

Easily embed a programmable sprite to your website

demo: https://www.cy2.tech/

<html style="height: 100%; width: 100%;">
    <head>
        <title>Test</title>
    </head>
    <body style="height: 100%; width: 100%;">
        <h1>I am a test website</h1>
        <script src="https://unpkg.com/websprite.js@latest/dist/index.js"></script>
        <script>
            window.WebSpriteInit({
                rememberLastPosition: false
            }, async (inst) => {
                await inst.goToCoordinates({
                    destinationCoordinates: {
                        x: 200,
                        y: 200
                    }
                })
            });
        </script>
    </body>
</html>

About

Easily embed a programmable sprite to your website

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published