Files
ds4.1-flipper/main.py
T
georgios db49b466c2 Cosmic Candy Pinball: procedural 8-bit pinball game
Native pygame-ce game with fully procedural pixel art and chiptune
audio (no asset files). Pure-logic physics module with flipper angular
momentum, plus headless autoplay/screenshot/probe dev tools.
2026-09-09 16:18:39 +02:00

35 lines
768 B
Python

"""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()