Content-Type: text/plain crap
       ___  ____________                               __
      /  / |  ______   /              /\              |  \     X
     /  /  |  |    /  /              /  \             |   \
    /  /   |  |   /  /              /    \            |    \
   /  /    |  |  /  /              /  /\  \           |  \  \
  /  /     |  | /  /              /  /  \  \          |  |\  \
 /  /      |  |/  /              /  /____\  \         |  |_\  \
/  /       |     /              /  ________  \        |   _____\
\  \       |  \  \             /  /        \  \       |  |
 \  \      |  |\  \           /  /          \  \      |  |
  \  \     |  | \  \         /  /            \  \     |  |
   \  \    |  |  \  \       /  /              \  \    |  |
    \  \   |  |   \  \     /  /                \  \   |  |
     \  \  |  |    \  \   /  /                  \  \  |  |
      \__\ |__|     \__\ /__/  S O F T (W A R E) \__\ |__|


P R E S E N T S:

Allefant - Sizehack Entry 2000

Titel:  Allefant - Sizehack Entry
Author: Elias Pschernig
Grafix: Top-Down-View 2D
Files:  main.c (containing 10240 bytes countable for sizehack,i.e. all
                spaces and comments don't count)
        allefant.txt (this file)
Desc:   You control the main character, collect things, and kill
        monsters. To spit water, you first must drink. 
Requ:   Software: OS, Compiler, Allegro (liballeg.a,allegro.h,all3932.dll)
        Hardware: 
        Grafix hardware must support the create_video_bitmap
        function of Allegro - due to size reasons there's no check
        if the call fails or not. All grafix are stored in video
        ram.
        640x480, 16 bit grafix mode required
        with accelerated blitting:   better than Pentium 100 
        without accelerated bliting: better than PentiumII 400 

        When there are problems try the non 10kb version, with error
        checking and support for memory bitmaps.
Sound:  Some noises, e.g. when shooting
Music:  No music :(
Build:  Just compile main.c and link with Allegro.   
        e.g. on my system: 
        gcc main.c -lalleg -mwindows -o"Allefant - Sizehack 2000.exe"
Keys:   KEY_ESC     quit   
        KEY_UP      run
        KEY_SPACE   shoot
        KEY_LEFT    turn left
        KEY_RIGHT   turn right  
        KEY_W       player2 run
        KEY_TAB     player2 shoot
        KEY_A       player2 turn left
        KEY_D       player2 turn right            

Story:  There was a big C-Library, and many programmers did like it.
        It was founded by the Master of Allegro, and many of the
        many programmers contributed to it. There was a mailing
        list, where the programmers could post their patches and
        discuss changes and programming topics and other things, and
        where even newbies was allowed to ask newbie questions. In
        all that time, the Great Master organized and watched
        everything, so nothing would go wrong, and the Library grew
        and got better.

        But then, one day, for only a moment, the Great Godly Master
        of the Library wasn't careful, and he left his Library
        unattended. Outside, a hord of bad evil Allegators was just
        waiting for this moment. They broke into the Library, ripped
        all the code they could get, and scattered it all over the
        world. From the once so great library, they did leave back
        nothing usable. There was much pain and mourning and crying.
        All hope was gone. 

        No! There is hope. Little, but there is. In this game, you
        are the last hope to save the world, and put together the
        library again. You take over the part of Allefant, your
        objective is to find all the Allegro Code and bring it back 
        to the Great Library. You start on the Isle of Allegro,
        inside the Library. Run around, and hopefully you will soon
        find the first Source Code. Grab it, and take it back to the
        library. But don't think it will be easy. The evil
        Allegators still are out there - and they won't give back
        the Code of Codes without fight. 

Bugs:  -If you like Allegators more then Allefants, there should be
        an option to play the Allegator and defeat the Allefants
        instead : ) The reason for the allegators is, the circle
        grafix looked like allegators to me, and then i remembered
        the Allegators from the mailing list...and i had the story
        for my game : )
        In the code, you just have to swap 2 lines to exchange the
        grafix...but i don't want to look what lines : )

       -Due to the limited code size in this version, there couldn't
        be much error checking.
       -only one video/color mode allowed
       -some more, please mail them to me
       -many 'features' are implemented on purpose, only to fit it
        in 10kb; if you want the source code you should get the 
        much-bigger-than-10-kb version i'm planning to write
 
Detail: Water
        You can carry water for 100 shots. It takes ca. 2 seconds to
        completely fill up again. If you're sailing out in the sea,
        the water may get to salty for the Allefant to drink. In
        this case, just paddle near the next shore to find some
        drinking water(light blue). When the Allefant is really
        thirsty, it becomes hard to spit. So better look for some
        drinking water soon then.

        Monsters
        Their AI is quite good. They will move towards you, but when
        you charge they might flee - and then come from the back, or
        suddenly turn and attack.
        And there are 1000nds of them... : ) 

        Allegators
        Every Allegator can take ca. 4 hits before it dies. They did
        rip the Holy Code of Codes, so show no mercy.

        Allefish
        Be careful of this sea creatures. 
        
        Allebears
        They like icy regions. And they like yellow meat.

        Source Codes
        To pick up a source code, just run over it. Your mission is
        completed as soon as you restore the complete library.

        Source Compass
        You have a compass that will show to the source code. Yes,
        to all of them - so not that useful when they are scattered
        everywhere.

        Library 
        Here you can place the code pieces you already found.
        You win when the libraray is full.
       
        Yellow Grass
        The Allefant will eat this to restore its health.
 
        Wall
        You can't walk nor shoot through this.

        Empty Space
        It's around the Isles of Allegro. You aren't able to do
        anything to it.

        Ice
        When running over ice, be careful, because you'll have fewer
        grip for your feet. And watch out for Allebears.

        Split Screen
        Just the same, with 2 keyboard inputs, and everything drawn
        twice. I did it in 10mins, and only tested it alone and for
        2 minutes, so it might have lots of bugs/not work at all. 

Source: On the sizehack site you can look at my progress texts. I
        was over the 10KB limit all the time - reduced size again to
        8 or 9, then went over 10KB again, and so on. It's why the
        code looks like it looks now. This is the first game with
        (IMO) ok looking grafix i made, and in all other games i used
        bitmaps : ) It was fun doing a game like this, it reminded
        me of how it was writing programs 10 years ago...
        If i find time, i'll convert it to (yet another) allegro
        tutorial - with good organized code, maybe in objective c or
        if not so good organized in c++...

Note:   Compile and run at your own risk. Doing so will create crap
        on your HD, and may replace all your important data with
        crap.

email:  eliaspschernig@aon.at       

web:    i didn't get it to show up under netscape (at university) so
        i removed it, as it was crap anyway