How To Make: Screen Killer (Game)

This is a discussion on How To Make: Screen Killer (Game) within the C++ Programming forums, part of the General Programming Boards category; I started this thread in the C++ section, because any help would be more relevant in the context of C++. ...

  1. #1
    Registered User BillBoeBaggins's Avatar
    Join Date
    Oct 2003
    Posts
    107

    How To Make: Screen Killer (Game)

    I started this thread in the C++ section, because any help would be more relevant in the context of C++.
    (Keep in mind I am only moderately comfortable in GDI Api calls and that is what I will be using despite your opinions positively or negatively)

    The Idea (and yes I realize there is nothing new about it and its been done, but nonetheless)
    A Game that when started captures your screen, then opens a window with a smaller version of your screen. You are a shotgun on the screen, you can move your gun wherever you want in the confines of the window and fire the gun which will dispense a round from the ejection port (or whatever you call it) and then a black hole with a bunch of little holes will appear on the screen where you fired.

    The Build
    Program Load
    Captures screen as bitmap in memory
    Main window loaded
    Screen capture drawn to reduced size on main window(unsure how to do this yet)
    Draw the initial image of the shotgun on the center of the main window.
    When the shotgun moves, redraw screen capture, then redraw shotgun in new xy position.
    When shotgun fires draw blast image over screen capture relevant to the shotguns xy.
    When shotgun fires display gun recoil, draw a timed series of images showing gun in various stage of recoil (is this how it should be done?)

    Basically I am looking help on the items I put notes in (), and ideas on how people would do it. Remember I am using GDI, not DirectX or OpenGL.


    Thanks thanks thanks!!!

    I have this submitted on another forum that has a few answers on it as well. I thought I would post it here for more diverse answers and because this is a C/C++ based site.
    http://www.vbforums.com/showthread.p...hreadid=267948

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,650
    Let me summerize BillBoe's post:
    1. How do I reduce the size of a bitmap in memory?
    2. How do I animate a small series of bitmaps in the window?
    1. StretchDIBits()
    2. Sprites


    gg

  3. #3
    Registered User BillBoeBaggins's Avatar
    Join Date
    Oct 2003
    Posts
    107
    While not necessarily insightful, I did however get your point and did more searching in the forums, but I pretty much got what I needed with the exception of my animation done.

    If you are interested at all.... keep in mind I have only been doing graphics programming for a bout 3 days now.

    But critiques are most welcome, both visual and code wise.
    http://www.geocities.com/yassinator/screenkill/sk.html

  4. #4
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,650
    The guys in the game programming forum will be able to help with sprite animation techniques.

    gg

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. craps game & dice game..
    By cgurl05 in forum C Programming
    Replies: 3
    Last Post: 03-25-2006, 06:58 PM
  2. beach bar (sims type game)
    By DrKillPatient in forum Game Programming
    Replies: 1
    Last Post: 03-06-2006, 12:32 PM
  3. PC Game project requires c++ programmers
    By drallstars in forum Projects and Job Recruitment
    Replies: 2
    Last Post: 02-21-2006, 11:23 PM
  4. Trying to make a simple yazee game...
    By Dauthi in forum C++ Programming
    Replies: 5
    Last Post: 01-14-2003, 02:26 PM
  5. My game... where to get textres/how to make them?
    By elfjuice in forum Game Programming
    Replies: 5
    Last Post: 06-23-2002, 03:56 PM

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