advice needed in creating a game in c++

  • (2 Pages)
  • +
  • 1
  • 2

29 Replies - 2687 Views - Last Post: 22 January 2011 - 09:01 AM Rate Topic: -----

#1 abbie3290  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 22
  • Joined: 21-January 11

advice needed in creating a game in c++

Posted 21 January 2011 - 05:13 AM

I have assigned a task to create a game brick breaker like this My link. I am using devcpp IDE with glut, what do I need apart from this. Please give me some advices.
Is This A Good Question/Topic? 0
  • +

Replies To: advice needed in creating a game in c++

#2 stayscrisp  Icon User is offline

  • フカユ
  • member icon

Reputation: 999
  • View blog
  • Posts: 4,175
  • Joined: 14-February 08

Re: advice needed in creating a game in c++

Posted 21 January 2011 - 05:22 AM

Which OS are you using because if you are using Windows then you should use Visual Studio rather than devcpp. Visual studio is a lot easier to use and has more support. You might want to try using SDL instead of GLUT for something like this or possibly even XNA.

What are your assignment requirements?
Was This Post Helpful? 0
  • +
  • -

#3 abbie3290  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 22
  • Joined: 21-January 11

Re: advice needed in creating a game in c++

Posted 21 January 2011 - 05:36 AM

I am using windows because I was getting errors in running glut on ubuntu. I have never used visual studio and I did one simple graphics project in glut. In my assignment I have to create a game similar to link I provided in previous post as "My Link".
Was This Post Helpful? 0
  • +
  • -

#4 stayscrisp  Icon User is offline

  • フカユ
  • member icon

Reputation: 999
  • View blog
  • Posts: 4,175
  • Joined: 14-February 08

Re: advice needed in creating a game in c++

Posted 21 January 2011 - 05:44 AM

What I mean is do you have to use any particular language or libraries?

This post has been edited by stayscrisp: 21 January 2011 - 05:45 AM

Was This Post Helpful? 0
  • +
  • -

#5 abbie3290  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 22
  • Joined: 21-January 11

Re: advice needed in creating a game in c++

Posted 21 January 2011 - 05:49 AM

No there are no restrictions like that. It can be in C++ ,Java or J2ME.

This post has been edited by abbie3290: 21 January 2011 - 05:56 AM

Was This Post Helpful? 0
  • +
  • -

#6 abbie3290  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 22
  • Joined: 21-January 11

Re: advice needed in creating a game in c++

Posted 21 January 2011 - 07:09 AM

View Poststayscrisp, on 21 January 2011 - 05:22 AM, said:

Which OS are you using because if you are using Windows then you should use Visual Studio rather than devcpp. Visual studio is a lot easier to use and has more support. You might want to try using SDL instead of GLUT for something like this or possibly even XNA.

What are your assignment requirements?


I have installed Visual Studio. Can you tell me now what to do??
Was This Post Helpful? 0
  • +
  • -

#7 reaper4334  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 16
  • View blog
  • Posts: 107
  • Joined: 01-November 09

Re: advice needed in creating a game in c++

Posted 21 January 2011 - 01:34 PM

C++ and SDL is one of the easiest combinations for 2D games.
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 :)
Was This Post Helpful? 0
  • +
  • -

#8 anonymous26  Icon User is offline

  • D.I.C Lover

Reputation: 0
  • View blog
  • Posts: 3,638
  • Joined: 26-November 10

Re: advice needed in creating a game in c++

Posted 21 January 2011 - 01:39 PM

Another vote for SDL. Check out stayscrisp tutorials in his sig.

This post has been edited by ButchDean: 21 January 2011 - 01:40 PM

Was This Post Helpful? 0
  • +
  • -

#9 abbie3290  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 22
  • Joined: 21-January 11

Re: advice needed in creating a game in c++

Posted 21 January 2011 - 01:43 PM

i want to know what is the differnce between devcpp and visual studio?? Is visual studio is better than devcpp??

View PostButchDean, on 21 January 2011 - 01:39 PM, said:

Another vote for SDL. Check out stayscrisp tutorials in his sig.

Sorry,I could not get you. what do you mean by his sig?
Was This Post Helpful? 0
  • +
  • -

#10 anonymous26  Icon User is offline

  • D.I.C Lover

Reputation: 0
  • View blog
  • Posts: 3,638
  • Joined: 26-November 10

Re: advice needed in creating a game in c++

Posted 21 January 2011 - 01:54 PM

View Postabbie3290, on 21 January 2011 - 08:43 PM, said:

i want to know what is the differnce between devcpp and visual studio?? Is visual studio is better than devcpp??

View PostButchDean, on 21 January 2011 - 01:39 PM, said:

Another vote for SDL. Check out stayscrisp tutorials in his sig.

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'. :)
Was This Post Helpful? 0
  • +
  • -

#11 abbie3290  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 22
  • Joined: 21-January 11

Re: advice needed in creating a game in c++

Posted 21 January 2011 - 02:09 PM

I am getting error while I am building the sample program given on Lazy Foo's tutorial site.

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 ==========
Was This Post Helpful? 0
  • +
  • -

#12 anonymous26  Icon User is offline

  • D.I.C Lover

Reputation: 0
  • View blog
  • Posts: 3,638
  • Joined: 26-November 10

Re: advice needed in creating a game in c++

Posted 21 January 2011 - 02:12 PM

Can you post your code please?
Was This Post Helpful? 0
  • +
  • -

#13 abbie3290  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 22
  • Joined: 21-January 11

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;    
}

Was This Post Helpful? 0
  • +
  • -

#14 anonymous26  Icon User is offline

  • D.I.C Lover

Reputation: 0
  • View blog
  • Posts: 3,638
  • Joined: 26-November 10

Re: advice needed in creating a game in c++

Posted 21 January 2011 - 02:18 PM

So you're using VC++ 2005? Have you followed these instructions to the letter?
Was This Post Helpful? 0
  • +
  • -

#15 abbie3290  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 22
  • Joined: 21-January 11

Re: advice needed in creating a game in c++

Posted 21 January 2011 - 02:25 PM

I have VC++ 2008 and yeah I have done exactaly the same. But I am confused in one instruction of to put SDL.dll in system32, I did this one and the other instruction is to put in project/exe, I could not understand this one.

"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."
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2