Upgrading to pxt 3.5.4 (#367)
* pxt/common updates * added game lib * removing gamelib
This commit is contained in:
parent
d714e4df42
commit
06f66571cf
@ -28,7 +28,7 @@ static uint32_t swap(uint32_t num) {
|
||||
|
||||
/** Decompresses a 1-bit gray scale PNG image to image format. */
|
||||
//%
|
||||
Image unpackPNG(Buffer png) {
|
||||
Image_ unpackPNG(Buffer png) {
|
||||
if (!png) {
|
||||
DMESG("PNG: Missing image");
|
||||
return NULL;
|
||||
|
@ -45,10 +45,10 @@ static void bitBufferToFrameBuffer(uint8_t *bitBuffer, uint8_t *fb) {
|
||||
}
|
||||
|
||||
static uint8_t *mappedFrameBuffer;
|
||||
static Image lastImg;
|
||||
static Image_ lastImg;
|
||||
|
||||
//%
|
||||
void updateScreen(Image img) {
|
||||
void updateScreen(Image_ img) {
|
||||
if (img && img != lastImg) {
|
||||
decrRC(lastImg);
|
||||
incrRC(img);
|
||||
|
@ -45,8 +45,8 @@
|
||||
"webfonts-generator": "^0.4.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"pxt-common-packages": "0.20.5",
|
||||
"pxt-core": "3.4.9"
|
||||
"pxt-common-packages": "0.20.14",
|
||||
"pxt-core": "3.5.4"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "node node_modules/pxt-core/built/pxt.js travis"
|
||||
|
@ -99,8 +99,8 @@ namespace pxsim.image {
|
||||
}
|
||||
}
|
||||
|
||||
namespace pxsim.pxtcore {
|
||||
export function updateStats(str: string) {
|
||||
namespace pxsim.game {
|
||||
export function takeScreenshot() {
|
||||
// TODO
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user