forked from meet-projects/meet2017y1final-proj
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.py
31 lines (28 loc) · 886 Bytes
/
settings.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
27
28
29
30
31
#settings
import turtle
import random
turtle.tracer(1,0)
x_size=800
y_size=700
turtle.setup(x_size,y_size)
SQUARE_SIZE=20
farmer = turtle.clone()
farmer_xsize = 100
farmer_ysize = 100
x_size = 800
y_size = 700
turtle.setup(x_size, y_size)
ground = -750
a = ["apple", "banana", "strawberry", "orange", "grape"]
b = ["bad_apple", "bad_banana", "bad_strawberry", "bad_orange"
, "bad_grape"]
c = ["gun", "handbomb", "rocket", "soldier"]
for i in range(len(good_food_list)):
good_food_list.index(i) = turtle.clone()
for i in range(len(bad_food_list)):
bad_food_list.index(i) = turtle.clone()
fallen_items = bad_food_list + good_food_list
farmer_xpos =farmer.pos()[0]
farmer_ypos = farmer.pos()[1]
farmer_xpos_list = [farmer_xpos, farmer_xpos + farmer_xsize, farmer_xpos - farmer_xsize]
farmer_ypos_list = [farmer_ypos, farmer_ypos + farmer_ysize, farmer_ypos - farmer_ysize]