开发者

Android Development: 2d Best way to do RPG? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 10 years ago.

Im developing a 2d RPG using surfaceview. This is how Ive done:

  • I have a Tile bitmap that is basicly the whole world that i did in Photoshop.
  • I have 1 Array which contains number 0 and 1. 1 means collision and 0 mean Ok to walk.

But this is very slow because if i want to change something i ahve to go to photoshop change the world.png then go into the array with 100 items and change collsion right.

Isnt there a faster way to do this? Ive tried MapEditor but it exports as .TMX and I have no idea how to read that.

Any help how to make this better, any link any idea w开发者_如何学Chould be really appritiaded!

//Simon


Normally you would use lots of little tiles that would make up your world, each tile would have a definition that would make it passable or impassable, the level of the (z-height) of the tile and any other information you could want.

Why not create your own file format and load that?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜