简体   繁体   English

Travian 中的交互式地图

[英]Interactive Map like in Travian

I am making a browser game like travian in our thesis.在我们的论文中,我正在制作一个像 travian 这样的浏览器游戏。 my difficulties is the map.我的困难是地图。

I want my map to be interactive such that there will be: zoom in\/out dragging on the ground makes the map move grids (not isometric or hex)我希望我的地图是交互式的,这样会有:放大\/缩小在地面上拖动使地图移动网格(不是等距或十六进制)

all i need to know is how to generate the map.我只需要知道如何生成地图。 i think i can handle populating it with objects inside such as villages and forest etc. can anybody help me or just provide me a simple example of how to create a map?我想我可以用里面的物体来填充它,比如村庄和森林等。有人能帮我吗,或者只是给我一个如何创建地图的简单例子? probably im going to use jquery or html5 right?可能我会使用 jquery 或 html5 对吗? just a simple example that i can start with.只是一个简单的例子,我可以开始。 tnx tnx

"

So, I found a tutorial but I don't really understand how the rendering goes. 因此,我找到了一个教程,但是我不太了解渲染的过程。 It creates the map like you wanted (and what I wanted too - since I'm making one now). 它会按照您想要的方式(以及我也想要的-因为我现在正在制作地图)创建地图。 I think that one is perfect, it is using Pixi.js 我认为这很完美,它使用的是Pixi.js

I am trying to do something similar, can you guys help me?我正在尝试做类似的事情,你们能帮帮我吗? Tutorial link is dead now.教程链接现在死了。

"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM