Hi everyone ,
i know you were waiting for a long time to see this , and here it is !!!
Pacman V2.0 hbl version is out!!!
I have completly re write my code due to new knowledge (like 2D arrays).
this was a real pleasure to learn something's new.
the size of the file is too big so there will be 3 winrar.(sorry for that)
or you can use this link :
https://mega.nz/#!mxtRWTDQ!jxWUliVh2X9Iy9JK4k4U2GMP_w4jyWp6Ky6z4s7wBk0
Changelog V2.0
-New Menu with a brand new logo
-New system to draw everything (thanks to vgmoose and brienj)
-New system to handle collisions
-i wil work on the speed (since i print a lot of things at the same time the game is slow)
-adding music (thanks to dimok)
-i still don't use sprites , everything is drawn by the draw lib
-i add a cheat code to make you win if you get two food (you will have to search for this one XD)
if you want to build a level for the pacman game :
create a 2D arrays of 31 in height and 28 in width like this:
0= void
1= wall
2= Pacman
3= Shadow
4= Speedy
5= Pokey
6= Baschful
7= Food(pills)
8= TeleportL
9= TeleportR
Put only one 8 and 9 in the same row
unsigned int mylevel[31][28]={
{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},//line 1//
{1,7,7,7,7,7,7,1,1,1,1,7,7,7,7,7,7,7,7,7,7,7,1,1,1,1,7,1},//line 2//
{.......................................................},
{.......................................................},
---------------------------------------------------------
{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1} //line 31//
};
after this give me the color of you wall in a RGB value .
do the same for the food (pills) color.
enjoy and play your level in the next update.
have fun!!!!