|
Neue Engine Features |
Top Previous Next |
|
snd_create(STRING* filename)
Erstellt einen Sound zur Laufzeit und verwendet dazu eine existierende Datei oder das eingebaute 440Hz-sine wave.
function siren_startup() { var siren_handle; // create a 440Hz sine wave sound with a duration of 1 second SOUND* sine_wav = snd_create("#1"); siren_handle = snd_play(sine_wav, 60, 0); // now play the sound while (snd_playing(siren_handle)) {wait (1);} // wait until the sound stops snd_tune(siren_handle, 0, 200, 0); // double its frequency siren_handle = snd_play(sine_wav, 60, 0); // play the sound again }
Verbesserter Map-Kompilierer
Der neue Map-Kompilierer enthält Verbesserungen des Beleuchtungs-Algorithmus.
Verbesserte TEXT-Objekte
Das Flag LIGHT funktioniert jetzt auch für TEXT-Objekte und ermöglicht uns so, die Farbe der gebitmappten Fonts zu setzen.
FONT* ethnocentric_font = "ethnocentric18.tga";
TEXT* message_txt = { pos_x = 20; pos_y = 20; red = 200; green = 100; blue = 50; font = ethnocentric_font; string("This text has RGB = 200 100 50"); flags = LIGHT, SHOW; }
|