在原来的图片上增加了一个小黄块
// add "HelloWorld" splash screen"
auto sprite = Sprite::create("HelloWorld.png");// position the sprite on the center of the screen
sprite->setPosition(Vec2(visibleSize.width/2 + origin.x, visibleSize.height/2 + origin.y));
// add the sprite as a child to this layer
this->addChild(sprite, 0);
for (int i = 0; i < 16 * 16; i++) redTest[i] = 0xFF00FFFF;
auto tex = sprite->getTexture();
tex->updateWithData(redTest, 0, 0, 16, 16);