My dos pacman blues

This is a discussion on My dos pacman blues within the C Programming forums, part of the General Programming Boards category; I have gotten thus far in my pacman game in dos: 1) The maze rendered 2) The pacman moved in ...

  1. #1
    Registered User
    Join Date
    Nov 2009
    Posts
    43

    Unhappy My dos pacman blues

    I have gotten thus far in my pacman game in dos:

    1) The maze rendered
    2) The pacman moved in the maze (along with collision detection with the walls)
    3) Pills swallowed by pacman & score incremented

    For those of you, who read my last thread concerning this, would know that I haven't made much of a significant leap but getting back to "the issues"...

    My maze originally consists of 2's where the pills are, when the pacman moves over a grid with a pill in it, the pill is redrawn in black, however for the score to be correct, I need to set the grid where the pill has been "swallowed" by pacman to 0 - signifying empty space...

    I tried doing the same with a simple line (that has been commented out) in the popPills function (line 503), however, the game runs haywire if that line is included & pretty soon the whole screen turns blue...can't figure out the problem !

    Secondly, I am "spawning" my monster (the first one called korgy) from the structure pacman itself because the entire mechanism is going to be the same for the monster except for the way it moves...however, I can't see the monster figure on the screen

    P.S. This bub runs on turbo c...I don't have any issues with the graphics on my system, but last that I heard from Adak, the graphics don't run as smoothly on other systems, sorry for the inconvenience !
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    Nov 2009
    Posts
    43
    I figured out the second problem i.e., the issue of the monster not being seen : had forgotten the call to grid function (similar to the one used for pacman)...<duh>
    But, the first problem, that of the maze values being reset creating crazy graphics continues...bah !

  3. #3
    Registered User
    Join Date
    Nov 2009
    Posts
    43
    Never mind, figured out the first one as well...this one's got to be the most narcissist thread ever

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling C in Visual Studio 2005
    By emanresu in forum C Programming
    Replies: 3
    Last Post: 11-16-2009, 04:25 AM
  2. File systems?? (Winxp -> DOS)
    By Shadow in forum Tech Board
    Replies: 4
    Last Post: 01-06-2003, 09:08 PM
  3. real mode dos & win dos
    By scott27349 in forum A Brief History of Cprogramming.com
    Replies: 26
    Last Post: 08-19-2002, 07:15 AM
  4. DOS program versus DOS console program
    By scromer in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 01-10-2002, 01:42 PM
  5. Shut off DOS screen automatically to Windows
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 11-08-2001, 07:14 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21