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. */
|
/** Decompresses a 1-bit gray scale PNG image to image format. */
|
||||||
//%
|
//%
|
||||||
Image unpackPNG(Buffer png) {
|
Image_ unpackPNG(Buffer png) {
|
||||||
if (!png) {
|
if (!png) {
|
||||||
DMESG("PNG: Missing image");
|
DMESG("PNG: Missing image");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -45,10 +45,10 @@ static void bitBufferToFrameBuffer(uint8_t *bitBuffer, uint8_t *fb) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static uint8_t *mappedFrameBuffer;
|
static uint8_t *mappedFrameBuffer;
|
||||||
static Image lastImg;
|
static Image_ lastImg;
|
||||||
|
|
||||||
//%
|
//%
|
||||||
void updateScreen(Image img) {
|
void updateScreen(Image_ img) {
|
||||||
if (img && img != lastImg) {
|
if (img && img != lastImg) {
|
||||||
decrRC(lastImg);
|
decrRC(lastImg);
|
||||||
incrRC(img);
|
incrRC(img);
|
||||||
|
@ -45,8 +45,8 @@
|
|||||||
"webfonts-generator": "^0.4.0"
|
"webfonts-generator": "^0.4.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"pxt-common-packages": "0.20.5",
|
"pxt-common-packages": "0.20.14",
|
||||||
"pxt-core": "3.4.9"
|
"pxt-core": "3.5.4"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "node node_modules/pxt-core/built/pxt.js travis"
|
"test": "node node_modules/pxt-core/built/pxt.js travis"
|
||||||
|
@ -99,8 +99,8 @@ namespace pxsim.image {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace pxsim.pxtcore {
|
namespace pxsim.game {
|
||||||
export function updateStats(str: string) {
|
export function takeScreenshot() {
|
||||||
// TODO
|
// TODO
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user