Commit 69582a5e authored by Jake Howard's avatar Jake Howard
Browse files

updated movement

parent 392f97be
......@@ -2,14 +2,19 @@ import pygame
class Shooter(pygame.sprite.Sprite):
def __init__(self, color=(30,0,150), width=64, height=64):
def __init__(self, window, color=(30,0,150), width=50, height=25):
self.width = width
self.height = height
self.image = pygame.Surface((width, height))
self.rect = self.image.get_rect()
self.speed = 4
self.window_rect = window.get_rect()
def set_position(self,x,y):
self.rect.x, self.rect.y = x,y
def move(self, value): self.rect.x += value
\ No newline at end of file
def move(self, value):
self.rect.x += value
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment