import kaboom from "kaboom";
// initialize context
kaboom();
addLevel([
"!^^^^^^^^^^^^^^^ &",
"!^^^^^^^^^^^^^^^ &",
"!^^^^^^^^^^^^^^^ &",
"! &",
"! &",
"! &",
"! &",
"! &",
"! &",
"! &",
"! &",
"! &",
], {
width: 30,
height: 22,
"^": () => [
sprite("space")
],
// "!": () => [
// sprite("wall", "left-wall")
// ],
// "&": () => [
// sprite("wall", "right-wall")
// ]
}) 当我运行代码时,我得到这个错误,尽管我创建了子画面:“sprite not found:”space“”
有人知道解决方案吗?谢谢!
发布于 2021-10-18 16:15:56
我发现了错误,img注册为Pedlit,所以我不得不使用LoadPedlit()
https://stackoverflow.com/questions/69619140
复制相似问题