pong - grafika start
This commit is contained in:
@@ -4,6 +4,9 @@ WIDTH = 1000
|
|||||||
HEIGHT = 676
|
HEIGHT = 676
|
||||||
TITLE = "PONG - najlepsza gra na świecie ;-)"
|
TITLE = "PONG - najlepsza gra na świecie ;-)"
|
||||||
|
|
||||||
|
# definicja sprita
|
||||||
|
sprite = Actor("ball.png")
|
||||||
|
|
||||||
# Najważniejsze funkcje sterujące
|
# Najważniejsze funkcje sterujące
|
||||||
def update():
|
def update():
|
||||||
pass
|
pass
|
||||||
@@ -11,5 +14,6 @@ def update():
|
|||||||
|
|
||||||
def draw():
|
def draw():
|
||||||
screen.blit("tomulus64.jpg", (0,0) )
|
screen.blit("tomulus64.jpg", (0,0) )
|
||||||
|
sprite.draw()
|
||||||
|
|
||||||
pgzrun.go()
|
pgzrun.go()
|
||||||
BIN
dzien_01/images/ball.png
Normal file
BIN
dzien_01/images/ball.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.6 KiB |
BIN
dzien_01/images/tomulus64.jpg
Normal file
BIN
dzien_01/images/tomulus64.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 178 KiB |
Reference in New Issue
Block a user