wall render 3

This commit is contained in:
Vector 2026-07-02 12:46:26 +02:00
parent c42c0eba90
commit 4ae81aa454
4 changed files with 5 additions and 1 deletions

Binary file not shown.

View File

@ -25,7 +25,7 @@ public class Render {
{ {
game.strokeWeight(4); game.strokeWeight(4);
game.stroke(255,255,0); game.stroke(255,255,0);
game.line(wall[0]*game.cellSize+game.cellSize,wall[1]*game.cellSize,wall[3]*game.cellSize ,wall[3]*game.cellSize+game.cellSize); game.line(wall[2]*game.cellSize, wall[1]*game.cellSize,wall[2]*game.cellSize ,wall[3]*game.cellSize+game.cellSize);
} }
} }
public void drawGhost(int x, int y, int r, int g, int b, boolean visible){ public void drawGhost(int x, int y, int r, int g, int b, boolean visible){

Binary file not shown.

View File

@ -63,9 +63,13 @@ public class Game extends PApplet{
public void populateWalls(){ public void populateWalls(){
wall = new int[][]{ wall = new int[][]{
{0, 4, 0, 5}, {0, 4, 0, 5},
{4,0,5,0},
{0, 5, 0, 6}, {0, 5, 0, 6},
{10,4,10,5}, {10,4,10,5},
{10,5,10,6}, {10,5,10,6},
{-1,0,0,0},
{-1,1,0,1},
{1,-1,1,0},
}; };
} }
} }