
hello Ernie,

so here is the old source code for "yet another pacman".

the bad:
i've lost last version of pacman source ( pac047.c ). i've only the
obj for it now ( fucking dos ).
i restarted it from pac046.c and added features that i saw missing.
so i'm not sure this is the same as the released version "YAP".

the good:
- it works now.
- added a makefile ( dos batch were used to compile! )
- added comments ( or converted to english )
- i think you'll have to review all loading routines
  ( moreover there's a bmp loader under mswin )
- isolated external used in library/ and lib/ directory.
  i guess you already heard about the old (but great) xlib ?
  there another lib (extra) for functions i've added for my own use.
- remenber that it has been coded with BC dos -> 16 bits !

files scheme:
game part :
   GAMEOVER.DAT      :gameover logo
   BONUS.DAT         :bonus images in raw format
   GHOSTS.DAT        :ghosts frames in raw format (order is important)
   PACMAN.DAT        :pacman frames in raw format (order is important)
   WALLS.DAT         :walls blocks in raw format (order is important)
   GUMS.DAT          :different gums images in raw format
   LEVELS.DAT        :structured file for the level definition
   PALETTE.DAT       :raw palette of the game

intro part:
    ANARCHY.DAT      :font of the scrolltext
    LOGO.DAT         :logo picture

    INTROPAL.DAT     :main raw palette of the intro
    ANIMPAL.DAT      :raw palette definition of the color animation (tunnel effect)

hiscore part : (palette for this part is set manually)
    HISCORE.DAT      :hiscore! could be re-recreated
    goldy.lbm        :font of this part (added lastly)


file structures :

NO structures except for levels.dat.
they are all raw data.

what i used to do to create them:
all original picture are in data/ directory.
- firstly run xtsrtool (found in data directory)
- run deluxepaint. load the wanted image. alt+'*' gets it into grab000.img
  if i remenber, or also grab000.pal
- second, do a cut of the raw 64000bytes, with cuttool proggy, depending on
  what is needed.
  the source is provided to figure out what it does.
  there another utility cutfile.exe: i simply don't remember how i created it
  & why. maybe a primitive version of cuttool ? maybe not.
- third, rename the file with extension ".dat" and copy it into executable
  directory.

i had wrote two batch to do the job.

you should have a look at filaccess.c. i think i cut each frame picture
with hardcoded w & h for all of sprites images. these dimensions are of
course taken from original picture. what a mess !


i repeat it again: this code makes me ashame now. who cares ?

remember: the source code is not public. thanks!

see you soon.
Nadir.

