Tetris game in C with CodeBlocks

mouniryes1 Posted messages 24 Status Member -  
mouniryes1 Posted messages 24 Status Member -
Hello,

I found the source code for the Tetris game on the internet.
There is a file called "tetris_src.c", a file "graphic.h", and 4 ".gif" files.

Can someone please tell me how to use them with CodeBlocks?

That would be very kind.
Thanks in advance.

Configuration: Windows XP / Firefox 8.0

2 answers

scriptiz Posted messages 1494 Status Member 425
 
Create a new project and import the .h files into the header files, the .cpp files into the source files, and the .gif files into the resources.

If tetris_src.c is the only .c file, it should automatically recognize that it is the one to compile.
1
mouniryes1 Posted messages 24 Status Member 1
 
thank you very much scriptiz
1