From d109d0b62032b1a5b40dc230d8d1b10bd94310e6 Mon Sep 17 00:00:00 2001 From: Brosef Date: Sat, 21 Jun 2025 22:21:30 +0000 Subject: [PATCH] Add Timeouts --- Timeouts.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Timeouts.md diff --git a/Timeouts.md b/Timeouts.md new file mode 100644 index 0000000..3c54e84 --- /dev/null +++ b/Timeouts.md @@ -0,0 +1,14 @@ +# Timeouts + +The timeout function is built into `gameUtils.Game` and is therefor accessible just by calling the following within your game: +```python +self.timeout(timeoutID, delay) +``` + +## To use the events: +```python +# The onEvent function in your Game object +def onEvent(self, event): + if event.type == gameUtils.Timeout: + print(f'Timeout {event.timeoutID} just fired.') +``` \ No newline at end of file