Snake-2 is a next version of my last snake-1 project. In Snake-2 simple graphics are used you would like. Program Code : #include <graphics.h> #include <stdlib.h> #include <dos.h> #include <conio.h> #include <stdio.h> #include <time.h> check(); end(); win(); int m[500],n[500],con=20,TEMP; clock_t start,stop; void main() { int gd=DETECT,gm,ch,maxx,maxy,x=13,y=14,p,q,spd=100; int a=0,i=0,j,t,temp; initgraph(&gd,&gm,"..\bgi"); setcolor(WHITE); settextstyle(3,0,6); outtextxy(20,2," SNAKE-2 by Akshay "); settextstyle(6,0,2); outtextxy(20,120," Use Arrow Keys To Direct The Snake "); outtextxy(20,140," Avoid The Head Of Snake Not To Hit Any Part Of Snake"); outtextxy(20,160," Pick The Beats Untill You Win The Game "); outtextxy(20,200," Press 'Esc' Anytime To Exit "); outtextxy(20,220," Press Any Key To Continue "); outtextxy(20,300," cprogrammingby...
C Projects and Programming
Hello friends this is Akshay to share some interesting programs and projects with you. If you want any help with your project in C or C++ then feel free to contact me.