Tag Archives: pygame

Super Simple Pygame Window

If you’ve already installed pygame, let’s create a super simple Pygame window, that, for now, does nothing! We explain the code in detail below. What you’ll see: Code import pygame pygame.init() width = 350 height = 200 #make the pygame window pygame.display.set_mode((width, height ) ) running = True while (running): for event in pygame.event.get(): if … Continue reading Super Simple Pygame Window →