winzip icon

A 2D game engine for C++ and an example : Aero Blasters

Submitted on: 1/4/2015 9:09:00 AM
By: Kamran Sethi (from psc cd)  
Level: Advanced
User Rating: By 10 Users
Compatibility: Borland C++
Views: 9948
     <> <> New Page 1 <>

Aero Blasters is full featured game that shows off the DOS based “Air” engine made in the Borland C++ 3.1 environment. 
The engine is included herein too. This engine is an extension of the DOS C engine “Air Fighters” made on the same platform by me.
This engine is capable of generating a complete air simulation if it is provided with appropiate bitmap imagery.
Some of the capabilities of the engine are as follows

Supports multiple enemy and fire types using sprite inheritance.
Wallpaper scroll algorithms. 

Sprites controlled by frame sequences regulated with counters.
Fast Airplane Homing Missile support using a modified version of the Breshnam’s Algorithm. 

Smooth Keyboard control incorporating DOS interrupt vector table overriding for multi input per frame. 

Fading screen transitions by Palette register manipulation 

Optimized Bitmapped sprite rendering with transparency support and frame counters. 

Optimized mode 13h graphics library. 
Assembly enabled 80386 processor optimizations encapsulated in C++ classes. 

DMA fast data copy system. 
All Advanced low level features transparently encapsulated in C++ classes.
Full documentation.
Smooth scrolling backgrounds using double buffered surfaces.

Engine speed of 60 frames per second depending on the vertical retrace of the client monitor .

Collision detection algorithms based on rectangular surfaces.

Jet Mouse control support in absolute and relative acceleration modes.

Single Threaded.

Easy to use class hierarchy.

This game engine includes a test file that plays a demo application in which the user controls the jet fighter movement using the keyboard cursor keys and the keyboard right Alt-Ctrl keys to fire weapons. 
The demo provides a scrolling screen where help can be found. Unzip the file and open the project using the Borland C++ 3.1 open prj feature.
This code is ideal for all friends who are new to game programming or those who are looking for new ideas.
Please give me some credit when u use or abuse this code :)

Many ppl have told me about a "bios.h" problem.
Guys, it's INSANELY HARD ( impossible for me ) to run this code on any other 'thing' than BORLANDC++ V 3.1 or TURBOC3.0. You can find thse easily, TC3 is only 3MB so get it. This is the IDE of choice in most aacademic institutions !!!!!

Please vote for this project if you liked it using the links below :) + You may ask me for help if you are porting stuff to windows or Direct X. 

I'd like to help ( for free )

winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net

Other 1 submission(s) by this author


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)

Other User Comments

2/19/2017 3:59:11 PMJose

If I do this in a console application on Visual studio, it will run? or how where do I run it?
(If this comment was disrespectful, please report it.)


Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)

To post feedback, first please login.