- Added new methods for event polling and handling in the Event module, including `pollName` for retrieving message names. - Introduced new graphics functions for clearing the screen and drawing solid rectangles with RGBA support. - Updated the Window module to expose new settings and graphics functionalities. - Refactored the main script to utilize the new graphics and event features, improving the example game structure.
9 lines
158 B
Plaintext
9 lines
158 B
Plaintext
|
|
function basic() {
|
|
local t = eve.Timer();
|
|
if (t.getName() != "Timer") return false;
|
|
t.step();
|
|
local d = t.getDelta();
|
|
return d >= 0.0;
|
|
}
|