This page hosted by Get your own Free Home Page

Legacy Page

by BenJay

"There is something to be said for web sites under construction... and it has to be said, because it's certainly unprintable!"


Don't worry - I'm constantly updating this page. If you come back later, it will contain more info. But for now, enjoy the downloads.


Table of Contents
  1. Introduction
  2. Sprites
  3. Main source
  4. Level Creater
  5. Download it!

Introduction

Welcome!!! Legacy is a game that I wrote under the Borland Turbo C++ compiler when I was in 10th grade. Since then, I've learned alot. I hope its source code will teach you and you will enjoy the game itself. Some of the source files I used are not included here - I'm sorry, but they are under copyright and the way I understand it, I can distribute the .exe file as freeware, but not the source. Most of the important code is still here, and I think its worth looking at. Some simple instructions on how to play the game - the left and right arrows move, up jumps, down ducks, and enter stabs.


Sprites

Sprites are what the actual little figures in my program are. There are actually three sprites: the monster, the sword, and the knight. The sprites are all class sprite and which is defined in the file sprite.c and sprite.h. The sprites are pretty self explanatory if you look at the code - if you want to base any of your own games off of the file sprite.c, feel free - but please email me to tell me about it.


The main source file

The main source file contains the movement, attack, and other algorithms. The monsters are not intelligent, except for the ghost. The ghost only moves toward the knight while the knight is looking the other way. This is acomplished via a global variable.


The level creater

I created a level creater to allow new levels to be built. I've included a few, but you should still make some of your own.

The commands for the level creater are:


Download

Here are the .exe files for the level creater and the game, and also the source. If you download one of the source files, I would advise downloading them all so that you can see how the functions work together.


If you download legacy or find the source code helpful, or have questions about it,e-mail me at benjay@geocities.com
Back to BenJay Homepage