Skip to content

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

License

Notifications You must be signed in to change notification settings

nvgrw/pascal-torch-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages