• Register

ENIGMA is a free and open source development environment geared towards game development and compiled for maximum speed!

Post news Report RSS New Portable

Updated release with bug fixes including multi-dimensional arrays.

Posted by on

A new ZIP distribution has been released with a load of bug fixes including 3D/4D/nD multi-dimensional arrays of primitive types including int, bool, char, short, double, and float.

This makes all of the following possible.

int d[5][5][5];
d[5][5][5] = 4;
show_message(string(d[5][5][5])); // 4
int e[5][5];
e[5][5] = 4;
show_message(string(d[5][5][5]/e[5][5])); // 1
f[5,5] = 8;
show_message(string(d[5][5][5]/f[5,5])); // 0.5

e[get_integer("",string(f[5,5]))][0] = 5;
e[get_integer("",string(e[5][5]))][0] = 5;
e[get_integer("","")][0] = 5;

Minor fixes for inheritance, activation and missing operators have also been included. The forum post contains additional details.
Enigma-dev.org

Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: