Skip to main content

Balloon Shooting game in cpp

Balloon Shooting Game is a simple game using c and cpp features. You can easily learn and is easy to run because this game works in TURBOC compiler.
The main features are included is GRAPHICS and DOS commands.

Basic commands used in this game :
initgraph : initgraph is used to initialising of graphics mode in the program.
                 ex. initgraph(&gm,&gd,"akshay");
here gm uses Graphics detect mode and gd points to graphics features to be used in program ans last is a string it may be any string like c://tc/bin etc..
setbkcolor : sets the current background color.
   for ex. if you want to set background color to blue, you can call setbkcolor(BLUE); or setbkcolor(1);
getimage : saves a bit image of the specified region into memory.
putimage : outputs a bit image onto the screen.
settextstyle : sets the current text characteristics.
   Declaration : settextstyle(int font, int direction, int charsize);
outtextxy : displays a string at the specified location (in graphics mode).
   Declaration : outtextxy(int x, int y, "textstring" );
itoa : converts an integer to a string. It lies on stdlib header library.
   Return Values : On success, point to target string. On error, there is no error.

Follow this link to setup DOSBOX (Ubuntu/Linux).

OUTPUT                click to see the coding of Balloon Shooting Game
               click to see the coding of Balloon Shootin Game

Comments

  1. Send report of project please

    ReplyDelete
  2. I loved this game so much. Thankyou.

    ReplyDelete
  3. plz send the report of this project....!!!

    ReplyDelete

Post a Comment

Popular posts from this blog

Minesweeper Game in C

Minesweeper Game in C language. This game is like a windows minesweeper game and I am giving you all the code for this game. You can easily understand the code if you are not a beginner. For beginners this code will quite hard to understand. Because in this code it contains mouse pointing function, graphics function, and so many other codes which makes it so hard to play and is a mind game. So play and enjoy it.   Click here for code Click for code

Make your own paint application in c and cpp

Paint application using simple turboc complier. Hello friends now make your own paint application or mini project in your simple c and cpp compiler. click to show the code for paint program