Noah Petherbridge
810ba193d9
* New doodad: Electric Trapdoor. It is a horizontal version of the Electric Door. Opens while powered by a button or a switch and closes when it loses power. * The Box doodad will reset to its original location if it receives a power signal from a linked Button or Switch. So for box pushing puzzles you can add a reset button in case the boxes get stuck. * Refactored the Doodad build scripts into many Makefiles for easier iteration (don't need to compile ALL doodads to test one). Updates to the JavaScript API for doodads: * Self.MoveTo(Point) is now available to set the actor's position in world coordinates.
26 lines
959 B
Makefile
26 lines
959 B
Makefile
ALL: build
|
|
|
|
.PHONY: build
|
|
build:
|
|
doodad convert -t "Warp Door" door-1.png door-2.png door-3.png door-4.png warp-door.doodad
|
|
doodad edit-doodad -q --tag color=none warp-door.doodad
|
|
doodad install-script warp-door.js warp-door.doodad
|
|
|
|
doodad convert -t "Warp Door (Blue)" blue-1.png blue-2.png blue-3.png blue-4.png blue-off.png \
|
|
warp-door-blue.doodad
|
|
doodad edit-doodad -q --tag color=blue warp-door-blue.doodad
|
|
doodad install-script warp-door.js warp-door-blue.doodad
|
|
|
|
doodad convert -t "Warp Door (Orange)" orange-off.png orange-1.png orange-2.png orange-3.png orange-4.png \
|
|
warp-door-orange.doodad
|
|
doodad edit-doodad -q --tag color=orange warp-door-orange.doodad
|
|
doodad install-script warp-door.js warp-door-orange.doodad
|
|
|
|
for i in *.doodad; do\
|
|
doodad edit-doodad --tag "category=doors" $${i};\
|
|
done
|
|
for i in warp-door-*.doodad; do\
|
|
doodad edit-doodad --tag "category=doors,gizmos" $${i};\
|
|
done
|
|
|
|
cp *.doodad ../../../assets/doodads/
|