使用 Javascript 创建等轴测图

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7825572/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-26 01:27:31  来源:igfitidea点击:

Create an isometric map with Javascript

javascript

提问by Sebastien

I want to make a small game with Javascript/HTML 5. For this game i need an isometric map where each square is clickable.

我想用 Javascript/HTML 5 制作一个小游戏。对于这个游戏,我需要一个等距地图,其中每个方块都是可点击的。

How can i make that? Do you know some plugins to help me to do that?

我怎样才能做到这一点?你知道一些插件可以帮助我做到这一点吗?

I find this solution http://www.cw-internetdienste.de/isomap/but the result is not very good...

我找到了这个解决方案http://www.cw-internetdienste.de/isomap/但结果不是很好......

Thank you

谢谢

回答by Horn

Crafty.jsis able to do clickable isometric maps. There's even a isometric samplewhere you can right click on blocks to remove them.

Crafty.js能够制作可点击的等距地图。甚至还有一个等距示例,您可以在其中右键单击块以将其删除。

回答by Juho Veps?l?inen

You might want to check out jgenand pp3Diso.

您可能想查看jgenpp3Diso

回答by kichu

http://www.glacialflame.com/have nice tutorial's how to implement isometric in HTML5 Canvas

http://www.glacialflame.com/有很好的教程如何在 HTML5 Canvas 中实现等距