home *** CD-ROM | disk | FTP | other *** search
- /*
- * MPGAME - A test game to demonstrate the MappyAL playback library
- * By Robin Burrows <rburrows@bigfoot.com>
- * Mappy available from:
- * http://www.geocities.com/SiliconValley/Vista/7336/robcstf.htm
- * http://www.rbsite.freeserve.co.uk/robcstf.htm
- *
- * Don't forget to check out Molefest and Alien Epidemic!
- */
-
- #include <stdio.h>
- #include <allegro.h>
- #include "mappyal.h"
-
-
- #define SWIDTH 320
- #define SHEIGHT 240
-
- int playerx = 80; /* X and Y offset of player in pixels */
- int playery = 700; /* from top left of map */
- BITMAP * mapdisplaybuffer; /* Memory bitmap for double buffer */
-
- /* This is an extremely basic collision detection routine, a proper game would
- * need a better one
- */
- int Collision (int x, int y)
- {
- BLKSTR * blkdatapt;
-
- blkdatapt = MapGetBlock (x/mapblockwidth, y/mapblockheight);
-
- if (blkdatapt->tl) return 1; else return 0;
- }
-
- /* This simply removes an object once it's collected */
- void ClearCell (int x, int y)
- {
- MapSetBlock (x/mapblockwidth, y/mapblockheight, 0);
- }
-
- int main (void)
- {
-
- return 0;
- }
- #ifdef END_OF_MAIN
- END_OF_MAIN()
- #endif
-
-