Skip to content

Commit

Permalink
implemented webgl wall coloring
Browse files Browse the repository at this point in the history
  • Loading branch information
memoryleak47 committed Oct 16, 2020
1 parent 4fa4be6 commit 6cef2cd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions web/site/src/draw/tilemap/mod.js
Expand Up @@ -57,6 +57,12 @@ function updateTexture() {
raw_data.push(50, 50, 10, 255);
} else if (c == "Void") {
raw_data.push(200, 200, 255, 255);
} else if (c.Wall) {
if (c.Wall.owner == 0) {
raw_data.push(0, 0, 40, 255);
} else {
raw_data.push(40, 0, 0, 255);
}
} else {
raw_data.push(0, 0, 0, 255);
console.log("error: unsupported tile type: ", c);
Expand Down

0 comments on commit 6cef2cd

Please sign in to comment.