|
Neue Engine Features |
Top Previous Next |
|
Unbegrenzte dynamische Lichter
Die maximal Anzahl von Lichtquellen kann durch die max_lights Variable eingestellt werden (Default ist 100 in der aktuellen Beta). Der Licht-Manager nutzt den ABT-Algorithmus, um festzustellen, welche Objekte in Reichweite welcher Lichter liegen und erstellt eine Liste für jedes Objekt. Eine Entity, ein Block oder ein Terrainteil kann Licht von maximal 8 Lichtquellen gleichzeitig erhalten.
str_cursor
Liefert die aktuelle Cursor Position in einem String, der durch die inkey Funktion editiert wird.
var cursor_pos;
string my_str = " "; // allow up to 10 characters
panel my_pan { pos_x = 0; pos_y = 0; layer = 10; digits (150, 300, 2, *, 1, cursor_pos); flags = visible; }
text my_txt { pos_x = 100; pos_y = 250; layer = 10; string (my_str); flags = visible; }
function edit_text() { if (inkey_active == on) {return;} // don't react if the player presses the "E" key several times my_txt.visible = on; // display the text str_cpy (my_str, ""); // reset the string while (str_cmpi(my_str, "") == 1) // make sure that the player has typed something in { inkey(my_str); // show the cursor -> store the input in my_str wait (1); } }
starter track_cursor() { while (1) { cursor_pos = str_cursor(my_str); wait (1); } }
on_e = edit_text;
Verbesserte Model Shader
Model Shader unterstützen nun mehrere Skins pro Mesh-Untergruppe. Die Zuweisungen werden von der Engine automatisch erkannt.
|