29 Replies - 2087 Views - Last Post: 22 January 2011 - 09:01 AM
#1
advice needed in creating a game in c++
Posted 21 January 2011 - 05:13 AM
Replies To: advice needed in creating a game in c++
#2
Re: advice needed in creating a game in c++
Posted 21 January 2011 - 05:22 AM
What are your assignment requirements?
#3
Re: advice needed in creating a game in c++
Posted 21 January 2011 - 05:36 AM
#4
Re: advice needed in creating a game in c++
Posted 21 January 2011 - 05:44 AM
This post has been edited by stayscrisp: 21 January 2011 - 05:45 AM
#5
Re: advice needed in creating a game in c++
Posted 21 January 2011 - 05:49 AM
This post has been edited by abbie3290: 21 January 2011 - 05:56 AM
#6
Re: advice needed in creating a game in c++
Posted 21 January 2011 - 07:09 AM
stayscrisp, on 21 January 2011 - 05:22 AM, said:
What are your assignment requirements?
I have installed Visual Studio. Can you tell me now what to do??
#7
Re: advice needed in creating a game in c++
Posted 21 January 2011 - 01:34 PM
If you've already set up Visual Studio you should take a look at Lazy Foo's SDL Tutorials (link)
It covers everything you need to get started, including downloading SDL and setting it up with Visual Studio. You'll probably need the first 7-8 tutorials then you can start making your breaker game
#8
Re: advice needed in creating a game in c++
Posted 21 January 2011 - 01:39 PM
This post has been edited by ButchDean: 21 January 2011 - 01:40 PM
#9
Re: advice needed in creating a game in c++
Posted 21 January 2011 - 01:43 PM
ButchDean, on 21 January 2011 - 01:39 PM, said:
Sorry,I could not get you. what do you mean by his sig?
#10
Re: advice needed in creating a game in c++
Posted 21 January 2011 - 01:54 PM
abbie3290, on 21 January 2011 - 08:43 PM, said:
ButchDean, on 21 January 2011 - 01:39 PM, said:
Sorry,I could not get you. what do you mean by his sig?
Yes, Visual Studio is much better than Dev-C++; more up-to-date standards and features wise.
'sig' = 'signature'.
#11
Re: advice needed in creating a game in c++
Posted 21 January 2011 - 02:09 PM
1>------ Build started: Project: testing, Configuration: Debug Win32 ------
1>Compiling...
1>main.cpp
1>c:\users\ab\downloads\compressed\sdl-devel-1.2.14-vc8\sdl-1.2.14\include\sdl_stdinc.h(37) : fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory
1>Build log was saved at "file://c:\Users\ab\Documents\Visual Studio 2008\Projects\testing\testing\Debug\BuildLog.htm"
1>testing - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
#12
Re: advice needed in creating a game in c++
Posted 21 January 2011 - 02:12 PM
#13
Re: advice needed in creating a game in c++
Posted 21 January 2011 - 02:13 PM
#include "SDL.h"
int main( int argc, char* args[] )
{
//Start SDL
SDL_Init( SDL_INIT_EVERYTHING );
//Quit SDL
SDL_Quit();
return 0;
}
#14
Re: advice needed in creating a game in c++
Posted 21 January 2011 - 02:18 PM
#15
Re: advice needed in creating a game in c++
Posted 21 January 2011 - 02:25 PM
"Now take the SDL.dll from the archive (it should be inside the lib subfolder) and extract it. You're going to put this in the same directory as your project/exe when you compile it.
Alternatively, you can copy SDL.dll to C:\WINDOWS\SYSTEM32 so your SDL app will find SDL.dll even if it's not in the same directory. If you're using a 64bit version of Windows, you'll want to put the dll in C:\Windows\SysWOW64.
The problem with this method is if you have multiple SDL apps that use different versions of SDL, you'll have version conflicts. If you have SDL 1.2.8 in SYSTEM32 when the app uses 1.2.13 you're going to run into problems. Generally you want to have your SDL.dll in the same directory as your executable developing and you'll always want to have SDL.dll in the same directory as the exe when distributing your app."
|
|

New Topic/Question
Reply




MultiQuote






|