added a few (yet not working) objects

This commit is contained in:
2025-11-26 23:16:15 +01:00
parent 90dc655a6b
commit 09969807f3
9 changed files with 106 additions and 3 deletions

View File

@@ -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++;