Company of Heroes


ChatLog

First Previous 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 Next Last

user name message

pythonista24x7

Goto github.com

pythonista24x7

Put it on a gist

pythonista24x7

git commit -m \"my change\"

pythonista24x7

git add .

007bionicalman

I see it

pythonista24x7

git checkout -b circle_demo

007bionicalman

So much help please put on my github

pythonista24x7

From documentation: Update the full display Surface to the screen

007bionicalman

I understood it like the how our eye lenses is flip images

pythonista24x7

print(f\"{x}, {y}\")

pythonista24x7

You need to have it start with f

007bionicalman

Ok

pythonista24x7

screen is just an object to draw something on, running is a boolean used to keep track of infinite for loop.

007bionicalman

Please elaborate on line 6-8

pythonista24x7

Magic! :)

007bionicalman

Why does that work

pythonista24x7

Just change y

pythonista24x7

Thats easy

007bionicalman

Whathow

pythonista24x7

https://pastebin.com/x2FQ1J7z

xcomreborn

https://pastebin.com/

pythonista24x7

https://gist.github.com/sidharthshah/590142561696f1e404762379394d851f

pythonista24x7

Twitch won't allow me to share links

007bionicalman

Ty so much

pythonista24x7

``` import pygame pygame.init() screen = pygame.display.set_mode([500, 500]) running = True x = 250 y = 250 while running: for event in pygame.event.get(): if event.type == pygame.QUIT: running = False if event.type == pygame.KEYDOWN: if event.key == pygame.K_LEFT: x -=10 if event.key == pygame.K_RIGHT: x +=10 screen.fill((255, 255, 255)) pygame.draw.circle(screen, (0, 0, 255), (x, y), 75) ```

pythonista24x7

Here is working example I've created from the tutorial

007bionicalman

Yes ok didn’t have glasses couldn’t see earlier

007bionicalman

What Did you see

007bionicalman

Tutorial above

007bionicalman

Tutorial https://realpython.com/pygame-a-primer/

First Previous 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 Next Last