(*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
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
Replies To: C++ and video game &
#2
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
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
#3
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.
#4
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?
#5
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
Mod Edit:
Added in code tags to your post. When posting code please use code tags like below.
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.
#6
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.
JohnnyGuitar, 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;
}
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;
}
WushuMonster, 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.
JohnnyGuitar, 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;
}
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;
}
#7
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?
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote





|