added super fruit (closes #8)
This commit is contained in:
parent
2a9418c9c4
commit
bf06218815
5 changed files with 64 additions and 17 deletions
16
Makefile
16
Makefile
|
@ -1,10 +1,12 @@
|
|||
.PHONY: all clean
|
||||
|
||||
FIRE_ANIM = $(foreach angle, $(shell seq 0 6 359), build/fire$(angle).png)
|
||||
PEACH_DECAY_ANIM = $(foreach percent, $(shell seq 100 -1 0), build/peach-decay$(percent).png)
|
||||
PEACH_RAINBOW_ANIM = $(foreach percent, $(shell seq 100 2 299), build/peach-rainbow$(percent).png)
|
||||
|
||||
IMAGES = $(foreach name, apple wall, public/assets/$(name)32.png)
|
||||
TILESETS = $(foreach name, hole, public/assets/$(name)-ts.png)
|
||||
ANIMATIONS = $(foreach name, fire, public/assets/$(name)-anim.png)
|
||||
ANIMATIONS = $(foreach name, fire peach-decay peach-rainbow, public/assets/$(name)-anim.png)
|
||||
JSON = $(foreach name, snake levelList config metaConfig, public/assets/$(name).json)
|
||||
ICON = public/assets/icon32.png public/assets/icon256.png public/favicon.ico
|
||||
CSS = public/css/snek.css
|
||||
|
@ -44,6 +46,18 @@ public/assets/fire-anim.png: $(FIRE_ANIM)
|
|||
build/fire%.png: assets/fire.png
|
||||
convert $^ -distort ScaleRotateTranslate $(shell echo $@ | sed 's/[^0-9]*//g') -resize 32x $@
|
||||
|
||||
public/assets/peach-decay-anim.png: $(PEACH_DECAY_ANIM)
|
||||
convert $^ -append $@
|
||||
|
||||
build/peach-decay%.png: assets/peach.png
|
||||
convert $^ -modulate 100,$(shell echo $@ | sed 's/[^0-9]*//g') -resize 32x $@
|
||||
|
||||
public/assets/peach-rainbow-anim.png: $(PEACH_RAINBOW_ANIM)
|
||||
convert $^ -append $@
|
||||
|
||||
build/peach-rainbow%.png: assets/peach.png
|
||||
convert $^ -modulate 100,100,$(shell echo $@ | sed 's/[^0-9]*//g') -resize 32x $@
|
||||
|
||||
public/assets/%.json: assets/%.json
|
||||
cp $^ $@
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue