-
2 questions
I would really appricate if someone would answer these two questions.
1) How do you disply a bmp. in windos?(the faq link is broken)
2) does any one know of a tutorial that shows how to create a simple 2d maze game?ex: pac-man with no AI, food or little dots
-
2 Answers
1) Go to wotsit.org. They have the file formats of all the major file types used today.
2) Well you just display the maze on screen, and keep track of the location of your character. Have a list of coordinates on the screen where they can not go (i.e. The Maze wall). When they press a key, run a quick, inline function to see if it's possible for them to go there. If it's not, don't let them. If it is, make the appropriate move.
-
Ill post the code of my simple snake game which will show you how to load pictures in Windows using the win API.
Dont know if this page will help but its got a cool VBcontrol that lets you play pacman through there webpage, it might help on the basic theory: http://www.ur.co.nz/urcorp/default.a...ta_article=139
-
I would appricate seeing your snake code. And I need a tutorial for question 2 because it would take me through the steps so I would learn it better. thanks
-
Forgot to post it earlier, here it is.
-
>I would really appricate if someone would answer these two questions.
You obviously didn't bother to look hard since both of these answers can be found on this very web site.
-Prelude
-
www.programmersheaven.com has alot of code which are distrubuted freely (c,c++,VB,bal bla bla) that shoud solve your second question