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.
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
"""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()
|
||||
Reference in New Issue
Block a user