Neue Engine Features

Top  Previous  Next

Verbesserter Map-Compiler

 

Der Map-Compiler hat zwei neue Optionen hinzubekommen:

- Die Möglichkeit, einen Minimal-Smooth-Winkel zu setzen.

- Ein Kästchen zum An- oder Abschalten der Tesselation.

 

aum89_beta1

 

 

file_date (STRING* name)

 

Liefert die Zeit (in Sekunden) seit dem letzten Ändern einer Datei zurück. Geszählt wird ab dem 1. Januar 1970.

 

STRING* compare_str = "#50";

 

TEXT* compare_txt =

{

       pos_x = 200;

       pos_y = 200;

       string(compare_str);

       flags = SHOW;

}

 

int compare_dates(STRING* file1, STRING* file2)

{

       if (!file1 || !file2) return 0; // at least one of the files is missing? Then get out of here!

       long date_file1 = file_date(file1);

       long date_file2 = file_date(file2);

       if (date_file1 == date_file2) // the date for file1 is equal to the date for file2?

               return 0;

       if (date_file1 > date_file2) // the date for file1 is older than the date for file2?

               return 1;

       if (date_file1 < date_file2) // the date for file1 is newer than the date for file2?

               return 2;

}

 

function init_startup()

{

       wait (-3); // wait 3 seconds

       int compare_result = compare_dates("fire.bmp", "sprite.bmp"); // put these files in your game folder

       switch (compare_result)

       {

               case 0:

                       str_cpy(compare_str, "The files have identical dates");

               break;

               case 1:

                       str_cpy(compare_str, "The first file is newer!");

               break;

               case 2:

                       str_cpy(compare_str, "The second file is newer!");

               break;

               default:   

                       str_cpy(compare_str, "Something weird has happened!");

       }

}

 

 

Verbesserter GED

 

Es steht eine neue Version des In-Game-Editoren zur Verfügung.

 

aum89_beta2