Sunday, June 12, 2011

MAKE SIMPLE GAME IN C

0 comments
Hi friends,here we will make a simple Game in C language.Enjoy C programming.Compile below code and Generate EXE file.  Source code of Game: #include <stdio.h>#include <conio.h>#include <dos.h>#include <graphics.h>#include <stdlib.h>#include <time.h> #define PAS 20 struct time t;int keye=250;int coordX=0;int coorde=0;int coordY=0;int coordYe=0;int tmp=0;int tmp2=0;int i; void moveMyshipLeft(void);void moveMyshipRight(void);void moveMyshipUp(void);void moveMyshipDown(void);void desenMyShip(int,int,int); void getConflict(it ...
Continue reading →