repl.it
@LukeShomper/

Bullet doger

Pygame

No description

fork
loading
Files
  • main.py
  • nohup.out
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import pygame
pygame.init()
SX = 500
SY = 500
x = 10
y = 10
xc = 0
yc = 0
Screen = pygame.display.set_mode((SX, SY))
# RGB
Red = (255, 0, 0)
Green = (0, 255, 0)
Blue = (0, 0, 255)
white = (255, 255, 255)

def su():
    pygame.display.flip()
while True:
    Screen.fill(white)
    pygame.draw.rect(Screen, Red, (x, y, 50, 50))
    su()
    
?