diff --git a/dzien_01/d_03_pong.py b/dzien_01/d_03_pong.py index 66e5b15..d5d921c 100644 --- a/dzien_01/d_03_pong.py +++ b/dzien_01/d_03_pong.py @@ -4,6 +4,9 @@ WIDTH = 1000 HEIGHT = 676 TITLE = "PONG - najlepsza gra na świecie ;-)" +# definicja sprita +sprite = Actor("ball.png") + # Najważniejsze funkcje sterujące def update(): pass @@ -11,5 +14,6 @@ def update(): def draw(): screen.blit("tomulus64.jpg", (0,0) ) + sprite.draw() pgzrun.go() \ No newline at end of file diff --git a/dzien_01/images/ball.png b/dzien_01/images/ball.png new file mode 100644 index 0000000..1ddb4d6 Binary files /dev/null and b/dzien_01/images/ball.png differ diff --git a/dzien_01/images/tomulus64.jpg b/dzien_01/images/tomulus64.jpg new file mode 100644 index 0000000..0940f03 Binary files /dev/null and b/dzien_01/images/tomulus64.jpg differ