Total Overscript

Total Overscript is a simple one level RPG game showing many aspects of SC. Its code is simplified and the program should be treated as a demo not a real game. Look into the code - it is strongly commented, main concepts are introduced below. The game uses WinApi and GDI so should work on most PC.

Your hero (you can fully configure him - though, from a script only) has some parameters like: health, armor, strength, intelligence, agility. The game is pretty short, only one map availble. You can fight against enemies, talk to NPC that give you tasks, use various items. During the play you gain experience , and you can earn (or lost) gold.

The purpose of the game is to show some way of using SC in a larger program. You can freely edit scripts, use data provided with that to see how it works. A whole level is loaded from a text file - see it in data/levels directory - it can also be easily edited. In data/img directory there are images used in the program, data/scripts contains all the scripts.

Steering is based on a keybord only, the view is isometric.

Steering:

Structure

Below a description of main classes of the game. More detailed info in the code.

Execution

When the program starts a Game class object is initialized. It initalizes all the systems. Then, there is loaded a level from the file. The level loads tile sets, entity templates and entities. When an entity is loaded, its initialization script is executed (if specified).

Game logic is run with some frequency (frame by frame). First there is called NextFrame method of the game object , next NextFrame of the level and NextFrame of all visible entities. After the logic of single frame is executed the content of the window is redrawn.

SC usage

SC scripts are used at many points of the program. There are listed classes that uses scripts below. The name of the script is the name of the member.

What pay attention to?

There are listed the most important aspect, that you should pay attention to.