Things You'll Need:
- Visual Studio C++ Express, 2003 or 2005
- PopCaps game development framework
- DirectX SDK
- An idea for a game
-
Step 1
Download and extract PopCap's game development framework from http://developer.popcap.com
-
Step 2
Create a new empty Win32 project
-
Step 3
Add the PopCap Framework project to your solution.
Do this by going to File -> Add... -> Existing Project...
Navigate to your PopCap Framework directory and load the project under: source/sexyappframework/SexyAppBase.vcproj -
Step 4
Add dependency libraries: winmm.lib and wsock32.lib
- Right-click your project and select Properties.
- Change the Configuration to "All Configurations"
- Under Linker -> Input -> Additional Dependencies add:
winmm.lib wsock32.lib
- Don't close the dialog. You'll use it in the next step. -
Step 5
Add the PopCap's SexyAppFramework source directory to your include path.
- Under C++ -> General -> Additional Include Directories add the path to your PopCap Framework source directory. -
Step 6
Add the DirectX include and lib directories to your development environment. The framework needs to be able to find this.
- Select Tools -> Options...
- Go to Projects and Solutions -> VC++ Directories
- Add the path to your DirectX include directory in the Include files section
- Add the path to your DirectX lib directory in the -
Step 7
And now some code. Add a Main.cpp file to your project. Include the SexyAppBase.h header and create a standard WinMain function. Everything should build. Your ready to start coding!










Comments
Tricky said
on 11/22/2006 @mutantemc - I checked out your screenshot. The Visual Studio linker cannot find SexyAppFramework.lib to link it into your executable.
You can either 1) Add the SexyAppFramework project to your solution. (check out Step 3) or 2) Add the path to the location of SexyAppFramework.lib to your project's Linker -> General -> Additional Library Directories path.
mutantemc said
on 11/14/2006 Thanks Chris for the article, I follow all your steps but when I run the project I get many of this:
[b]error LNK2019: unresolved external symbol[/b]
To solve it:
* Right click on the solution -> Property -> Common Properties -> Project Dependencies.
* On the project combobox I choose the project with errors.
* I select the checkbok of "SexyAppBase"
Screenshot:
http://www.webdriver.com.ar/shared/popcap/VSNET.JPG
Mike
tommyboy2k said
on 9/29/2006 This is a great overview. PopCap makes some of the best casual games out there so leveraging their framework and years of game development expereince seems like a great starting point.