v0.4: Acid system rework + Iron material + heat conductivity

- Acid now uses acid_resist + health-based damage (not instant delete)
- Acid dissolve speeds: Wood ~2s, Dirt ~2.8s, Stone ~4.3s, Iron immune
- New material: Iron (ID 16) - silver, static, acid-proof, heat-conductive
- Iron texture: bright highlights for metallic shine
- Iron reflects light (light_block: 150)
- Iron heat_conduct: 200 - conducts heat quickly through entire block
- Improved heat transfer formula (divisor 255→200)
- Updated AGENTS.md status
- No player code (rolled back for fresh start)
This commit is contained in:
2026-07-10 10:06:34 +02:00
parent 2c23216152
commit 26d5733e1e
6 changed files with 55 additions and 23 deletions
+3
View File
@@ -27,6 +27,7 @@ export const M = {
ACID: 13,
SPARK: 14,
SMOKE: 15,
IRON: 16,
} as const;
export const MATERIAL_NAMES: Record<number, string> = {
@@ -46,6 +47,7 @@ export const MATERIAL_NAMES: Record<number, string> = {
13: "Acid",
14: "Spark",
15: "Smoke",
16: "Iron",
};
export const MATERIAL_COLORS: Record<number, string> = {
@@ -65,6 +67,7 @@ export const MATERIAL_COLORS: Record<number, string> = {
13: "#64ff3c",
14: "#ffb428",
15: "#a09b96",
16: "#a0a0aa",
};
export interface Engine {
+1 -1
View File
@@ -6,7 +6,7 @@ import { Camera } from "./camera";
const GRID_WIDTH = 4096;
const GRID_HEIGHT = 3072;
const PAINT_MATERIALS = [M.SAND, M.WATER, M.LAVA, M.WOOD, M.FIRE, M.ICE, M.OIL, M.ACID, M.STONE, M.DIRT, M.GLASS];
const PAINT_MATERIALS = [M.SAND, M.WATER, M.LAVA, M.WOOD, M.FIRE, M.ICE, M.OIL, M.ACID, M.IRON, M.STONE, M.DIRT, M.GLASS];
async function main() {
const canvas = document.getElementById("canvas") as HTMLCanvasElement;