Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TITLE = "Moja pierwsza gra Star Wars"
- WIDTH = 1000
- HEIGHT = 800
- glowa = Actor("actor1.png")
- def draw():
- screen.blit("fantasy1.jpg", (0, 0))
- glowa.draw()
- def update():
- if keyboard.d:
- glowa.x += 5
- if keyboard.a:
- glowa.x -= 5
- if keyboard.w:
- glowa.y -= 5
- if keyboard.s:
- glowa.y += 5
- if glowa.x > 1000:
- glowa.x -= 30
- if glowa.x < 0:
- glowa.x += 30
- if glowa.y > 800:
- glowa.y -= 30
- if glowa.y < 0:
- glowa.y += 30
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement