Who's Online:

  • [Bot]
Now online:
  • 3 guests
  • 1 robot

DBPRO GAME - FREE SOURCE CODE

 

 

You are able to download the compiled game from the Downloads->DBPro Games Section of this website.

 

Escape! This little action text game pits you in a goblin prison tower where you must try to escape to freedom. On each level of the tower, you must find a key to unlock the exit room door to be able to get to the exit which leads to the next level. 

The tower has no windows so everything is dark. You will have a torch that you can turn on and off. You will be able to find the key with the light of your torch. Be aware though! Goblin guards are everywhere. Even though they like to sleep a lot, if you get somewhat close to them they will sense a presence stirring about and wake up. Goblin guards also carry torches. They will chase you if they see you. If you get out of their line of sight or turn off your torch where they can't see you anymore, they will probably give up and go back to sleep. 

Whats featured in this code is the Line Of Sight code. I was able to port the code from C code over to DBPro code that I got off the internet( the link to the internet C code is give in the code comments ). With it, it gave me a nice LOS effect with what the player can see around him with the torch light and also to be able to see any lit up areas from goblin torches. The game graphics is plain ascii text graphics. Very rogue-like. Feel free to learn from it, add to it or whatever. It's public domain. Enjoy!

 

There are two .dba files here. They are meant to be used togethor in a dbpro project.

This first file, globals.dba,  should be set as the main file in your project.

(Click on them to go to thier source code)

 

  1. globals.dba
  2. main.dba