Thread: How hard would this be?

  1. #16
    Registered User
    Join Date
    Jul 2003
    Posts
    13
    I use DevC++ and Allegro.

    It took me about an hour to figure out how to install Allegro. The trick was not to rush it and read everything in the tutorial (at http://www.allegro.cc/files/install-devcpp.html) VERY CAREFULLY. It wasn't until I read EVERY line that I found out where I was messing up.

    After you get it installed do a search for Allegro tutorials.
    "Whether you think that you can, or that you can't, you are usually right."

  2. #17
    Registered User
    Join Date
    Aug 2003
    Posts
    56
    After installing Allegro, the home page make my ie6 crash... LOL!
    Oh well... had to use DJGPP (bleah DOS!) anyway...

    Is there a specific way to uninstall allegro?


    I just got MSVC6 and within a very short time was able to load a bitmap into a window app...

    Considering it tooks days to use other compilers to do nothing like what I wanted to do. It seems at first glance that MSVC++ is a better product for the novice.

    shouldnt take much longer to figure out how to add mouseclicks that flip through an assortment of bitmaps.

    Apparently there are several ways to do it.

    With a simple MFC 'thing' I can load a dialog app with the bitmap imbedded. And, in glancing through the book I have, while trying to find out how to load a bitmap, I saw how you could also link to images.

    So it would be a matter of preference;
    Right now when I click on my Test.exe a window appears with a 640*480 bitmap embedded in it.

    What I want to do is make it so that a mouse click would cycle though several images.

    Later I would like to imbed one larger scene and define areas of clickability that would show other images.

    It looks like MSVC++ is the most n00b friendly option.

  3. #18
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    >>Right now when I click on my Test.exe a window appears with a 640*480 bitmap embedded in it.

    Look at AjustWindowRect(). This allows you to find the window size needed to fit a specific client rect (display area). MoveWindow() or SetWindowPos() will adjust the size.

    >>What I want to do is make it so that a mouse click would cycle though several images.

    In MFC add a OnLButtonDown() handler. WM_LBUTTONDOWN in WIN32

    Free the last image with DeleteObject()
    Load a new one with LoadImage()

    FindFirstFile() FindNextFile() FindClose() will be helpful to search a folder for images to use.

    Call the code you use to originally draw to screen.

    >>Later I would like to imbed one larger scene and define areas of clickability that would show other images.

    Part of the data returned in the LButton down is the screen coods of the click.
    Define the hot spots (with static controls ect)
    Use GetWindowRect() and PtInRect()
    ClientToScreen() ScreenToClient() may help.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  4. #19
    Registered User
    Join Date
    Aug 2003
    Posts
    56
    Nice!! Thanks!! I'll copy and paste that for later...

    Considering that I only did my first Hello.cpp a couple days ago, it may take a few ticks of time to figure that out.

  5. #20
    Registered User
    Join Date
    Aug 2003
    Posts
    56
    "a few ticks of time"... indeed

    I better rephrase that...

    MSVC++ 6 HAS TOO MANY DAMN BUTTONS!!!

    I could spend days just looking through all the things this thing can do....

    Anyone got suggestions on tutorials that show how to add sound and graphics to MSVC++ Apps?

    oh, that occur when things are clicked...

    push da button,
    push da button

    LOL!

  6. #21
    Unregistered Leeman_s's Avatar
    Join Date
    Oct 2001
    Posts
    753
    For something that simple, I'd use Win32 gdi

  7. #22
    Registered User
    Join Date
    Aug 2003
    Posts
    56
    Iv'e just spent the last few days checking out http://www.Blender3D.org

    The Open source app there is pretty wild, its like Lightwave with a game engine if you get Version 2.25.

    I've spent the last few days Texturing 3d objects to fill up a room and I can 'drive' my sphere around and knock them about. Finding the right buttons to make that ball shoot is a little tricky but not as tricky learning a language...

    This thing is written in Python.... Another day another language eh? But it uses C, so... C++ and Python seem like a great way to go.

    Blender is a renderer, animator, 3d modeler and game engine all rolled into one.

    Funny thing is... you can almost see how the code is being put togethet when configuring a game to interact with a user. It's like the classes and api is graphically interperted and you jast 'string the objects' together... GUI OOP

    Oh well, another 250 Megs of documents to read...

  8. #23
    Registered User LogicError's Avatar
    Join Date
    Aug 2003
    Location
    г. Магнитогорск
    Posts
    76
    You all forgot about SDL, easy to install and easy to use. Tutorial: http://cone3d.gamedev.net

    Enjoy

  9. #24
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    I agree with Leeman_s. Build a skeleton Windows program that displays a window, and you're 90%-95% done already...
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Extracting data from a laptop hard drive
    By DavidP in forum Tech Board
    Replies: 6
    Last Post: 06-13-2009, 07:02 AM
  2. Hard drives - capacity and speed
    By ulillillia in forum Tech Board
    Replies: 5
    Last Post: 06-01-2007, 09:55 AM
  3. Detect SCSI Hard Drive Serial Number
    By mercury529 in forum Windows Programming
    Replies: 3
    Last Post: 10-17-2006, 06:23 PM
  4. Replies: 2
    Last Post: 07-06-2005, 07:11 PM
  5. Trinary Hard Drive
    By nickname_changed in forum Tech Board
    Replies: 14
    Last Post: 05-13-2005, 10:01 AM