/ink.js

Ink.js is a simple object-based tool for creating online games and apps. Instead of using the normal canvas element, it uses real HTML.

Note:

This was a side project when I first started programming

It is not really usefull and probably has a lot of bugs

But it was fun to make!

Ink.js is an object-oriented tool for creating online apps and games. It is simple, and does not require any installation.

To use ink, add this script to the top of your HTML:

<script src="https://ink.js.org/ink.min.js" ></script>

To add a character, create an object with its properties.
Banana = {
    type: "image",
    source: "https://ink.js.org/demo/banana.jpg",
    width: 25,
    x: 0,
    y:0,
};

Ink.js only notices an object if it has a type or contents property. To change how the characters overlap, use layerList.


To add functionality, use the forever function to repeat the code indefinitely.

function loop(){
	Banana.x = mouse.x;
	Banana.y = mouse.y;
}

output:

click to open

A full description of this can be found in the wiki.

This repository is in no way related to ink.sapo.pt.