This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function seconds_to_gamespeed(_seconds) { | |
| return game_get_speed(gamespeed_fps) * _seconds; | |
| } | |
| /** | |
| * new Timer(_bind, _callback) | |
| * @param _bind scope of the callback, usually the | |
| * @param _callback function to be executed | |
| * | |
| * Methods |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #macro ENCRIPTION_KEY "your-encryption-key" | |
| function xorcrypt_buffer(_buff) { | |
| var _key = ENCRIPTION_KEY; | |
| var _key_len = string_byte_length(_key); | |
| var _size = buffer_get_size(_buff); | |
| // Iterate through the buffer and XOR every byte | |
| for (var i = 0; i < _size; i++) { | |
| var _byte = buffer_peek(_buff, i, buffer_u8); |
OlderNewer