![]() ![]() Sprite.y = screen_height - sprite.height / 2ĭef _init_(self, x, y, vx, vy, r, g, b, radius):ĭef move(self, screen_width, screen_height): ![]() If sprite.y screen_height - sprite.height / 2: Sprite.x = screen_width - sprite.width / 2 If sprite.x screen_width - sprite.width / 2: If ball.x = balls.x and ball.y = balls.y: I tried changing it up but it doesn’t seem to work. I think the problem is with my conditional statements in my for loop within my refactorcode.py that code the sprites. Although, one of the sprite images seems to bounce repeatedly and never seems to make it past the middle part of the screen. My goal is for the two sprite images to bounce across the 640x360 screen using its inheritance from the blocks. I made this python program using pycharm. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |