0

我曾经开始制作一个安卓游戏,并在我不得不找到一种方法来制作 2D 地图的时候停下来。

很多人可能都知道“猎户座大师 2”游戏示例:http ://www.youtube.com/watch?v=s0S2RZB6-uY

我现在遇到的问题是我并不聪明,无法找到一种方法来制作像 11:00 看到的星图一样的 2D 象棋地图

我正在考虑一个 X*Y 字段和一个代码,它将其中一些设置为太阳系(可以这么说),而其他的则保持在“未使用”状态,并且只是你必须通过的字段。

还有..我可以直接从 A 到 B 吗?还是我必须一步一步飞过田野?

对不起我不完美的英语,我不是母语人士。我只是想学习一些Java并使平板电脑再次有用,因为我认为到目前为止还没有MoO2游戏(我只是喜欢基于回合的游戏)

4

1 回答 1

0

My problem goes more into the direction of "how do it do it?"

So far i know that i can make it like this:

public static void main (String [] args) {

    int  [][] galaxy;
    galaxy = new int [8][10]; 

this would build a galaxy of 8x10 fields, while i'm now searching for the best way to get it on screen with a black background and then making some of those fields (they are state 0 amt, right?) into solar systems, by giving them a JPG that i can klick on to open the solar system (a normal list windown will do it at first) and then select the planet to build on it.

i understand that a planet is a array in the array, but so far i'm not sure how to creat them an get them on screen, so i can give them attributes

it also seems that JLabel is not working for androind and thats why i'm stucked

于 2013-08-25T11:30:29.200 回答