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.

Latest articles

G-GDK / Common Statements

Saturday 12 February 2022, by AmiDARK // Principles

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 (...) Read more »

G-GDK / User defined functions/procedures

Saturday 12 February 2022, by AmiDARK // Principles

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 (...) Read more »

G-GDK / Data Types, Variables

Saturday 12 February 2022, by AmiDARK // Principles

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 (...) Read more »