Showing posts with label turbo c. Show all posts
Showing posts with label turbo c. Show all posts

Wednesday, 18 March 2015

How To Create a Computer Graphics Game

Here is  a simple example of Computer Graphics game in Turbo c / Dosbox.

Go through the Following coding or download the complete coding by clicking Download.


Here are Some Snap Shots of the Game:




CODE:


# include "process.h"
# include "dos.h"
# include "stdlib.h"
# include "graphics.h"
# include "stdio.h"

How to create Moving Bar in Turbo c

Creating moving bar in tubro c is very easy just go through the following code:

You can download the Complete file by clicking Download
Place the downloaded file in C:\TC\BGI

Download


#include<stdio.h>
#include<graphics.h>
#include<conio.h>


void main()
{
int l,i=250,j=400,x=0,y=-1,ch,gd=DETECT,gm;
initgraph(&gd,&gm,"c:\\TC\\BGI");
while(100)

Bouncing ball in turbo c



This program is build by using Turbo c(Dos Box) .Graphic mode are present in BGI folder of TC .Code Sample are given below you can download it by clicking the download button.Place the downloaded file in C:\TC\BGI

Android Studio Project Structure

Android Project Structure In this blog i have explained Android project structure and file organization in detail, by creating a new An...