liko is a 2D physics engine written in TypeScript
npm install likoLiko is a high-performance rendering engine based on WebGPU, specially designed for AI.
Liko can be used for game development, H5 applications, and interactive scenarios.
``bash`
npm install liko
`typescript
import { App, Text } from 'liko';
async function test() {
// Create application instance
const app = new App();
// Initialize the application, set canvas size to 800x800
await app.init({ width: 800, height: 800 });
// Create text object
new Text({
text: "Hello World", // Text content
fillColor: "#ff0000", // Text color (red)
fontSize: 30, // Font size
pos: { x: 100, y: 100 }, // Text position
parent: app.stage, // Parent node is stage
});
}
test();
``
source code:
https://github.com/letmaker/liko-demo