Skip to content

Commit

Permalink
Animated doors (fixes #167 )
Browse files Browse the repository at this point in the history
  • Loading branch information
cxong committed Jan 11, 2022
1 parent 191bbd8 commit 2a299c8
Show file tree
Hide file tree
Showing 450 changed files with 738 additions and 206 deletions.
Binary file modified graphics/door/alien/blue_bottom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified graphics/door/alien/blue_h.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified graphics/door/alien/blue_hmid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified graphics/door/alien/blue_left.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified graphics/door/alien/blue_right.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified graphics/door/alien/blue_top.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified graphics/door/alien/blue_v.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified graphics/door/alien/blue_vmid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified graphics/door/alien/green_bottom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified graphics/door/alien/green_h.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified graphics/door/alien/green_hmid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified graphics/door/alien/green_left.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified graphics/door/alien/green_right.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified graphics/door/alien/green_top.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified graphics/door/alien/green_v.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified graphics/door/alien/green_vmid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified graphics/door/alien/normal_bottom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified graphics/door/alien/normal_h.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified graphics/door/alien/normal_hmid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified graphics/door/alien/normal_left.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified graphics/door/alien/normal_right.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified graphics/door/alien/normal_top.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified graphics/door/alien/normal_v.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified graphics/door/alien/normal_vmid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified graphics/door/alien/open_h.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified graphics/door/alien/red_bottom.png
Binary file modified graphics/door/alien/red_h.png
Binary file modified graphics/door/alien/red_hmid.png
Binary file modified graphics/door/alien/red_left.png
Binary file modified graphics/door/alien/red_right.png
Binary file modified graphics/door/alien/red_top.png
Binary file modified graphics/door/alien/red_v.png
Binary file modified graphics/door/alien/red_vmid.png
Binary file modified graphics/door/alien/wall.png
Binary file modified graphics/door/alien/yellow_bottom.png
Binary file modified graphics/door/alien/yellow_h.png
Binary file modified graphics/door/alien/yellow_hmid.png
Binary file modified graphics/door/alien/yellow_left.png
Binary file modified graphics/door/alien/yellow_right.png
Binary file modified graphics/door/alien/yellow_top.png
Binary file modified graphics/door/alien/yellow_v.png
Binary file modified graphics/door/alien/yellow_vmid.png
Binary file modified graphics/door/alien2/blue_bottom.png
Binary file modified graphics/door/alien2/blue_h.png
Binary file modified graphics/door/alien2/blue_hmid.png
Binary file modified graphics/door/alien2/blue_left.png
Binary file modified graphics/door/alien2/blue_right.png
Binary file modified graphics/door/alien2/blue_top.png
Binary file modified graphics/door/alien2/blue_v.png
Binary file modified graphics/door/alien2/blue_vmid.png
Binary file modified graphics/door/alien2/green_bottom.png
Binary file modified graphics/door/alien2/green_h.png
Binary file modified graphics/door/alien2/green_hmid.png
Binary file modified graphics/door/alien2/green_left.png
Binary file modified graphics/door/alien2/green_right.png
Binary file modified graphics/door/alien2/green_top.png
Binary file modified graphics/door/alien2/green_v.png
Binary file modified graphics/door/alien2/green_vmid.png
Binary file modified graphics/door/alien2/normal_bottom.png
Binary file modified graphics/door/alien2/normal_h.png
Binary file modified graphics/door/alien2/normal_hmid.png
Binary file modified graphics/door/alien2/normal_left.png
Binary file modified graphics/door/alien2/normal_right.png
Binary file modified graphics/door/alien2/normal_top.png
Binary file modified graphics/door/alien2/normal_v.png
Binary file modified graphics/door/alien2/red_bottom.png
Binary file modified graphics/door/alien2/red_h.png
Binary file modified graphics/door/alien2/red_hmid.png
Binary file modified graphics/door/alien2/red_left.png
Binary file modified graphics/door/alien2/red_right.png
Binary file modified graphics/door/alien2/red_top.png
Binary file modified graphics/door/alien2/red_v.png
Binary file modified graphics/door/alien2/red_vmid.png
Binary file modified graphics/door/alien2/yellow_bottom.png
Binary file modified graphics/door/alien2/yellow_h.png
Binary file modified graphics/door/alien2/yellow_hmid.png
Binary file modified graphics/door/alien2/yellow_left.png
Binary file modified graphics/door/alien2/yellow_right.png
Binary file modified graphics/door/alien2/yellow_top.png
Binary file modified graphics/door/alien2/yellow_v.png
Binary file modified graphics/door/alien2/yellow_vmid.png
Binary file modified graphics/door/blast/blue_bottom.png
Binary file modified graphics/door/blast/blue_h.png
Binary file modified graphics/door/blast/blue_hmid.png
Binary file modified graphics/door/blast/blue_left.png
Binary file modified graphics/door/blast/blue_right.png
Binary file modified graphics/door/blast/blue_top.png
Binary file modified graphics/door/blast/blue_v.png
Binary file modified graphics/door/blast/blue_vmid.png
Binary file modified graphics/door/blast/green_bottom.png
Binary file modified graphics/door/blast/green_h.png
Binary file modified graphics/door/blast/green_hmid.png
Binary file modified graphics/door/blast/green_left.png
Binary file modified graphics/door/blast/green_right.png
Binary file modified graphics/door/blast/green_top.png
Binary file modified graphics/door/blast/green_v.png
Binary file modified graphics/door/blast/green_vmid.png
Binary file modified graphics/door/blast/normal_bottom.png
Binary file modified graphics/door/blast/normal_h.png
Binary file modified graphics/door/blast/normal_hmid.png
Binary file modified graphics/door/blast/normal_left.png
Binary file modified graphics/door/blast/normal_right.png
Binary file modified graphics/door/blast/normal_top.png
Binary file modified graphics/door/blast/normal_v.png
Binary file modified graphics/door/blast/normal_vmid.png
Binary file modified graphics/door/blast/open_h.png
Binary file modified graphics/door/blast/red_bottom.png
Binary file modified graphics/door/blast/red_h.png
Binary file modified graphics/door/blast/red_hmid.png
Binary file modified graphics/door/blast/red_left.png
Binary file modified graphics/door/blast/red_right.png
Binary file modified graphics/door/blast/red_top.png
Binary file modified graphics/door/blast/red_v.png
Binary file modified graphics/door/blast/red_vmid.png
Binary file modified graphics/door/blast/wall.png
Binary file modified graphics/door/blast/yellow_bottom.png
Binary file modified graphics/door/blast/yellow_h.png
Binary file modified graphics/door/blast/yellow_hmid.png
Binary file modified graphics/door/blast/yellow_left.png
Binary file modified graphics/door/blast/yellow_right.png
Binary file modified graphics/door/blast/yellow_top.png
Binary file modified graphics/door/blast/yellow_v.png
Binary file modified graphics/door/blast/yellow_vmid.png
Binary file modified graphics/door/doom/blue_bottom.png
Binary file modified graphics/door/doom/blue_h.png
Binary file modified graphics/door/doom/blue_hmid.png
Binary file modified graphics/door/doom/blue_left.png
Binary file modified graphics/door/doom/blue_right.png
Binary file modified graphics/door/doom/blue_top.png
Binary file modified graphics/door/doom/blue_v.png
Binary file modified graphics/door/doom/blue_vmid.png
Binary file modified graphics/door/doom/green_bottom.png
Binary file modified graphics/door/doom/green_h.png
Binary file modified graphics/door/doom/green_hmid.png
Binary file modified graphics/door/doom/green_left.png
Binary file modified graphics/door/doom/green_right.png
Binary file modified graphics/door/doom/green_top.png
Binary file modified graphics/door/doom/green_v.png
Binary file modified graphics/door/doom/green_vmid.png
Binary file modified graphics/door/doom/normal_bottom.png
Binary file modified graphics/door/doom/normal_h.png
Binary file modified graphics/door/doom/normal_hmid.png
Binary file modified graphics/door/doom/normal_left.png
Binary file modified graphics/door/doom/normal_right.png
Binary file modified graphics/door/doom/normal_top.png
Binary file modified graphics/door/doom/normal_v.png
Binary file modified graphics/door/doom/normal_vmid.png
Binary file modified graphics/door/doom/red_bottom.png
Binary file modified graphics/door/doom/red_h.png
Binary file modified graphics/door/doom/red_hmid.png
Binary file modified graphics/door/doom/red_left.png
Binary file modified graphics/door/doom/red_right.png
Binary file modified graphics/door/doom/red_top.png
Binary file modified graphics/door/doom/red_v.png
Binary file modified graphics/door/doom/red_vmid.png
Binary file modified graphics/door/doom/yellow_bottom.png
Binary file modified graphics/door/doom/yellow_h.png
Binary file modified graphics/door/doom/yellow_hmid.png
Binary file modified graphics/door/doom/yellow_left.png
Binary file modified graphics/door/doom/yellow_right.png
Binary file modified graphics/door/doom/yellow_top.png
Binary file modified graphics/door/doom/yellow_v.png
Binary file modified graphics/door/doom/yellow_vmid.png
Binary file modified graphics/door/dungeon/blue_bottom.png
Binary file modified graphics/door/dungeon/blue_h.png
Binary file modified graphics/door/dungeon/blue_hmid.png
Binary file modified graphics/door/dungeon/blue_left.png
Binary file modified graphics/door/dungeon/blue_right.png
Binary file modified graphics/door/dungeon/blue_top.png
Binary file modified graphics/door/dungeon/blue_v.png
Binary file modified graphics/door/dungeon/blue_vmid.png
Binary file modified graphics/door/dungeon/green_bottom.png
Binary file modified graphics/door/dungeon/green_h.png
Binary file modified graphics/door/dungeon/green_hmid.png
Binary file modified graphics/door/dungeon/green_left.png
Binary file modified graphics/door/dungeon/green_right.png
Binary file modified graphics/door/dungeon/green_top.png
Binary file modified graphics/door/dungeon/green_v.png
Binary file modified graphics/door/dungeon/green_vmid.png
Binary file modified graphics/door/dungeon/normal_bottom.png
Binary file modified graphics/door/dungeon/normal_h.png
Binary file modified graphics/door/dungeon/normal_hmid.png
Binary file modified graphics/door/dungeon/normal_left.png
Binary file modified graphics/door/dungeon/normal_right.png
Binary file modified graphics/door/dungeon/normal_top.png
Binary file modified graphics/door/dungeon/normal_v.png
Binary file modified graphics/door/dungeon/normal_vmid.png
Binary file modified graphics/door/dungeon/red_bottom.png
Binary file modified graphics/door/dungeon/red_h.png
Binary file modified graphics/door/dungeon/red_hmid.png
Binary file modified graphics/door/dungeon/red_left.png
Binary file modified graphics/door/dungeon/red_right.png
Binary file modified graphics/door/dungeon/red_top.png
Binary file modified graphics/door/dungeon/red_v.png
Binary file modified graphics/door/dungeon/red_vmid.png
Binary file modified graphics/door/dungeon/wall.png
Binary file modified graphics/door/dungeon/yellow_bottom.png
Binary file modified graphics/door/dungeon/yellow_h.png
Binary file modified graphics/door/dungeon/yellow_hmid.png
Binary file modified graphics/door/dungeon/yellow_left.png
Binary file modified graphics/door/dungeon/yellow_right.png
Binary file modified graphics/door/dungeon/yellow_top.png
Binary file modified graphics/door/dungeon/yellow_v.png
Binary file modified graphics/door/dungeon/yellow_vmid.png
Binary file modified graphics/door/dungeon2/blue_bottom.png
Binary file modified graphics/door/dungeon2/blue_h.png
Binary file modified graphics/door/dungeon2/blue_hmid.png
Binary file modified graphics/door/dungeon2/blue_left.png
Binary file modified graphics/door/dungeon2/blue_right.png
Binary file modified graphics/door/dungeon2/blue_top.png
Binary file modified graphics/door/dungeon2/blue_v.png
Binary file modified graphics/door/dungeon2/blue_vmid.png
Binary file modified graphics/door/dungeon2/green_bottom.png
Binary file modified graphics/door/dungeon2/green_h.png
Binary file modified graphics/door/dungeon2/green_hmid.png
Binary file modified graphics/door/dungeon2/green_left.png
Binary file modified graphics/door/dungeon2/green_right.png
Binary file modified graphics/door/dungeon2/green_top.png
Binary file modified graphics/door/dungeon2/green_v.png
Binary file modified graphics/door/dungeon2/green_vmid.png
Binary file modified graphics/door/dungeon2/normal_bottom.png
Binary file modified graphics/door/dungeon2/normal_h.png
Binary file modified graphics/door/dungeon2/normal_hmid.png
Binary file modified graphics/door/dungeon2/normal_left.png
Binary file modified graphics/door/dungeon2/normal_right.png
Binary file modified graphics/door/dungeon2/normal_top.png
Binary file modified graphics/door/dungeon2/normal_v.png
Binary file modified graphics/door/dungeon2/normal_vmid.png
Binary file modified graphics/door/dungeon2/open_h.png
Binary file modified graphics/door/dungeon2/open_v.png
Binary file modified graphics/door/dungeon2/red_bottom.png
Binary file modified graphics/door/dungeon2/red_h.png
Binary file modified graphics/door/dungeon2/red_hmid.png
Binary file modified graphics/door/dungeon2/red_left.png
Binary file modified graphics/door/dungeon2/red_right.png
Binary file modified graphics/door/dungeon2/red_top.png
Binary file modified graphics/door/dungeon2/red_v.png
Binary file modified graphics/door/dungeon2/red_vmid.png
Binary file modified graphics/door/dungeon2/wall.png
Binary file modified graphics/door/dungeon2/yellow_bottom.png
Binary file modified graphics/door/dungeon2/yellow_h.png
Binary file modified graphics/door/dungeon2/yellow_hmid.png
Binary file modified graphics/door/dungeon2/yellow_left.png
Binary file modified graphics/door/dungeon2/yellow_right.png
Binary file modified graphics/door/dungeon2/yellow_top.png
Binary file modified graphics/door/dungeon2/yellow_v.png
Binary file modified graphics/door/dungeon2/yellow_vmid.png
15 changes: 5 additions & 10 deletions graphics/door/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,22 @@ if [ "$#" -ne 1 ]; then
fi

# Copy simple sprites
# TODO: generate open
for s in open_h open_v wall; do
cp $1/base/${s}.png $1/${s}.png
done

# Generate door bases
# normal_h = open_h + h + left + right
convert "$1/base/open_h.png" -background none -gravity South -extent 16x21 \
"$1/base/h.png" -geometry +0+0 -composite \
# normal_h = h + left + right
convert "$1/base/h.png" -background none -gravity South -extent 16x21 \
"$1/base/left.png" -geometry +0+0 -composite \
"$1/base/right.png" -geometry +0+0 -composite \
"PNG24:$1/normal_h.png"
convert "$1/base/open_h.png" -background none -gravity South -extent 16x21 \
"$1/base/h.png" -geometry +0+0 -composite \
convert "$1/base/h.png" -background none -gravity South -extent 16x21 \
"$1/base/left.png" -geometry +0+0 -composite \
"PNG24:$1/normal_left.png"
convert "$1/base/open_h.png" -background none -gravity South -extent 16x21 \
"$1/base/h.png" -geometry +0+0 -composite \
convert "$1/base/h.png" -background none -gravity South -extent 16x21 \
"PNG24:$1/normal_hmid.png"
convert "$1/base/open_h.png" -background none -gravity South -extent 16x21 \
"$1/base/h.png" -geometry +0+0 -composite \
convert "$1/base/h.png" -background none -gravity South -extent 16x21 \
"$1/base/right.png" -geometry +0+0 -composite \
"PNG24:$1/normal_right.png"
# normal_v = v + top + bottom
Expand Down
Binary file modified graphics/door/office/blue_bottom.png
Binary file modified graphics/door/office/blue_h.png
Binary file modified graphics/door/office/blue_hmid.png
Binary file modified graphics/door/office/blue_left.png
Binary file modified graphics/door/office/blue_right.png
Binary file modified graphics/door/office/blue_top.png
Binary file modified graphics/door/office/blue_v.png
Binary file modified graphics/door/office/blue_vmid.png
Binary file modified graphics/door/office/green_bottom.png
Binary file modified graphics/door/office/green_h.png
Binary file modified graphics/door/office/green_hmid.png
Binary file modified graphics/door/office/green_left.png
Binary file modified graphics/door/office/green_right.png
Binary file modified graphics/door/office/green_top.png
Binary file modified graphics/door/office/green_v.png
Binary file modified graphics/door/office/green_vmid.png
Binary file modified graphics/door/office/normal_bottom.png
Binary file modified graphics/door/office/normal_h.png
Binary file modified graphics/door/office/normal_hmid.png
Binary file modified graphics/door/office/normal_left.png
Binary file modified graphics/door/office/normal_right.png
Binary file modified graphics/door/office/normal_top.png
Binary file modified graphics/door/office/normal_v.png
Binary file modified graphics/door/office/normal_vmid.png
Binary file modified graphics/door/office/open_h.png
Binary file modified graphics/door/office/open_v.png
Binary file modified graphics/door/office/red_bottom.png
Binary file modified graphics/door/office/red_h.png
Binary file modified graphics/door/office/red_hmid.png
Binary file modified graphics/door/office/red_left.png
Binary file modified graphics/door/office/red_right.png
Binary file modified graphics/door/office/red_top.png
Binary file modified graphics/door/office/red_v.png
Binary file modified graphics/door/office/red_vmid.png
Binary file modified graphics/door/office/wall.png
Binary file modified graphics/door/office/yellow_bottom.png
Binary file modified graphics/door/office/yellow_h.png
Binary file modified graphics/door/office/yellow_hmid.png
Binary file modified graphics/door/office/yellow_left.png
Binary file modified graphics/door/office/yellow_right.png
Binary file modified graphics/door/office/yellow_top.png
Binary file modified graphics/door/office/yellow_v.png
Binary file modified graphics/door/office/yellow_vmid.png
Binary file modified graphics/door/office2/base/h.png
Binary file modified graphics/door/office2/base/left.png
Binary file modified graphics/door/office2/base/right.png
Binary file modified graphics/door/office2/blue_bottom.png
Binary file modified graphics/door/office2/blue_h.png
Binary file modified graphics/door/office2/blue_hmid.png
Binary file modified graphics/door/office2/blue_left.png
Binary file modified graphics/door/office2/blue_right.png
Binary file modified graphics/door/office2/blue_top.png
Loading

0 comments on commit 2a299c8

Please sign in to comment.