File: background.py

package info (click to toggle)
oneisenough 0.40-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 616 kB
  • sloc: python: 697; makefile: 7; sh: 2
file content (22 lines) | stat: -rw-r--r-- 411 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import pygame
import os

from pygame.locals import *

from locals import *

class Background:

  def __init__(self, screen):
    self.screen = screen
    self.image = pygame.image.load(os.path.join(PICTURES_DIR, BACKGROUND_IMAGE))
    self.rect = self.image.get_rect()
    return

  def update(self):
    return

  def render(self):
    self.screen.blit(self.image, self.rect)
    return