added asfalt

This commit is contained in:
Ziver Koc 2007-05-07 13:03:05 +00:00
parent 586b70a9ba
commit b5ab445967
6 changed files with 20 additions and 3 deletions

View file

@ -21,6 +21,7 @@ public class Map {
public static final int MAP_GRASS = 0;
public static final int MAP_SAND = 1;
public static final int MAP_REDMUD = 2;
public static final int MAP_ASFALT = 3;
public static final int OBJ_STONE = 1;
@ -95,13 +96,16 @@ public class Map {
case MAP_REDMUD:
mapNode.add(getPosSprite(i,j,"data/map/redmud.jpg"));
break;
case MAP_ASFALT:
mapNode.add(getPosSprite(i,j,"data/map/redmud.jpg"));
break;
}
}
}
// init the gaia player and stones etc...
Player gaia = new GaiaPlayer();
PlayerHandler.getInstance().addPlayer(gaia);
PlayerHandler.getInstance().setGaiaPlayer(gaia);
for(int i=0; i<width ;i++){
for(int j=0; j<hight ;j++){
switch(objData[i][j]){
@ -194,6 +198,7 @@ public class Map {
float yf = (POS_SIZE*y);
return new Vector2f(xf,yf);
}
public static Vector2f getPixelByPos(int x, int y, int size){
if(size%2!=0) {
size = (size/2)+1;