diff options
Diffstat (limited to 'media')
-rw-r--r-- | media/edit.sh | 21 | ||||
-rw-r--r-- | media/playfield_pacman.0.txt | 36 | ||||
-rw-r--r-- | media/playfield_pacman.png | bin | 0 -> 13132 bytes | |||
-rw-r--r-- | media/playfield_pacman.txt | 46 | ||||
-rw-r--r-- | media/tiles_all.png | bin | 0 -> 3028 bytes | |||
-rw-r--r-- | media/tiles_all.txt | 8 |
6 files changed, 111 insertions, 0 deletions
diff --git a/media/edit.sh b/media/edit.sh new file mode 100644 index 0000000..9b4939a --- /dev/null +++ b/media/edit.sh @@ -0,0 +1,21 @@ +#! /bin/bash + +# merge +convert pacman-l2.13x13.png pacman-r2.13x13.png pacman-u2.13x13.png pacman-d2.13x13.png +append pacman-l2r2u2d2.13x13.png + +# cut out single images to remove gap +fname=ghost-blinky4.14p2x14.png; for i in 0 1 2 3 ; do let x=${i}*14+${i}*2; convert $fname -crop 14x14+${x}+0 `basename $fname .png`-${i}.png ; done +fname=ghost-clyde4.14p2x14.png; for i in 0 1 2 3 ; do let x=${i}*14+${i}*2; convert $fname -crop 14x14+${x}+0 `basename $fname .png`-${i}.png ; done +fname=ghost-eyes4.14p2x14.png; for i in 0 1 2 3 ; do let x=${i}*14+${i}*2; convert $fname -crop 14x14+${x}+0 `basename $fname .png`-${i}.png ; done +fname=ghost-inky4.14p2x14.png; for i in 0 1 2 3 ; do let x=${i}*14+${i}*2; convert $fname -crop 14x14+${x}+0 `basename $fname .png`-${i}.png ; done +fname=ghost-pinky4.14p2x14.png; for i in 0 1 2 3 ; do let x=${i}*14+${i}*2; convert $fname -crop 14x14+${x}+0 `basename $fname .png`-${i}.png ; done + +# merge single images to gap-less +fname=ghost-blinky4; fnames= ; for i in 0 1 2 3 ; do fnames="${fnames} ${fname}.14p2x14-${i}.png" ; done ; convert $fnames +append ${fname}.14x14.png +fname=ghost-clyde4; fnames= ; for i in 0 1 2 3 ; do fnames="${fnames} ${fname}.14p2x14-${i}.png" ; done ; convert $fnames +append ${fname}.14x14.png +fname=ghost-eyes4; fnames= ; for i in 0 1 2 3 ; do fnames="${fnames} ${fname}.14p2x14-${i}.png" ; done ; convert $fnames +append ${fname}.14x14.png +fname=ghost-inky4; fnames= ; for i in 0 1 2 3 ; do fnames="${fnames} ${fname}.14p2x14-${i}.png" ; done ; convert $fnames +append ${fname}.14x14.png +fname=ghost-pinky4; fnames= ; for i in 0 1 2 3 ; do fnames="${fnames} ${fname}.14p2x14-${i}.png" ; done ; convert $fnames +append ${fname}.14x14.png + +# merge them in one file +convert ghost-blinky4.14x14.png ghost-clyde4.14x14.png ghost-inky4.14x14.png ghost-pinky4.14x14.png ghost-eyes4.14x14.png -append ghosts-bcipe.5x14x14.png diff --git a/media/playfield_pacman.0.txt b/media/playfield_pacman.0.txt new file mode 100644 index 0000000..c7bfe6b --- /dev/null +++ b/media/playfield_pacman.0.txt @@ -0,0 +1,36 @@ +____________________________ +____________________________ +____________________________ +|||||||||||||||||||||||||||| +|............||............| +|.||||.|||||.||.|||||.||||.| +|*|__|.|___|.||.|___|.|__|*| +|.||||.|||||.||.|||||.||||.| +|..........................| +|.||||.||.||||||||.||.||||.| +|.||||.||.||||||||.||.||||.| +|......||....||....||......| +||||||.|||||_||_|||||.|||||| +_____|.|||||_||_|||||.|_____ +_____|.||__________||.|_____ +_____|.||_|||--|||_||.|_____ +||||||.||_|______|_||.|||||| +______.___|______|___.______ +||||||.||_|______|_||.|||||| +_____|.||_||||||||_||.|_____ +_____|.||__________||.|_____ +_____|.||_||||||||_||.|_____ +||||||.||_||||||||_||.|||||| +|............||............| +|.||||.|||||.||.|||||.||||.| +|.||||.|||||.||.|||||.||||.| +|*..||.......__.......||..*| +|||.||.||.||||||||.||.||.||| +|||.||.||.||||||||.||.||.||| +|......||....||....||......| +|.||||||||||.||.||||||||||.| +|.||||||||||.||.||||||||||.| +|..........................| +|||||||||||||||||||||||||||| +____________________________ +____________________________ diff --git a/media/playfield_pacman.png b/media/playfield_pacman.png Binary files differnew file mode 100644 index 0000000..471af7a --- /dev/null +++ b/media/playfield_pacman.png diff --git a/media/playfield_pacman.txt b/media/playfield_pacman.txt new file mode 100644 index 0000000..1fc461f --- /dev/null +++ b/media/playfield_pacman.txt @@ -0,0 +1,46 @@ +28 36 224 288 // dimension tile and visual: [net field dim: 28 x 31] x 8 -> [net visual dim: 224 x 248] + 1 4 // top-left corner + 1 32 // bottom-left corner +26 32 // bottom-right corner +26 4 // top-right corner +14 26 // pacman start position +10 15 8 5 // ghost home box incl. walls and gate [x, y, widht, height] +13 17 // ghost home center position +14 14 // ghost start position +playfield_pacman.png +____________________________ +____________________________ +____________________________ +|||||||||||||||||||||||||||| +|............||............| +|.||||.|||||.||.|||||.||||.| +|*|__|.|___|.||.|___|.|__|*| +|.||||.|||||.||.|||||.||||.| +|..........................| +|.||||.||.||||||||.||.||||.| +|.||||.||.||||||||.||.||||.| +|......||....||....||......| +||||||.|||||_||_|||||.|||||| +_____|.|||||_||_|||||.|_____ +_____|.||__________||.|_____ +_____|.||_|||--|||_||.|_____ +||||||.||_|______|_||.|||||| +______.___|______|___.______ +||||||.||_|______|_||.|||||| +_____|.||_||||||||_||.|_____ +_____|.||__________||.|_____ +_____|.||_||||||||_||.|_____ +||||||.||_||||||||_||.|||||| +|............||............| +|.||||.|||||.||.|||||.||||.| +|.||||.|||||.||.|||||.||||.| +|*..||.......__.......||..*| +|||.||.||.||||||||.||.||.||| +|||.||.||.||||||||.||.||.||| +|......||....||....||......| +|.||||||||||.||.||||||||||.| +|.||||||||||.||.||||||||||.| +|..........................| +|||||||||||||||||||||||||||| +____________________________ +____________________________ diff --git a/media/tiles_all.png b/media/tiles_all.png Binary files differnew file mode 100644 index 0000000..5308bb1 --- /dev/null +++ b/media/tiles_all.png diff --git a/media/tiles_all.txt b/media/tiles_all.txt new file mode 100644 index 0000000..74e051b --- /dev/null +++ b/media/tiles_all.txt @@ -0,0 +1,8 @@ +- line 0: 12x14x14: 10 fruits + ghost_scared_blue + ghost_scared_pink +- line 1: 12x14x14: pacman_dead_anim +- line 2: 8x13x13: pacman_anim 2x left + 2x right + 2x up + 2x down +- line 3: 4x14x14: ghost_anim 4x blinky +- line 4: 4x14x14: ghost_anim 4x clyde +- line 5: 4x14x14: ghost_anim 4x inky +- line 6: 4x14x14: ghost_anim 4x pinky +- line 7: 4x14x14: ghost_anim 4x eyes |