Menu

[r1]: / sprites.py  Maximize  Restore  History

Download this file

18 lines (12 with data), 503 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
#!usr/bin/env /python
#
# Filename : sprites.py
# Author : Juhana Kammonen 25.08.2009 - for JukiWeb Merseine
# Purpose : the file for all sprite classes needed by game MitoBlaster
import pygame
class Pointer(pygame.sprite.Sprite):
def __init__(self, initial_position):
self.image = pygame.image.load('data\pointer_1l.png')
# Make our top-left corner the passed-in location:
self.rect = self.image.get_rect()
self.rect.topleft = initial_position