2.3.0 • Published 24 days ago

blockwise v2.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
24 days ago

Npm package npm GitHub last commit (branch) GitHub npm

Blockwise is a utility library that simplifies 2D game development by treating all elements as blocks. It exposes a single TypeScript interface, aiming to provide essential functions for creating small, beginner-friendly games.

import { Block, isBlockColliding } from "blockwise";

const player: Block = { x: 0, y: 0, w: 1, y: 1 };
const obstacle: Block = { x: 15, y: 0, w: 1, y: 1 };
console.log(isBlockColliding(player, obstacle)); // false

Documentation

https://ferdodo.github.io/blockwise/

Installation

npm install blockwise
2.3.0

24 days ago

2.2.0

1 month ago

2.0.0

6 months ago

1.2.0

7 months ago

1.1.1

8 months ago

1.1.0

8 months ago

1.0.0

8 months ago