blockwise
TypeScript icon, indicating that this package has built-in type declarations

2.8.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i blockwise

Weekly Downloads

27

Version

2.8.0

License

MIT

Unpacked Size

1.1 MB

Total Files

185

Last publish

Collaborators

  • ferdodo