"""Cosmic Candy Pinball - entry point. Controls: Left/Right arrows (or Z//) .... flippers Hold Space / Up / Down ........ charge the candy cannon, release to fire M ................................ mute P ................................ pause R ................................ restart the game Esc .............................. quit """ import pygame from game import Game def main(): g = Game() clock = pygame.time.Clock() running = True while running: for ev in pygame.event.get(): if not g.event(ev): running = False if running: g.set_keys() g.update() g.render() clock.tick(60) pygame.quit() if __name__ == "__main__": main()