surgescript(1)

NAME
surgescript - is a scripting language for games. It empowers you to unleash your creativity and build your own amazing interactive content! It's such a joy to use SurgeScript! You will love it!

THE 15-SECOND EXAMPLE
The following script prints a message to the screen:

    // My first application
    object "Application"
    {
        state "main"
        {
            Console.print("Hello, world!");
            Application.exit();
        }
    }

To test this script, save it to "hello.ss" and run:

    surgescript hello.ss

You'll see:

    Hello, world!

FAQ

What is SurgeScript?

SurgeScript is a scripting language for games. It lets you unleash your creativity and build your own amazing interactive content!

How do I learn SurgeScript?

Go to the SurgeScript Crash Course! Also take a look on the video tutorials and on the examples.

Why use SurgeScript?

Unlike other programming languages, SurgeScript has been designed with the specific needs of games in mind. Its features include:

    * The state-machine pattern: objects are state machines.
    * The composition approach: you may design complex objects and behaviors
    by means of composition.
    * The hierarchy system: objects have a parent and may have children,
    in a tree-like structure.
    * The game loop: it's defined implicitly.

Other benefits include:

    * Small footprint, easy to integrate.
    * C-like syntax, including plenty of features.
    * Automatic garbage collection.
    * Easy to extend via Plugins.
    * It's free and open source software.

These features come from the experience of the developer dealing with game engines, applications related to computer graphics and so on. Some of the best practices have been incorporated into the language itself, making things really easy for developers and modders.

AUTHOR
SurgeScript has been created by Alexandre Martins, a computer scientist from Brazil. He has also created the Open Surge game engine, hence the name SurgeScript.

This manual page was written by Carlos Donizete Froes [a.k.a coringao], for the Debian project (but may be used by others).