Skip to content
A top-down game where you move a character with a torch, written in TurboPascal 7.
Pascal
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
screenshots
.gitignore
GPROJT.PAS
LEV0.LEV
LICENSE
README.md

README.md

pascal-torch-game

A top-down game where you move a character with a torch, written in TurboPascal 7.

Reqires TurboPascal 7.0 and MSDOS. Probably works with QuarkBox.

What?

I made this while I was bored in a Computing lesson during my first year of 6th form. Currently you can walk around and illuminate different parts of the level based on your orientation. The approach used is a naive one: A set of rays are drawn out in the torch cone and are then followed. As soon as an inpenetrable object is encountered, the beam stops. Lightness is carved out of darkness. This yields some pretty cool light effects, and even shadows if you'd like to call them that.

If you use DOSBox, it's best to increase the cycles to 52,000 or more.

Screenshots

Screenshot 1

Screenshot 2

Screenshot 3

Controls

  • Q to quit.
  • and to move forwards and backwards.
  • or A and or D to rotate.

License

See LICENSE. I modified the including in files bit because the TurboPascal compiler chokes on long files and I know the current one compiles.

You can’t perform that action at this time.