Add Azulian doodad sprites and build script
1
.gitignore
vendored
|
@ -2,6 +2,7 @@ fonts/
|
|||
maps/
|
||||
bin/
|
||||
dist/
|
||||
*.doodad
|
||||
docker/ubuntu
|
||||
docker/debian
|
||||
docker/fedora
|
||||
|
|
5
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:
|
||||
|
|
4
dev-assets/doodads/azulian/azulian.js
Normal file
|
@ -0,0 +1,4 @@
|
|||
function main() {
|
||||
log.Info("Azulian '%s' initialized!", Self.Doodad.Title);
|
||||
Self.ShowLayer(2);
|
||||
}
|
BIN
dev-assets/doodads/azulian/blu-back.png
Normal file
After Width: | Height: | Size: 864 B |
BIN
dev-assets/doodads/azulian/blu-front.png
Normal file
After Width: | Height: | Size: 829 B |
BIN
dev-assets/doodads/azulian/blu-wl1.png
Normal file
After Width: | Height: | Size: 878 B |
BIN
dev-assets/doodads/azulian/blu-wl2.png
Normal file
After Width: | Height: | Size: 910 B |
BIN
dev-assets/doodads/azulian/blu-wl3.png
Normal file
After Width: | Height: | Size: 853 B |
BIN
dev-assets/doodads/azulian/blu-wl4.png
Normal file
After Width: | Height: | Size: 833 B |
BIN
dev-assets/doodads/azulian/blu-wr1.png
Normal file
After Width: | Height: | Size: 820 B |
BIN
dev-assets/doodads/azulian/blu-wr2.png
Normal file
After Width: | Height: | Size: 893 B |
BIN
dev-assets/doodads/azulian/blu-wr3.png
Normal file
After Width: | Height: | Size: 816 B |
BIN
dev-assets/doodads/azulian/blu-wr4.png
Normal file
After Width: | Height: | Size: 844 B |
41
dev-assets/doodads/build.sh
Executable file
|
@ -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
|