ZIM Game is a helper module for the ZIM JavaScript Canvas Framework at https://zimjs.com. The module includes the following classes:
- LeaderBoard https://zimjs.com/leaderboard
- Board https://zimjs.com/iso/
- Person, Tree, Orb
- Timer
- Scorer
- Dialog https://zimjs.com/nft/bubbling/dialog.html
ZIM already comes with many features for games as described in the ZIM Games. Open the MORE section:
- one-line drag-and-drop
- MotionController https://zimjs.com/controller
- Multiple HitTests
- Sprites (plus Dynamo and Accelerator)
- Scroller
- Parallax
- Physics https://github.com/danzen/zim-physics
- AudioSprites
- Interfaces (dpad, radialmenu, buttons, slider, dials, etc.)
Plus all the conveniences, components and controls of general Interactive Media.
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";
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"
There are hundreds of examples many including games in ZIM Examples. The ZIM Games page feature a bunch for instance:
See the ZIM repository at https://github.com/danzen/zimjs for information on ZIM and open source license, etc.