turtliko.js

A little pixel turtle that swims after your mouse and blows bubbles. Based on oneko.js.

My role: I turned the oneko.js cat into a swimming turtle pet and published it as its own script.

JavaScriptPixel artGitHub Pages

What it is

turtliko.js is a small script that adds a pixel turtle to a web page. The turtle swims toward the mouse and leaves a trail of bubbles. It is a turtle take on oneko.js by adryd.

What I built

I adapted the oneko.js code to a 256 x 128 turtle sprite sheet with four swim frames for each of eight directions. I added bubbles while the turtle swims and idles, options set through data attributes, and a saved position across page loads. The turtle does not run for visitors who ask for reduced motion.

Stack

Plain JavaScript and a PNG sprite sheet, with a live demo on GitHub Pages. MIT license.

My role

I built and published the project. The same turtle swims on this site.