diff --git a/.gitignore b/.gitignore index 2a3f98c..7734e99 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ fonts/ maps/ bin/ dist/ +*.doodad docker/ubuntu docker/debian docker/fedora diff --git a/Makefile b/Makefile index ffaf01e..1934b0e 100644 --- a/Makefile +++ b/Makefile @@ -27,6 +27,11 @@ build-free: go build $(LDFLAGS) -tags="shareware" -i -o bin/doodle cmd/doodle/main.go go build $(LDFLAGS) -tags="shareware" -i -o bin/doodad cmd/doodad/main.go +# `make doodads` to build the doodads from the dev-assets folder. +.PHONY: doodads +doodads: + cd dev-assets/doodads && ./build.sh + # `make mingw` to cross-compile a Windows binary with mingw. .PHONY: mingw mingw: diff --git a/dev-assets/doodads/azulian/azulian.js b/dev-assets/doodads/azulian/azulian.js new file mode 100644 index 0000000..e208d10 --- /dev/null +++ b/dev-assets/doodads/azulian/azulian.js @@ -0,0 +1,4 @@ +function main() { + log.Info("Azulian '%s' initialized!", Self.Doodad.Title); + Self.ShowLayer(2); +} diff --git a/dev-assets/doodads/azulian/blu-back.png b/dev-assets/doodads/azulian/blu-back.png new file mode 100644 index 0000000..066eaa1 Binary files /dev/null and b/dev-assets/doodads/azulian/blu-back.png differ diff --git a/dev-assets/doodads/azulian/blu-front.png b/dev-assets/doodads/azulian/blu-front.png new file mode 100644 index 0000000..8f22c99 Binary files /dev/null and b/dev-assets/doodads/azulian/blu-front.png differ diff --git a/dev-assets/doodads/azulian/blu-wl1.png b/dev-assets/doodads/azulian/blu-wl1.png new file mode 100644 index 0000000..a97706b Binary files /dev/null and b/dev-assets/doodads/azulian/blu-wl1.png differ diff --git a/dev-assets/doodads/azulian/blu-wl2.png b/dev-assets/doodads/azulian/blu-wl2.png new file mode 100644 index 0000000..aabb1fd Binary files /dev/null and b/dev-assets/doodads/azulian/blu-wl2.png differ diff --git a/dev-assets/doodads/azulian/blu-wl3.png b/dev-assets/doodads/azulian/blu-wl3.png new file mode 100644 index 0000000..428e733 Binary files /dev/null and b/dev-assets/doodads/azulian/blu-wl3.png differ diff --git a/dev-assets/doodads/azulian/blu-wl4.png b/dev-assets/doodads/azulian/blu-wl4.png new file mode 100644 index 0000000..05079b3 Binary files /dev/null and b/dev-assets/doodads/azulian/blu-wl4.png differ diff --git a/dev-assets/doodads/azulian/blu-wr1.png b/dev-assets/doodads/azulian/blu-wr1.png new file mode 100644 index 0000000..f4e1945 Binary files /dev/null and b/dev-assets/doodads/azulian/blu-wr1.png differ diff --git a/dev-assets/doodads/azulian/blu-wr2.png b/dev-assets/doodads/azulian/blu-wr2.png new file mode 100644 index 0000000..3044546 Binary files /dev/null and b/dev-assets/doodads/azulian/blu-wr2.png differ diff --git a/dev-assets/doodads/azulian/blu-wr3.png b/dev-assets/doodads/azulian/blu-wr3.png new file mode 100644 index 0000000..5581c13 Binary files /dev/null and b/dev-assets/doodads/azulian/blu-wr3.png differ diff --git a/dev-assets/doodads/azulian/blu-wr4.png b/dev-assets/doodads/azulian/blu-wr4.png new file mode 100644 index 0000000..4f43114 Binary files /dev/null and b/dev-assets/doodads/azulian/blu-wr4.png differ diff --git a/dev-assets/doodads/build.sh b/dev-assets/doodads/build.sh new file mode 100755 index 0000000..a850ad8 --- /dev/null +++ b/dev-assets/doodads/build.sh @@ -0,0 +1,41 @@ +#!/bin/bash + +# Build all the doodads from their source files. +if [[ ! -d "./azulian" ]]; then + echo Run this script from the dev-assets/doodads/ working directory. + exit 1 +fi + +mkdir -p ../../assets/doodads + +buttons() { + cd buttons/ + + doodad convert -t "Sticky Button" sticky1.png sticky2.png sticky-button.doodad + doodad install-script sticky.js sticky-button.doodad + cp sticky-button.doodad ../../../assets/doodads/ + + doodad convert -t "Button" button1.png button2.png button.doodad + doodad install-script button.js button.doodad + cp button.doodad ../../../assets/doodads/ + + doodad convert -t "Button Type B" typeB1.png typeB2.png button-typeB.doodad + doodad install-script button.js button-typeB.doodad + cp button-typeB.doodad ../../../assets/doodads/ + + cd .. +} + +azulians() { + cd azulian/ + + doodad convert -t "Blue Azulian" blu-front.png blu-back.png \ + blu-wr{1,2,3,4}.png blu-wl{1,2,3,4}.png azu-blu.doodad + doodad install-script azulian.js azu-blu.doodad + cp azu-blu.doodad ../../../assets/doodads/ + + cd .. +} + +buttons +azulians