Added playermovement

-Need to implement key hold down
This commit is contained in:
Christian
2024-08-08 22:43:55 +02:00
parent 5a0ebc7f5a
commit 12190aa4db
3 changed files with 29 additions and 1 deletions

View File

@@ -35,5 +35,5 @@ class Projectile(GameObject.GameObject):
self.speed = 10
def animate(self):
self.rect = pygame.draw.rect(self.screen, (255,255,0), (self.pos_x, self.pos_y, self.width, self.height))
self.rect = pygame.draw.rect(self.screen, (0,0,0), (self.pos_x, self.pos_y, self.width, self.height))
self.pos_y += self.speed