想问问如何在已经打包出来的字节小游戏里面添加一个启动图;
//创建图片
this.canvas = tt.createCanvas();
this.ctx = this.canvas.getContext(‘2d’);
this.ctx .drawImage(img, x, y, img.width, img.height);
console.log(“释放首屏”);
this.ctx.clearRect(0, 0, this.windowWidth, this.windowHeight);
这样是可以显示一个图的,但是在游戏启动后,没办法把canvas这些内容去了,游戏也渲染不出来了,变成全部白屏了 0.0
有做过的兄弟可以指导一二吗?