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.
35 lines
768 B
Python
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()
|