added a few (yet not working) objects
This commit is contained in:
@@ -78,6 +78,7 @@ public class TileManager {
|
||||
|
||||
while(worldCol < panel.maxWorldCol && worldRow < panel.maxWorldRow) {
|
||||
int tileNum = mapTileNum[worldCol][worldRow];
|
||||
|
||||
int worldX = worldCol * panel.tileSize;
|
||||
int worldY = worldRow * panel.tileSize;
|
||||
int screenX = worldX - panel.player.worldX + panel.player.screenX;
|
||||
@@ -90,6 +91,7 @@ public class TileManager {
|
||||
) graphics2D.drawImage(tile[tileNum].image, screenX, screenY, panel.tileSize, panel.tileSize, null);
|
||||
|
||||
worldCol++;
|
||||
|
||||
if(worldCol == panel.maxWorldCol) {
|
||||
worldCol = 0;
|
||||
worldRow++;
|
||||
|
||||
Reference in New Issue
Block a user