Work on bouncing debris

This commit is contained in:
2025-08-02 22:14:25 +01:00
parent eeb7c8ac88
commit 5722ca8204
13 changed files with 141 additions and 1090 deletions
+18
View File
@@ -0,0 +1,18 @@
{-# LANGUAGE LambdaCase #-}
module Dodge.Material.Color (materialColor) where
import Dodge.Data.Material
import Color
materialColor :: Material -> Color
materialColor =
withAlpha 0.5 . \case
Wood -> dark yellow
Dirt -> dark $ dark orange
Stone -> greyN 0.5
Glass -> white
Metal -> orange
Crystal -> green
Flesh -> red
Electronics -> greyN 0.2