repl.it
@ethanheys/

play-start

Pygame

No description

fork
loading
Files
  • main.py
  • nohup.out
  • Packager files
  • requirements.txt
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import play

boxes = [play.random_number(lowest=300, highest=500)
play.random_number(1.0, 4.0)] 


bird = play.new_circle(
    color='yellow',
    x=play.screen.left + 100,
    y=play.screen.top - 40,
    radius=30,
)
@play.repeat_forever
def do():
    if play.key_is_pressed('up'):
        bird.y += 7.5









play.start_program()