C++ and video game &

How get help for that

Page 1 of 1

6 Replies - 986 Views - Last Post: 29 March 2010 - 12:20 PM Rate Topic: -----

#1 JohnnyGuitar  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 27-November 09

C++ and video game &

Posted 27 March 2010 - 04:23 PM

(*First, my english is not good, because i speak french at the base, so be gentle)

Hello, I need to make a personnal project for the school, and I want make a game ( a breaking brick game , but for this, I need to get some information but i have nothing usefull. I just want have simple tutoriel, like how make move a object, collision, physic and put flash animation on c++.

thank you

(*Si vous parlez français un peu français, pour plus de compréhension)

Bonjour, je veux faire un casse-brique pour un projet d'école. Le problème c'est que je ne trouve rien d'utile. Donc, je voudrais qu'on me donne des tutoriels traitant du mouvement d'objet, des collisions, ou de la physique ou comment insérer une image et la faire bouger en c++

merci

Is This A Good Question/Topic? 0
  • +

Replies To: C++ and video game &

#2 masoug  Icon User is offline

  • D.I.C Head

Reputation: 22
  • View blog
  • Posts: 179
  • Joined: 30-December 09

Re: C++ and video game &

Posted 27 March 2010 - 04:37 PM

Okay...
Ummm, you really would want to research a little more on how to make games in C++, because this forum is more for answering C++ questions from one's own code, so for a forum like this, this topic is a little too general. Essentially, answer the question "What do you want to do? What is the problem that prevents you from doing it?" and experts here would help.

As for your question, I would recommend Googling how to make a C++ game, and when you're on a roll, come back with questions. :)

-Masoug
Was This Post Helpful? 0
  • +
  • -

#3 JackOfAllTrades  Icon User is online

  • Saucy!
  • member icon

Reputation: 5723
  • View blog
  • Posts: 22,635
  • Joined: 23-August 08

Re: C++ and video game &

Posted 27 March 2010 - 04:39 PM

Let's move this to Game Programming, where you may be able to get better help.
Was This Post Helpful? 0
  • +
  • -

#4 WushuMonster  Icon User is offline

  • D.I.C Head

Reputation: 13
  • View blog
  • Posts: 187
  • Joined: 29-February 08

Re: C++ and video game &

Posted 28 March 2010 - 08:47 AM

Are your restricted to a specific language or technology? Also, how much time do you have to finish your project? And, what's your current level of programming knowledge?
Was This Post Helpful? 0
  • +
  • -

#5 JohnnyGuitar  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 27-November 09

Re: C++ and video game &

Posted 28 March 2010 - 11:52 AM

I want help for graphic librairies, I try with SDL, but at the beginning, that was working and now I have 102 errors for no reasons. Also, if you have a better librairy with more tutorial and more compatible with c++, can you give me her name

here my code

#include <stdlib.h>
#include <stdio.h>
#include "SDL/SDL.h"
#include <string>

int main( int argc, char* args[] )
{
    //Hello cherge et affiche l'image et screen décide de ce qui est visible à l'écran
    SDL_Surface* hello = NULL;
    SDL_Surface* screen = NULL; 
	
	//Initialise tous les sous-system de SDL
    SDL_Init( SDL_INIT_EVERYTHING );

    //Initialise l'écran et sa grosseur
    screen = SDL_SetVideoMode( 640, 480, 32, SDL_SWSURFACE );

    //Load l'image
    hello = SDL_LoadBMP( "hello.bmp" );

	//Mettre l'image sur l'écran
    SDL_BlitSurface( hello, NULL, screen, NULL );

    //Raffraichir l'écran
    SDL_Flip( screen );

    //Pause
    SDL_Delay( 2000 );

	//Free the loaded image
    SDL_FreeSurface( hello );

    //Quitte SDL
    SDL_Quit();

    return 0;
}



Mod Edit:
Added in code tags to your post. When posting code please use code tags like below.
:code:
Was This Post Helpful? 0
  • +
  • -

#6 WushuMonster  Icon User is offline

  • D.I.C Head

Reputation: 13
  • View blog
  • Posts: 187
  • Joined: 29-February 08

Re: C++ and video game &

Posted 28 March 2010 - 08:49 PM

Ive never done anything graphically with C++, but you should put your code in code brackets
 
when posting here, to improve readability. Also, if you post a few of the errors you're getting one of the local C++ maestros might have a quicker time getting you going. Often, I find when I go from things working great to suddenly spitting out a horde of errors, I find I made one or two silly errors like not having something I need in the right folder or a spelling/capitalization mistake on something important.


View PostJohnnyGuitar, on 28 March 2010 - 10:52 AM, said:

I want help for graphic librairies, I try with SDL, but at the beginning, that was working and now I have 102 errors for no reasons. Also, if you have a better librairy with more tutorial and more compatible with c++, can you give me her name

here my code

#include <stdlib.h>
#include <stdio.h>
#include "SDL/SDL.h"
#include <string>

int main( int argc, char* args[] )
{
//Hello cherge et affiche l'image et screen décide de ce qui est visible à l'écran
SDL_Surface* hello = NULL;
SDL_Surface* screen = NULL;

//Initialise tous les sous-system de SDL
SDL_Init( SDL_INIT_EVERYTHING );

//Initialise l'écran et sa grosseur
screen = SDL_SetVideoMode( 640, 480, 32, SDL_SWSURFACE );

//Load l'image
hello = SDL_LoadBMP( "hello.bmp" );

//Mettre l'image sur l'écran
SDL_BlitSurface( hello, NULL, screen, NULL );

//Raffraichir l'écran
SDL_Flip( screen );

//Pause
SDL_Delay( 2000 );

//Free the loaded image
SDL_FreeSurface( hello );

//Quitte SDL
SDL_Quit();

return 0;
}


View PostWushuMonster, on 28 March 2010 - 07:48 PM, said:

Ive never done anything graphically with C++, but you should put your code in code brackets
 
when posting here, to improve readability. Also, if you post a few of the errors you're getting one of the local C++ maestros might have a quicker time getting you going. Often, I find when I go from things working great to suddenly spitting out a horde of errors, I find I made one or two silly errors like not having something I need in the right folder or a spelling/capitalization mistake on something important.


View PostJohnnyGuitar, on 28 March 2010 - 10:52 AM, said:

I want help for graphic librairies, I try with SDL, but at the beginning, that was working and now I have 102 errors for no reasons. Also, if you have a better librairy with more tutorial and more compatible with c++, can you give me her name

here my code

#include <stdlib.h>
#include <stdio.h>
#include "SDL/SDL.h"
#include <string>

int main( int argc, char* args[] )
{
//Hello cherge et affiche l'image et screen décide de ce qui est visible à l'écran
SDL_Surface* hello = NULL;
SDL_Surface* screen = NULL;

//Initialise tous les sous-system de SDL
SDL_Init( SDL_INIT_EVERYTHING );

//Initialise l'écran et sa grosseur
screen = SDL_SetVideoMode( 640, 480, 32, SDL_SWSURFACE );

//Load l'image
hello = SDL_LoadBMP( "hello.bmp" );

//Mettre l'image sur l'écran
SDL_BlitSurface( hello, NULL, screen, NULL );

//Raffraichir l'écran
SDL_Flip( screen );

//Pause
SDL_Delay( 2000 );

//Free the loaded image
SDL_FreeSurface( hello );

//Quitte SDL
SDL_Quit();

return 0;
}

Was This Post Helpful? 0
  • +
  • -

#7 Fib  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 161
  • View blog
  • Posts: 554
  • Joined: 12-March 09

Re: C++ and video game &

Posted 29 March 2010 - 12:20 PM

The style of game that you are trying to create should be fairly simple, and also a great learning experience. Your code so far looks fine to me, can you please show us some of the errors you're getting?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1