-
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.
-
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.
-
>>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.
-
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.
-
"a few ticks of time"... indeed :rolleyes:
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!
-
For something that simple, I'd use Win32 gdi
-
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... :eek:
-
You all forgot about SDL, easy to install and easy to use. Tutorial: http://cone3d.gamedev.net
Enjoy :D
-
I agree with Leeman_s. Build a skeleton Windows program that displays a window, and you're 90%-95% done already...