BlueGit

timfa questward

Add Void block: impassable, clear light and LoS.

16×16 solid black sprite for editor/world placement without occluding vision or lighting.

timfa Tim Falken · pushed by timfa

Authored 2026-09-11 · 2 months ago

Hash
8530888f9b23fbb0bdd3309e9e2b96d02be3a06d
Parent
e4966838
2 files changed +17 −1
client/assets/blocks/void/void.png added Binary file +0 −0

The contents of this binary file are not shown.

shared/definitions/tiles.js +17 −1
@@ -96,7 +96,9 @@ export const BlockType = Object.freeze({
96 96 cliff: 45,
97 97 cliffThin: 46,
98 98 /** Wooden door — state `${wood}-${n|s}-${open|closed}`; tall magenta-tint sprite. */
99 door: 47
99 door: 47,
100 /** Solid black tile: blocks movement, not light or ranged LoS. */
101 void: 48
100 102 });
101 103
102 104 export const GROUND_DEFINITIONS = Object.freeze({
@@ -810,6 +812,20 @@ export const BLOCK_DEFINITIONS = Object.freeze({
810 812 requiresClippers: true,
811 813 skillId: "herbalism"
812 814 })
815 }),
816 [BlockType.void]: Object.freeze({
817 id: BlockType.void,
818 key: "void",
819 displayName: "Void",
820 passable: false,
821 /** Movement blocker only — light and ranged LoS pass through. */
822 blocksLight: false,
823 blocksRangedAttacks: false,
824 lightRangeTiles: 0,
825 frames: 1,
826 framesPerRow: 1,
827 animationSpeed: 0,
828 outdoor: false
813 829 })
814 830 });
815 831
@@ -96,7 +96,9 @@ export const BlockType = Object.freeze({
96 cliff: 45,
96 cliff: 45,
97 cliffThin: 46,
97 cliffThin: 46,
98 /** Wooden door — state `${wood}-${n|s}-${open|closed}`; tall magenta-tint sprite. */
98 /** Wooden door — state `${wood}-${n|s}-${open|closed}`; tall magenta-tint sprite. */
99 door: 47
99 door: 47,
100 /** Solid black tile: blocks movement, not light or ranged LoS. */
101 void: 48
100});
102});
101
103
102export const GROUND_DEFINITIONS = Object.freeze({
104export const GROUND_DEFINITIONS = Object.freeze({
@@ -810,6 +812,20 @@ export const BLOCK_DEFINITIONS = Object.freeze({
810 requiresClippers: true,
812 requiresClippers: true,
811 skillId: "herbalism"
813 skillId: "herbalism"
812 })
814 })
815 }),
816 [BlockType.void]: Object.freeze({
817 id: BlockType.void,
818 key: "void",
819 displayName: "Void",
820 passable: false,
821 /** Movement blocker only — light and ranged LoS pass through. */
822 blocksLight: false,
823 blocksRangedAttacks: false,
824 lightRangeTiles: 0,
825 frames: 1,
826 framesPerRow: 1,
827 animationSpeed: 0,
828 outdoor: false
813 })
829 })
814});
830});
815
831