File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
games/falling object game Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 14
14
wn = turtle .Screen ()
15
15
wn .title ("falling objects game" )
16
16
wn .bgcolor ("blue" )
17
- wn .bgpic (r"c:\Users\joe\OneDrive\Pictures\ game backgrounds \forest.gif" )
17
+ wn .bgpic (r"falling-object- game\img \forest.gif" )
18
18
wn .setup (width = 800 ,height = 600 )
19
19
wn .tracer (14 )
20
- wn .addshape (r"falling-object-game\img\deer .gif" )
20
+ wn .addshape (r"falling-object-game\img\deer_right .gif" )
21
21
wn .addshape (r"falling-object-game\img\acorn.gif" )
22
- wn .addshape (r"falling-object-game\img\hunter .gif" )
22
+ wn .addshape (r"falling-object-game\img\hunter_right .gif" )
23
23
24
24
25
25
player = turtle .Turtle ()
26
26
player .speed (0 )
27
- player .shape (r"falling-object-game\img\deer .gif" )
27
+ player .shape (r"falling-object-game\img\deer_right .gif" )
28
28
player .color ("white" )
29
29
player .penup ()
30
30
player .goto (0 ,- 250 )
48
48
for _ in range (20 ):
49
49
bad_guy = turtle .Turtle ()
50
50
bad_guy .speed (0 )
51
- bad_guy .shape (r"falling-object-game\img\hunter .gif" )
51
+ bad_guy .shape (r"falling-object-game\img\hunter_right .gif" )
52
52
bad_guy .color ("red" )
53
53
bad_guy .penup ()
54
54
x = random .randint (- 380 ,380 )
You can’t perform that action at this time.
0 commit comments