LÏKE is a framework similar to LÖVE or Raylib, but built for web canvas.
Focus on what matters.
No need to fuss with clunky web APIs. Get things on screen in an instant.
By using low-state abstractions, LÏKE is easier to reason about than vanilla.
LÏKE is a framework, not an engine. It's good for any realtime 2D canvas app, not just games.
LÏKE is MIT, so you're free to modify it as you see fit. The code is kept as simple and clean as possible.
I'm digging in the dirt of Web APIs so you don't have to. LÏKE is your flower bed.
LÏKE is in 2.x.x, which for us means heavy development and API breakage. Watch this space.
Familiar binds for many, but modernized.
import { createLike } from "like2d";
const like = createLike(document.body);
like.load = () => {
like.canvas.setMode([800, 600]);
like.input.setAction("jump", ["Space", "BBottom"]);
};
like.update = (dt) => {
if (like.input.justPressed("jump")) {
console.log("Jump!");
}
};
like.draw = () => {
like.gfx.clear([0.1, 0.1, 0.1, 1]);
like.gfx.circle("fill", "dodgerblue", [400, 300], 50);
like.gfx.print("white", "Hello Like2D!", [20, 20]);
};
await like.start();
Wow, you knew about LÏKE before it was cool.