The Software development <<Book of Magic>>

Home > Grimoire The GDK > Principles


Latest update : 17 February 2022.

This section of the documentation covers the basics that are necessary in order to code with the Grimoire Game Development Framework.

Articles in this section

  • G-GDK / Common Statements

    12 February 2022, by AmiDARK

    Assignment statements
    You have already used an assignment statement, and it is probably the most commonly used part of any programming language :
    SetInteger A,42
    SetFloat F,<"3.1415927">
    SetString MyText,<"Here is a simple string">
    For next statements
    You may recall the use of the FOR NEXT statement in earlier examples. The FOR NEXT commands are used to create a finite loop in which a variable is incremented or decremented from a value to a value.
    The BasicFOR commands can be (...)

  • G-GDK / User defined functions/procedures

    12 February 2022, by AmiDARK

    User defined functions Grimoire allow you to create your own Procedure. It’s a priceless feature of the Grimoire GDF. You cannot write effective code without using procedures.
    Procedure are blocks of commands that usually perform a recursive or isolated task that is frequently used by your program. Variables defined and used within the function are isolated from the rest of the program. If you use a variable name of MYVAR in your procedure, it will not affect another variable called MYVAR (...)

  • G-GDK / Data Types, Variables

    12 February 2022, by AmiDARK

    Data Types There are many types of data you can use, including integer numbers, floating numbers and string. Each type of data holds a slightly different type of value.
    Integer Numbers An integer number can hold a whole number, but no fraction. For the value to be negative, you must place a minus symbol (-) before the value. Examples of integer numbers: 20 50189 -1254 -9
    Floating Numbers A floating number can hold a whole number or a fractional number that uses a decimal point. For (...)

SPIP | | Site Map | Follow site activity RSS 2.0
Graphic design (c) digitalnature under License GPL