2021-06-06 03:50:56 +00:00
|
|
|
package level
|
|
|
|
|
|
|
|
import (
|
|
|
|
"git.kirsle.net/go/render"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Some choice of palettes.
|
|
|
|
var (
|
|
|
|
DefaultPaletteNames = []string{
|
|
|
|
"Default",
|
|
|
|
"Colored Pencil",
|
|
|
|
"Blueprint",
|
2022-05-04 04:15:39 +00:00
|
|
|
"Neon Bright",
|
2021-06-06 03:50:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
DefaultPalettes = map[string]*Palette{
|
2021-06-20 17:42:51 +00:00
|
|
|
"Default": {
|
2021-06-06 03:50:56 +00:00
|
|
|
Swatches: []*Swatch{
|
2021-06-20 17:42:51 +00:00
|
|
|
{
|
|
|
|
Name: "solid",
|
|
|
|
Color: render.MustHexColor("#777"),
|
|
|
|
Solid: true,
|
|
|
|
Pattern: "noise.png",
|
2021-06-06 03:50:56 +00:00
|
|
|
},
|
2021-06-20 17:42:51 +00:00
|
|
|
{
|
|
|
|
Name: "decoration",
|
|
|
|
Color: render.MustHexColor("#CCC"),
|
|
|
|
Pattern: "noise.png",
|
2021-06-06 03:50:56 +00:00
|
|
|
},
|
2021-06-20 17:42:51 +00:00
|
|
|
{
|
|
|
|
Name: "fire",
|
|
|
|
Color: render.Red,
|
|
|
|
Fire: true,
|
|
|
|
Pattern: "marker.png",
|
2021-06-06 03:50:56 +00:00
|
|
|
},
|
2021-06-20 17:42:51 +00:00
|
|
|
{
|
|
|
|
Name: "water",
|
|
|
|
Color: render.MustHexColor("#09F"),
|
|
|
|
Water: true,
|
2022-05-06 04:35:32 +00:00
|
|
|
Pattern: "bubbles.png",
|
2021-06-06 03:50:56 +00:00
|
|
|
},
|
2022-10-10 18:17:11 +00:00
|
|
|
{
|
|
|
|
Name: "semisolid",
|
|
|
|
Color: render.MustHexColor("#AAA"),
|
|
|
|
SemiSolid: true,
|
|
|
|
Pattern: "ink.png",
|
|
|
|
},
|
2021-08-16 03:17:53 +00:00
|
|
|
{
|
|
|
|
Name: "hint",
|
|
|
|
Color: render.MustHexColor("#F0F"),
|
|
|
|
Pattern: "marker.png",
|
|
|
|
},
|
2021-06-06 03:50:56 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
|
2021-06-20 17:42:51 +00:00
|
|
|
"Colored Pencil": {
|
2021-06-06 03:50:56 +00:00
|
|
|
Swatches: []*Swatch{
|
2021-08-16 03:17:53 +00:00
|
|
|
{
|
|
|
|
Name: "darkstone",
|
|
|
|
Color: render.MustHexColor("#777"),
|
|
|
|
Pattern: "noise.png",
|
|
|
|
Solid: true,
|
|
|
|
},
|
2021-06-20 17:42:51 +00:00
|
|
|
{
|
|
|
|
Name: "grass",
|
|
|
|
Color: render.DarkGreen,
|
|
|
|
Solid: true,
|
|
|
|
Pattern: "noise.png",
|
2021-06-06 03:50:56 +00:00
|
|
|
},
|
2021-06-20 17:42:51 +00:00
|
|
|
{
|
|
|
|
Name: "dirt",
|
|
|
|
Color: render.MustHexColor("#960"),
|
|
|
|
Solid: true,
|
|
|
|
Pattern: "noise.png",
|
2021-06-06 03:50:56 +00:00
|
|
|
},
|
2021-06-20 17:42:51 +00:00
|
|
|
{
|
|
|
|
Name: "stone",
|
|
|
|
Color: render.Grey,
|
|
|
|
Solid: true,
|
|
|
|
Pattern: "noise.png",
|
2021-06-06 03:50:56 +00:00
|
|
|
},
|
2021-07-19 03:04:24 +00:00
|
|
|
{
|
|
|
|
Name: "sandstone",
|
|
|
|
Color: render.RGBA(215, 114, 44, 255),
|
|
|
|
Solid: true,
|
|
|
|
Pattern: "perlin-noise.png",
|
|
|
|
},
|
2022-10-10 18:17:11 +00:00
|
|
|
{
|
|
|
|
Name: "planks",
|
|
|
|
Color: render.MustHexColor("#B80"),
|
|
|
|
SemiSolid: true,
|
|
|
|
Pattern: "marker.png",
|
|
|
|
},
|
2021-06-20 17:42:51 +00:00
|
|
|
{
|
|
|
|
Name: "fire",
|
|
|
|
Color: render.Red,
|
|
|
|
Fire: true,
|
|
|
|
Pattern: "marker.png",
|
2021-06-06 03:50:56 +00:00
|
|
|
},
|
2021-06-20 17:42:51 +00:00
|
|
|
{
|
|
|
|
Name: "water",
|
|
|
|
Color: render.RGBA(0, 153, 255, 255),
|
|
|
|
Water: true,
|
2022-05-06 04:35:32 +00:00
|
|
|
Pattern: "bubbles.png",
|
2021-06-06 03:50:56 +00:00
|
|
|
},
|
2022-10-10 18:17:11 +00:00
|
|
|
{
|
|
|
|
Name: "ice",
|
|
|
|
Color: render.MustHexColor("#099"),
|
|
|
|
Solid: true,
|
|
|
|
Slippery: true,
|
|
|
|
Pattern: "marker.png",
|
|
|
|
},
|
2021-08-16 03:17:53 +00:00
|
|
|
{
|
|
|
|
Name: "hint",
|
|
|
|
Color: render.MustHexColor("#F0F"),
|
|
|
|
Pattern: "marker.png",
|
|
|
|
},
|
2021-06-06 03:50:56 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
|
2022-05-04 04:15:39 +00:00
|
|
|
"Neon Bright": {
|
|
|
|
Swatches: []*Swatch{
|
|
|
|
{
|
|
|
|
Name: "ground",
|
|
|
|
Color: render.MustHexColor("#FFE"),
|
|
|
|
Solid: true,
|
|
|
|
Pattern: "noise.png",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "grass green",
|
|
|
|
Color: render.Green,
|
|
|
|
Solid: true,
|
|
|
|
Pattern: "noise.png",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "fire",
|
|
|
|
Color: render.MustHexColor("#F90"),
|
|
|
|
Pattern: "marker.png",
|
|
|
|
},
|
|
|
|
{
|
2022-10-10 18:17:11 +00:00
|
|
|
Name: "electricity",
|
|
|
|
Color: render.Yellow,
|
|
|
|
SemiSolid: true,
|
|
|
|
Pattern: "perlin.png",
|
2022-05-04 04:15:39 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "water",
|
|
|
|
Color: render.MustHexColor("#09F"),
|
2022-05-06 04:35:32 +00:00
|
|
|
Pattern: "bubbles.png",
|
2022-05-04 04:15:39 +00:00
|
|
|
},
|
2022-10-10 18:17:11 +00:00
|
|
|
{
|
|
|
|
Name: "ice blue",
|
|
|
|
Color: render.MustHexColor("#0FF"),
|
|
|
|
Solid: true,
|
|
|
|
Slippery: true,
|
|
|
|
Pattern: "marker.png",
|
|
|
|
},
|
2022-05-04 04:15:39 +00:00
|
|
|
{
|
|
|
|
Name: "hint",
|
|
|
|
Color: render.Magenta,
|
|
|
|
Pattern: "marker.png",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
2021-06-20 17:42:51 +00:00
|
|
|
"Blueprint": {
|
2021-06-06 03:50:56 +00:00
|
|
|
Swatches: []*Swatch{
|
2021-06-20 17:42:51 +00:00
|
|
|
{
|
|
|
|
Name: "solid",
|
|
|
|
Color: render.RGBA(254, 254, 254, 255),
|
|
|
|
Solid: true,
|
|
|
|
Pattern: "noise.png",
|
2021-06-06 03:50:56 +00:00
|
|
|
},
|
2021-06-20 17:42:51 +00:00
|
|
|
{
|
|
|
|
Name: "decoration",
|
|
|
|
Color: render.Grey,
|
|
|
|
Pattern: "noise.png",
|
2021-06-06 03:50:56 +00:00
|
|
|
},
|
2021-06-20 17:42:51 +00:00
|
|
|
{
|
|
|
|
Name: "fire",
|
|
|
|
Color: render.RGBA(255, 80, 0, 255),
|
|
|
|
Fire: true,
|
2022-10-10 18:17:11 +00:00
|
|
|
Pattern: "bubbles.png",
|
2021-06-06 03:50:56 +00:00
|
|
|
},
|
2021-06-20 17:42:51 +00:00
|
|
|
{
|
|
|
|
Name: "water",
|
|
|
|
Color: render.RGBA(0, 153, 255, 255),
|
|
|
|
Water: true,
|
2022-05-06 04:35:32 +00:00
|
|
|
Pattern: "bubbles.png",
|
2021-06-06 03:50:56 +00:00
|
|
|
},
|
2021-06-20 17:42:51 +00:00
|
|
|
{
|
2022-10-10 18:17:11 +00:00
|
|
|
Name: "ice",
|
|
|
|
Color: render.MustHexColor("#FAF"),
|
|
|
|
Solid: true,
|
|
|
|
Slippery: true,
|
|
|
|
Pattern: "marker.png",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "electric",
|
|
|
|
Color: render.RGBA(255, 255, 0, 255),
|
|
|
|
SemiSolid: true,
|
|
|
|
Pattern: "marker.png",
|
2021-06-06 03:50:56 +00:00
|
|
|
},
|
2021-08-16 03:17:53 +00:00
|
|
|
{
|
|
|
|
Name: "hint",
|
|
|
|
Color: render.MustHexColor("#F0F"),
|
|
|
|
Pattern: "marker.png",
|
|
|
|
},
|
2021-06-06 03:50:56 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
2021-06-20 17:42:51 +00:00
|
|
|
)
|