UNPKG

pixel-eight

Version:

A library inspired by the pico-8 API for writing games for the Kano Pixel

37 lines (22 loc) 993 B
# Pixel 8 Changes # 0.0.7 - Fixed issue with `cls`, it now uses `fill` so that the colors are correct # 0.0.6 - Fixed issue with previous release where it was missing a file # 0.0.5 - Added `print` to write text to the screen - Added `fill` to fill in a rectangle with black or a specified color # 0.0.4 - Added `bset` to the frame to draw a bitmap loaded from an exported animation - Updated `mset` to optionally take a transparent parameter to mark a color as transparent # 0.0.3 - Added `createMap` to create a map from an array of hex strings - Added `mset` to draw a map to the frame # 0.0.2 - Changed the frame to be constant betweeen ticks - Added `cls` to the frame interface for clearing the screen - Added a `index.types.d.ts` to try to give inline documentation in IDEs - Added a `color` object to expose colors names to code Eg. `color.red` - Changed the button interface to distinguish to give knowledge of a click vs pressed. # 0.0.1 - Initial prototype of the API