如何将所有分层图像合并为背景?

发布于 2025-01-19 20:10:30 字数 382 浏览 3 评论 0原文

在此处输入图像描述我目前正在尝试构建视频游戏,但我下载的背景图像Itch.IO 上有 3 层背景图像。我不知道如何将所有 3 张图像放在一起形成一个深入的背景。

**const background = new Sprite({
position: {
    x: 0,
    y: 0
},

imageSrc: './img/background/background_layer_1.png', 

})**

我尝试将所有三个图像添加到一行上,但失败了。抱歉,您只能看到 3 张图片中的一张。此帖子只允许我发布一张图片

enter image description hereI'm currently trying to build a videogame but the background images that I downloaded on Itch.IO are 3 layered bg images. I don't know how to put all 3 images together to form one in-depth background.

**const background = new Sprite({
position: {
    x: 0,
    y: 0
},

imageSrc: './img/background/background_layer_1.png', 

})**

i've tried adding all three images on one line but it couldn't. I apologize that you can only see one of the 3 images. This posting only allows me to post one image

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

冷情 2025-01-26 20:10:30

我弄清楚了!单击文件夹中的第1层,用MS涂料或3D涂料进行编辑,或任何地方,然后将每个后续层插入第一个并保存。

I figured it out! Click on layer 1 in your folder, edit in MS paint or 3D paint, or wherever, then insert each subsequent layer onto the first and save.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文