Thread: My first Win32 game! Please check it out!

  1. #1
    Programming is fun, mkay?
    Join Date
    Oct 2001
    Posts
    490

    Talking My first Win32 game! Please check it out!

    This is my first attempt at making a Win32 game(Wall, almost). Anyhow, it is Pong. Called Win32Pong(Simple!). I built an auto-win/-lose cheat into it. Press:

    SHIFT + C

    then CTRL + W to win and CTRL + L to lose. LoL! Lemm know what you think if you try it out! Thanks!
    Website(s): http://www16.brinkster.com/trifaze/

    E-mail: [email protected]

    ---------------------------------
    C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
    DirectX Version: 9.0b
    DX SDK: DirectX 8.1 SDK

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    First off, well done! Now the buts...

    1. The background colour is overdrawn by the COLOR_BTNFACE (see GetSystemColor) when the 'ball' redraws itself.

    2. When the wnd is minimised the game keeps playing and produces a massive cascade of messageboxes; if you use the MB_APPLMODAL or MB_TASKMODAL (can't remember which) in the last parameter of the MessageBox call this should prevent further execution until the user dismisses the messagebox.

    3. Sometimes the 'ball' passes through the 'paddle'.

    Also this might end up getting moved to the Game Programming forum.

    But good on you anyway.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  3. #3
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,227
    Nice, but for one thing it's slow as all bejeesus, the paddles have almost no effect on the game, and if you click on the scores listbox, you lose focus from the game and get it back (ie, can no longer play)

  4. #4
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    LOL..that's cool....

    If you havent already done so, perhaps you could control the ball movements and repainting in a seperate thread?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Game Engine Link Prob
    By swgh in forum Game Programming
    Replies: 2
    Last Post: 01-26-2006, 12:14 AM
  2. Game Independent Anti-cheat Project Needs Programmers
    By GIA Project Lea in forum Projects and Job Recruitment
    Replies: 3
    Last Post: 09-15-2005, 07:41 PM
  3. MFC Hangman Game ... Check this out, please :-D
    By SyntaxBubble in forum Windows Programming
    Replies: 3
    Last Post: 09-21-2003, 05:31 PM
  4. Check out this game I wrote
    By Eber Kain in forum Game Programming
    Replies: 4
    Last Post: 09-16-2003, 09:54 PM
  5. check out this game
    By confuted in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 07-15-2003, 01:28 PM