Thread: 2 questions

  1. #1
    Registered User Octorok101's Avatar
    Join Date
    May 2002
    Posts
    22

    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. #2
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912

    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.

  3. #3
    Registered User VBprogrammer's Avatar
    Join Date
    Mar 2002
    Posts
    175
    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
    VC++ 6

  4. #4
    Registered User Octorok101's Avatar
    Join Date
    May 2002
    Posts
    22
    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

  5. #5
    Registered User VBprogrammer's Avatar
    Join Date
    Mar 2002
    Posts
    175
    Forgot to post it earlier, here it is.
    VC++ 6

  6. #6
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >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
    My best code is written with the delete key.

  7. #7
    Registered User
    Join Date
    Jun 2002
    Posts
    106
    www.programmersheaven.com has alot of code which are distrubuted freely (c,c++,VB,bal bla bla) that shoud solve your second question

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. questions....so many questions about random numbers....
    By face_master in forum C++ Programming
    Replies: 2
    Last Post: 07-30-2009, 08:47 AM
  2. A very long list of questions... maybe to long...
    By Ravens'sWrath in forum C Programming
    Replies: 16
    Last Post: 05-16-2007, 05:36 AM
  3. Several Questions, main one is about protected memory
    By Tron 9000 in forum C Programming
    Replies: 3
    Last Post: 06-02-2005, 07:42 AM
  4. Trivial questions - what to do?
    By Aerie in forum A Brief History of Cprogramming.com
    Replies: 23
    Last Post: 12-26-2004, 09:44 AM
  5. questions questions questions.....
    By mfc2themax in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 08-14-2001, 07:22 AM