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

2.5.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

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i blockwise

    Weekly Downloads

    6

    Version

    2.5.0

    License

    MIT

    Unpacked Size

    834 kB

    Total Files

    155

    Last publish

    Collaborators

    • ferdodo