使用 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
Create an isometric map with 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.
回答by kichu
http://www.glacialflame.com/have nice tutorial's how to implement isometric in HTML5 Canvas
http://www.glacialflame.com/有很好的教程如何在 HTML5 Canvas 中实现等距