@zimjs/game
TypeScript icon, indicating that this package has built-in type declarations

2.8.5 • Public • Published

game

ZIM Game is a helper module for the ZIM JavaScript Canvas Framework at https://zimjs.com. The module includes the following classes:

gamezaps_4

ZIM already comes with many features for games as described in the ZIM Games. Open the MORE section:

uiux_2

Plus all the conveniences, components and controls of general Interactive Media.

CDN

Usually we use ES Modules to bring in ZIM and if we want Game then we the code below - see the starting template at the top of the https://zimjs.com/code page. If physics is needed, just import zim_physics and it will include the game module by default. (Note, the NPM Physics does not).

import zim from "https://zimjs.org/cdn/016/zim_game";

NPM

This repository holds the NPM package so you can install from @zimjs/game on NPM. The ZIM package must be installed to work.

import zim from "zimjs"
import { Board, Scorer, Timer, Dialog } from "@zimjs/game"

Examples

There are hundreds of examples many including games in ZIM Examples. The ZIM Games page feature a bunch for instance:

oddrobots2

dazzlefinger

droid2

ZIM

See the ZIM repository at https://github.com/danzen/zimjs for information on ZIM and open source license, etc.

Package Sidebar

Install

npm i @zimjs/game

Weekly Downloads

52

Version

2.8.5

License

MIT

Unpacked Size

106 kB

Total Files

4

Last publish

Collaborators

  • danzen