diff options
| author | omagdy7 <omar.professional8777@gmail.com> | 2023-05-08 17:59:55 +0300 |
|---|---|---|
| committer | omagdy7 <omar.professional8777@gmail.com> | 2023-05-08 17:59:55 +0300 |
| commit | 9621f880a03337a8a252cf5cd3993d5a1a29969c (patch) | |
| tree | e66bdadaa096dede0b8c8b6428540ab51a69eaac /src/timer.py | |
| parent | 72aeff07de251f66c579405f0aecb0b9c4d4cfac (diff) | |
| download | Macpan-9621f880a03337a8a252cf5cd3993d5a1a29969c.tar.xz Macpan-9621f880a03337a8a252cf5cd3993d5a1a29969c.zip | |
Added frightened mode
Diffstat (limited to 'src/timer.py')
| -rw-r--r-- | src/timer.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/timer.py b/src/timer.py new file mode 100644 index 0000000..769534b --- /dev/null +++ b/src/timer.py @@ -0,0 +1,7 @@ +import pygame + + +class Timer(): + def __init__(self, duration): + self.start = pygame.time.get_ticks() + self.duration = duration |
