diff options
author | stage7 <stage7@stg7.net> | 2022-09-14 22:51:23 +0200 |
---|---|---|
committer | stage7 <stage7@stg7.net> | 2022-09-14 22:51:23 +0200 |
commit | 88784d316dd8f8eb8dbfe5bea117362a45f72b37 (patch) | |
tree | 8d86229143d6f089b5d2baf3b594521b4a3943d4 /openguilion.py | |
parent | 007bb5ceed714aa3027fdd74784b9a9d6215a330 (diff) | |
download | openguilion-88784d316dd8f8eb8dbfe5bea117362a45f72b37.tar.gz openguilion-88784d316dd8f8eb8dbfe5bea117362a45f72b37.tar.bz2 openguilion-88784d316dd8f8eb8dbfe5bea117362a45f72b37.zip |
Actual initial commit.
Diffstat (limited to 'openguilion.py')
-rw-r--r-- | openguilion.py | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/openguilion.py b/openguilion.py new file mode 100644 index 0000000..05b1fa7 --- /dev/null +++ b/openguilion.py @@ -0,0 +1,47 @@ +from openguilion.openguilionCommon import * +from openguilion.intruderAlert import * +from openguilion.caseResolution import * +from openguilion.phase01To17 import * +from openguilion.lost import * +from openguilion.mentalToxicity import * + +def main(): + running = True + + startDate = time.time() + curTime = startDate + animIndex = 0 + animTime = 0 + animations = [intruderAlert, caseResolution, mentalToxicity, lost, phase01To17] + + while running: + for event in pygame.event.get(): + keys = pygame.key.get_pressed() + event = pygame.event.poll() + if event.type == pygame.QUIT or keys[pygame.K_ESCAPE]: + running = False + if keys[pygame.K_a]: + textX -= 1 + print(str(textX) + ", " + str(textY)) + if keys[pygame.K_d]: + textX += 1 + print(str(textX) + ", " + str(textY)) + if keys[pygame.K_w]: + textY -= 1 + print(str(textX) + ", " + str(textY)) + if keys[pygame.K_s]: + textY += 1 + print(str(textX) + ", " + str(textY)) + + animTime = time.time() - curTime + if animations[animIndex % len(animations)](animTime): + curTime = time.time() + animIndex += 1 + animTime = 0 + + pygame.display.update() + + pygame.quit() + +if __name__ == "__main__": + main()
\ No newline at end of file |