Skip to content

Commit

Permalink
Add dungeon wall textures and stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
rexim committed Jun 23, 2024
1 parent a64c203 commit d97a3ea
Show file tree
Hide file tree
Showing 20 changed files with 17 additions and 18 deletions.
1 change: 1 addition & 0 deletions assets/images/opengameart/CREDITS.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://opengameart.org/content/old-wall-texture-w-normalheight - wezu_tex_cc_by.zip
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
17 changes: 8 additions & 9 deletions index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 8 additions & 9 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,19 +328,18 @@ async function loadImageData(url: string): Promise<HTMLImageElement> {
if (ctx === null) throw new Error("2D context is not supported");
ctx.imageSmoothingEnabled = false;

const tsodinPog = await loadImageData("images/tsodinPog.png").catch(() => Color.purple());
const tsodinFlushed = await loadImageData("images/tsodinFlushed.png").catch(() => Color.purple());
const tsodinZezin = await loadImageData("images/tsodinZezin.png").catch(() => Color.purple());
const tsodinGasm = await loadImageData("images/tsodinGasm.png").catch(() => Color.purple());
const tf = await loadImageData("images/tf.png").catch(() => Color.purple());
const wall1 = await loadImageData("assets/images/opengameart/wezu_tex_cc_by/wall1_color.png").catch(() => Color.purple());
const wall2 = await loadImageData("assets/images/opengameart/wezu_tex_cc_by/wall2_color.png").catch(() => Color.purple());
const wall3 = await loadImageData("assets/images/opengameart/wezu_tex_cc_by/wall3_color.png").catch(() => Color.purple());
const wall4 = await loadImageData("assets/images/opengameart/wezu_tex_cc_by/wall4_color.png").catch(() => Color.purple());

const scene: Scene = [
[null, null, tsodinGasm, Color.red(), null, null, null, null, null],
[null, null, null, tf, null, null, null, null, null],
[null, tsodinZezin, tsodinFlushed, tsodinPog, null, null, null, null, null],
[null, null, wall1, wall1, null, null, null, null, null],
[null, null, null, wall3, null, null, null, null, null],
[null, wall1, wall2, wall1, null, null, null, null, null],
[null, null, null, null, null, null, null, null, null],
[null, null, null, null, null, null, null, null, null],
[null, null, tsodinPog, null, null, null, null, null, null],
[null, null, wall4, null, null, null, null, null, null],
[null, null, null, null, null, null, null, null, null],
];

Expand Down

0 comments on commit d97a3ea

Please sign in to comment.