Scripts of the Template Game

The template game is built of a number of scripts, each with it's own purpouse. Below is a listing of the scripts along with a short description. Click on them for more information.

Scripts

  • AutoDoor.sc

    Contains an extension of the Door class for simpler doors.

    Controls.sc

    Contains the base menubar class, dialog window class, control classes (button,edit,icon,etc.), as well as the Print methods. These allow you to have a GUI in your game, as well as print messages.

  • Cycle.sc

    Contains classes for views, props, acts and their descendants which handles animation cycling.

  • DCIcon.sc

    Contains an extension of the DIcon class from controls.sc which allows animation.

  • DisposeLoad.sc

    Contains a procedure for disposing/loading resources.

  • Door.sc

    Contains the Door class giving the ability to use doors which ego can use to go from room to room.

  • DPath.sc

    Contains a motion class for actors allowing you to define paths which they will travel.

  • Dying.sc

    Contains a public script instance to handle when the ego dies.

  • Extra.sc

    Contains a class for extras in your game (similar to actors).

  • Feature.sc

    Contains the base class, Feature, as well as it's descendants, View, Prop, Act and more. This is the main script for sprites (VIEWs).

  • Follow.sc

    Contains a motion class to allow actors to follow another actor.

  • Game.sc

    Contains the general game functions, including the game handler class, region/room classes and statusbar class.

  • FileIO.sc

    Contains a File I/O class to simplify the use of files and rid the need to use kernel functions.

  • Gauge.sc

    Contains a dialog window which contains a custom gauge control. This is used for things such as volume control and the game speed adjustment.

  • InitRooms.sc

    Contains a room which initializes the rooms and calls the first room.

  • Inv.sc

    Contains the main classes for your game's inventory, one of the most essential parts of an adventure game.

  • Jump.sc

    Contains a motion class to allows actors to jump.

  • Main.sc

    Contains the game's main instance and inventory items.

  • Menubar.sc

    Contains the customized Menubar class. This is the script you modify if you want to customize the menu.

  • Obj.sc

    The base script for all the classes. This contains many of the important classes, including Obj and Event.

  • Rev.sc

    Contains a cycle class for reverse animation.

  • Rm001.sc

    Contains the first room of your game.

  • Sound.sc

    Contains the sound class, used for all sound/music related needs.

  • SysWindow.sc

    Contains the base class for windows, as well as the Save/Restore dialogs.

  • Timer.sc

    Contains the timer class for setting up your events.

  • TitleScreen.sc

    Contains the title screen room.

  • User.sc

    Contains the classes to handle user input and the main character (ego).

  • Wander.sc

    Contains a movement class to allow actors to randomly wander around the screen

  • Window.sc

    Contains the extension of the SysWindow class.

Headers

  • Game.sh

    Contains all the defines specfic to your game such as room numbers and inventory items.

  • Keys.sh

    Contains all the keyboard key/joystick direction definitions. This is included in SCI.sh

  • SCI.sh

    Contains all general defines for SCI games, including the variable types, kernel function parameters, event types, etc.