wall render 3
This commit is contained in:
parent
c42c0eba90
commit
4ae81aa454
BIN
Render.class
BIN
Render.class
Binary file not shown.
@ -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){
|
||||||
|
|||||||
BIN
game.class
BIN
game.class
Binary file not shown.
@ -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},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user