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
orcontents
property. To change how the characters overlap, uselayerList
.
To add functionality, use the forever function to repeat the code indefinitely.
function loop(){
Banana.x = mouse.x;
Banana.y = mouse.y;
}
output:
A full description of this can be found in the wiki.
This repository is in no way related to ink.sapo.pt.