PyGame Zero
PyGame Zero est une bibliothèque de programmation de jeux vidéos basée sur PyGame avec pour objectif de simplifier encore plus l'accès à cet univers fascinant qu'est la programmation, notamment de jeux. PyGame Zero est aujourd'hui un bine meilleur outil d'apprentissage de la programmation orienté Kids que ne l'est Scratch. De plus l'usage de Python comme langage de développement permet d'ouvrir l'accès à un très vaste univers de développement passé, présent et à venir.
Documentation officielle : https://pygame-zero.readthedocs.io/en/stable
Pour sortir de l'interpréteur de commande python, saisissez simplement la commande quit().
PyGame Zero est un wrapper autour de l'environnement PyGame. Son objectif est de simplifier la mise en place d'objets graphiques et leur interaction, ainsi que la prise en charge transparente de la logique applicative tournant autour du jeu : boucle d'événements, interaction entre les objets, gestion audio...
Un programme simple réalisé avec PyGame Zero qui permet d'afficher une fenêtre de 800 x 600 pixels avec un fond noir est équivalent à ceci
WIDTH = 800
HEIGHT = 600
def draw():
screen.fill((0,0,0))
Pour lancer le programme, il suffit, depuis une commande DOS, de faire pgzrun <nom du programme>.
Vous pouvez remarquer que c'est d'une grande simplicité tout de même. Petite digression au passage. PyGame Zero
essaie de reprendre les mêmes principes que le méta langage AMOS avait mis en place il y a déjà de fort longues années
sur un des ordinateurs phares des années 1990 : le Commodore Amiga. Nous pouvons également le comparer au langage
Processing qui permet également de réaliser des choses incroyables avec seulement quelques lignes de code.
Si l'on compare avec la même chose réalisée avec Pygame, nous obtiendrions quelque chose d'équivalent à ceci
import pygame
pygame.init()
size = 800, 600
screen = pygame.display.set_mode(size)
clock = pygame.time.Clock()
while True:
for event in pygame.event.get():
if event.type == pygame.KEYDOWN:
if event.key == pygame.K_q:
sys.exit()
screen.fill(pygame.Color("black"))
pygame.display.flip()
clock.tick(60)
Every broadcast concluded with Kasem’s timeless advice: "Keep your feet on the ground and keep reaching for the stars." Why Fans Turn to the Internet Archive
Through the power of digital preservation, the Internet Archive has ensured that Casey Kasem’s countdowns remain a living, breathing part of music history, allowing listeners to relive the vibrant soundtrack of the 1980s whenever they want.
During the 1980s, Casey Kasem turned a simple music countdown into a cultural powerhouse. 0;381;0;404; american top 40 80s internet archive
He clicked on the next link. May 17, 1985.
If you grew up in the 1980s, the sound of a weekend wasn’t just the hum of a lawnmower or the crackle of a mall food court. It was the voice of Casey Kasem. Every Saturday or Sunday, millions of teenagers and adults would huddle around a boombox, a car stereo, or a kitchen radio to listen to American Top 40 (AT40). It was a ritual. It was the Billboard countdown brought to life, complete with "Long Distance Dedications," trivia about "debuters," and Casey’s signature sign-off: " Keep your feet on the ground and keep reaching for the stars. " May 17, 1985
Search for terms like "American Top 40 1980s" , "Casey Kasem retro" , or "AT40" combined with a specific year (e.g., "American Top 40 1984" ).
Most files are available in MP3 (for your phone/MP3 player), OGG , and FLAC (lossless audio for audiophiles). You can stream them directly in your browser using the Archive's HTML5 player, or download the zip file of the entire episode. Every Saturday or Sunday, millions of teenagers and
Counting down from number 40 to number 1 kept listeners tuned in for the entire four-hour broadcast.
And Leo felt something tighten in his chest. Not nostalgia—he wasn’t alive in 1986. It was something weirder. Grief for a time he never lived. He imagined the fiancée, her bedroom with peach-colored walls, a boom box on the dresser, taping this exact countdown so she could hear her name. He imagined the soldier, counting days until a Cold War that everyone swore would never turn hot.
Any serious fan of the show will also want to consult the definitive written histories: the books by author Pete Battistini. In 2005, Battistini released "American Top 40 with Casey Kasem (The 1970's)." This was followed by the essential companion volume, "American Top 40 with Casey Kasem (The 1980's)," published in 2010. This book is a remarkable work of archival scholarship. Battistini painstakingly documented approximately 425 weekly, Casey Kasem-hosted countdown programs from the 80s and compiled individual program summaries for each week, including full playlists, chart positions, and trivia. For fans using the Internet Archive, Battistini's book is the perfect companion, providing the context and detailed information to understand exactly what you are listening to.