From 88784d316dd8f8eb8dbfe5bea117362a45f72b37 Mon Sep 17 00:00:00 2001 From: stage7 Date: Wed, 14 Sep 2022 22:51:23 +0200 Subject: Actual initial commit. --- openguilion.py | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 openguilion.py (limited to 'openguilion.py') 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 -- cgit v1.2.3