Determine the RLE format for .obj file sprite pixeldata

This commit is contained in:
2018-09-08 02:00:03 +01:00
parent 5cd1a19b86
commit 056976721c
9 changed files with 219 additions and 48 deletions

26
cmd/palette-idx/main.go Normal file
View File

@@ -0,0 +1,26 @@
package main
import (
"fmt"
"os"
"strconv"
"ur.gs/ordoor/internal/data"
)
func main() {
switch os.Args[1] {
case "index", "i":
idx, err := strconv.ParseInt(os.Args[2], 16, 64)
if err != nil {
fmt.Println("Usage: palette-idx i <0-255>")
os.Exit(1)
}
fmt.Printf("Palette[%v]: %#v\n", idx, data.ColorPalette[idx])
case "color", "colour", "c":
fmt.Println("TODO!")
os.Exit(1)
}
}