Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change the map #269

Open
yjm110517 opened this issue Jan 18, 2025 · 6 comments
Open

How to change the map #269

yjm110517 opened this issue Jan 18, 2025 · 6 comments

Comments

@yjm110517
Copy link

Why can't I display the map after I use convertMap.js to convert the map imported by tiled, but the background is blue?

@Ycx2000
Copy link

Ycx2000 commented Jan 19, 2025

Run just convex run testing:wipeAllTables and
just convex run init ? This works for me.

@yjm110517
Copy link
Author

ImageI am importing the converted converted-map.js into gentle.js, and after that just convex run testing:wipeAllTables and just convex run init, but the background is still blue and doesn't show up correctly, and there are even windmills left over from the original map. Did you make your own map with tiled? Can you run it in this project?
我是把转换后的converted-map.js导入到gentle.js,之后just convex run testing:wipeAllTables 和just convex run init,但是背景就还是蓝色,无法正常显示。你是自己用tiled自制地图吗可以在这个项目里面运行吗

@Ycx2000
Copy link

Ycx2000 commented Jan 19, 2025

I have tried making my own tiles and also using the map modification method recommended here, both work. The former has the problem of tiles being out of order, but the overall framework is fine. Have you checked the tileset path in the generated js file?我试过自制tiled,也用过这里推荐的修改地图,都可以。前者出现了tile乱序的问题,但总体框架结构是没问题的。你检查一下生成的js文件中的tileset路径呢?

@yjm110517
Copy link
Author

I know where the problem is, but I don't know how to fix it, I use tile to generate layers with only one layer, the source file generates a layer with two layers,Can you tell me the process of making a homemade map with tiled, I'd like to see which step went wrong Or can I have contact information to get in touch with you?
我知道哪里的问题,但是我不知道怎么解决,我用tile生成图层的只有一层,源文件生成一个图层有俩层,你能告诉我用tiled自制地图的流程吗,我想看一下是哪个步骤出了问题,或者能有联系方式联系你吗

Image

Image

@Ycx2000
Copy link

Ycx2000 commented Jan 20, 2025

这里提到了,你需要有两个图层。

Image

There should be two layers.

@yjm110517
Copy link
Author

我解决了显示的问题,但是显示的屏幕有点小。
I solved the display problem, but the display screen is a bit small.
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants