idea\alter

Card Set Information

Author:
etapia001
ID:
261906
Filename:
idea\alter
Updated:
2014-02-13 20:22:31
Tags:
python pygame game
Folders:

Description:
way to remember idea\alter
Show Answers:

Home > Flashcards > Print Preview

The flashcards below were created by user etapia001 on FreezingBlue Flashcards. What would you like to do?


  1. I
    • import pygame
    • pygame.init()
  2. D
    Display Configuration
    • screen = pygame.display.set_mode((640, 480))
    • pygame.display.set_caption("Hello, world!")
  3. E
    entities
    • background = pygame.Surface(screen.get_size())
    • background = background.convert()
    • background.fill((0, 0, 255))
  4. A
    Action
    ALTER
  5. A
    Assign Values to key variables.
    • clock = pygame.time.Clock()
    • keepGoing = True
  6. L
    Set up the main loop.
    while keepGoing:
  7. T
    Timer to set frame rate
    clock.tick(30)
  8. E
    Event handling
    • for event in pygame.event.get()
    •     if event.type == pygame.QUIT:
    •         keepgoing = False
  9. R
    Refresh Display
    • screen.blit(background, (0, 0))
    • pygame.display.flip()

What would you like to do?

Home > Flashcards > Print Preview