Skip to main content

Splash screen

A simple splash screen for games that take long to load.


Rock Achu
(rockachu2)
#! /usr/bin/env python import pygame import time import os, sys print 'Splash load...' os.environ['SDL_VIDEO_CENTERED'] = '1' pygame.init() pygame.font.init() screen = pygame.display.set_mode((500,80),pygame.NOFRAME) background = pygame.Surface(screen.get_size()) background.fill((2,24,244)) screen.blit(background, (0,0)) screen.blit(pygame.font.Font('pala.ttf', 72).render('Loading...', 1, (255,255,255)), (90,10)) pygame.display.update() time.sleep(5)

Changes

Links

Home Page
http://www.pygame.org/

Releases

Pygame.org account Comments