Python Help for making a addictive game for people that like addictive phone game

Python Help for making a addictive game for people that like addictive phone game
0.0 0

#1

I wonder how you can get this code: import turtle
import math

wn = turtle.Screen()
wn.bgcolor(“blue”)
wn.tracer(3)

mypen = turtle.Turtle()
mypen.penup()
mypen.setposition(-300,-50)
mypen.pendown()
mypen.pensize(3)
mypen.color(“black”)
for side in range(1):
mypen.forward(600)
mypen.left(90)
for side in range(1):
mypen.forward(415)
mypen.left(90)
for side in range(1):
mypen.forward(600)
mypen.left(90)
for side in range(1):
mypen.forward(415)
mypen.left(90)
for side in range(1):
mypen.right(45)
mypen.forward(424)
mypen.left(90)
mypen.forward(424)
mypen.hideturtle()

player = turtle.Turtle()
player.color(“red”)
player.shape(“circle”)
player.penup()
player.speed(0)
player.setposition(-225, 50)

square_90 = turtle.Turtle()
square_90.color(“white”)
square_90.shape(“square”)
square_90.penup()
square_90.speed(0)
square_90.setposition(-200, 100)

square_70 = turtle.Turtle()
square_70.color(“white”)
square_70.shape(“square”)
square_70.penup()
square_70.speed(0)
square_70.setposition(-250, 0)

square_89 = turtle.Turtle()
square_89.color(“white”)
square_89.shape(“square”)
square_89.penup()
square_89.speed(0)
square_89.setposition(-250, 50)

square_69 = turtle.Turtle()
square_69.color(“white”)
square_69.shape(“square”)
square_69.penup()
square_69.speed(0)
square_69.setposition(-150, 0)

square_49 = turtle.Turtle()
square_49.color(“white”)
square_49.shape(“square”)
square_49.penup()
square_49.speed(0)
square_49.setposition(-200, 0)

square_31 = turtle.Turtle()
square_31.color(“white”)
square_31.shape(“square”)
square_31.penup()
square_31.speed(0)
square_31.setposition(-250, 100)

square_5 = turtle.Turtle()
square_5.color(“white”)
square_5.shape(“square”)
square_5.penup()
square_5.speed(0)
square_5.setposition(-50, 0)

square_6 = turtle.Turtle()
square_6.color(“white”)
square_6.shape(“square”)
square_6.penup()
square_6.speed(0)
square_6.setposition(0, -25)

square_55 = turtle.Turtle()
square_55.color(“white”)
square_55.shape(“square”)
square_55.penup()
square_55.speed(0)
square_55.setposition(0, 25)

square_238 = turtle.Turtle()
square_238.color(“white”)
square_238.shape(“square”)
square_238.penup()
square_238.speed(0)
square_238.setposition(175, 0)

square_234 = turtle.Turtle()
square_234.color(“white”)
square_234.shape(“square”)
square_234.penup()
square_234.speed(0)
square_234.setposition(200, 0)

square_500 = turtle.Turtle()
square_500.color(“white”)
square_500.shape(“square”)
square_500.penup()
square_500.speed(0)
square_500.setposition(100, -25)

square = turtle.Turtle()
square.color(“white”)
square.shape(“square”)
square.penup()
square.speed(0)
square.setposition(150, 50)

square_999 = turtle.Turtle()
square_999.color(“white”)
square_999.shape(“square”)
square_999.penup()
square_999.speed(0)
square_999.setposition(100, 25)

square_765 = turtle.Turtle()
square_765.color(“white”)
square_765.shape(“square”)
square_765.penup()
square_765.speed(0)
square_765.setposition(50, 0)

square_893 = turtle.Turtle()
square_893.color(“white”)
square_893.shape(“square”)
square_893.penup()
square_893.speed(0)
square_893.setposition(150, 0)

square_798 = turtle.Turtle()
square_798.color(“white”)
square_798.shape(“square”)
square_798.penup()
square_798.speed(0)
square_798.setposition(200, 75)

square_733 = turtle.Turtle()
square_733.color(“white”)
square_733.shape(“square”)
square_733.penup()
square_733.speed(0)
square_733.setposition(250, 75)

square_996 = turtle.Turtle()
square_996.color(“white”)
square_996.shape(“square”)
square_996.penup()
square_996.speed(0)
square_996.setposition(225, 125)

square_835 = turtle.Turtle()
square_835.color(“white”)
square_835.shape(“square”)
square_835.penup()
square_835.speed(0)
square_835.setposition(175, 125)

square_666 = turtle.Turtle()
square_666.color(“white”)
square_666.shape(“square”)
square_666.penup()
square_666.speed(0)
square_666.setposition(200, 175)

square_342 = turtle.Turtle()
square_342.color(“white”)
square_342.shape(“square”)
square_342.penup()
square_342.speed(0)
square_342.setposition(225, 225)

square_545 = turtle.Turtle()
square_545.color(“white”)
square_545.shape(“square”)
square_545.penup()
square_545.speed(0)
square_545.setposition(250, 0)

square_451 = turtle.Turtle()
square_451.color(“white”)
square_451.shape(“square”)
square_451.penup()
square_451.speed(0)
square_451.setposition(250, 25)

square_170 = turtle.Turtle()
square_170.color(“white”)
square_170.shape(“square”)
square_170.penup()
square_170.speed(0)
square_170.setposition(250, 50)

square_770 = turtle.Turtle()
square_770.color(“white”)
square_770.shape(“square”)
square_770.penup()
square_770.speed(0)
square_770.setposition(200, 275)

square_870 = turtle.Turtle()
square_870.color(“white”)
square_870.shape(“square”)
square_870.penup()
square_870.speed(0)
square_870.setposition(250, 275)

square_994 = turtle.Turtle()
square_994.color(“white”)
square_994.shape(“square”)
square_994.penup()
square_994.speed(0)
square_994.setposition(225, 325)

square_877 = turtle.Turtle()
square_877.color(“white”)
square_877.shape(“square”)
square_877.penup()
square_877.speed(0)
square_877.setposition(175, 325)

square_22389023943892 = turtle.Turtle()
square_22389023943892.color(“white”)
square_22389023943892.shape(“square”)
square_22389023943892.penup()
square_22389023943892.speed(0)
square_22389023943892.setposition(-150, 100)

square_34979348 = turtle.Turtle()
square_34979348.color(“white”)
square_34979348.shape(“square”)
square_34979348.penup()
square_34979348.speed(0)
square_34979348.setposition(-100, 25)

square_453 = turtle.Turtle()
square_453.color(“white”)
square_453.shape(“square”)
square_453.penup()
square_453.speed(0)
square_453.setposition(-100, 75)

square_234 = turtle.Turtle()
square_234.color(“white”)
square_234.shape(“square”)
square_234.penup()
square_234.speed(0)
square_234.setposition(200, 50)

square_239 = turtle.Turtle()
square_239.color(“white”)
square_239.shape(“square”)
square_239.penup()
square_239.speed(0)
square_239.setposition(225, 0)

square_234 = turtle.Turtle()
square_234.color(“white”)
square_234.shape(“square”)
square_234.penup()
square_234.speed(0)
square_234.setposition(250, 100)

square_327 = turtle.Turtle()
square_327.color(“white”)
square_327.shape(“square”)
square_327.penup()
square_327.speed(0)
square_327.setposition(250, 200)

square_237 = turtle.Turtle()
square_237.color(“white”)
square_237.shape(“square”)
square_237.penup()
square_237.speed(0)
square_237.setposition(250, 125)

square_237 = turtle.Turtle()
square_237.color(“white”)
square_237.shape(“square”)
square_237.penup()
square_237.speed(0)
square_237.setposition(250, 150)

square_238 = turtle.Turtle()
square_238.color(“white”)
square_238.shape(“square”)
square_238.penup()
square_238.speed(0)
square_238.setposition(250, 175)

square_237 = turtle.Turtle()
square_237.color(“white”)
square_237.shape(“square”)
square_237.penup()
square_237.speed(0)
square_237.setposition(250, 225)

square_238 = turtle.Turtle()
square_238.color(“white”)
square_238.shape(“square”)
square_238.penup()
square_238.speed(0)
square_238.setposition(250, 300)

square_234 = turtle.Turtle()
square_234.color(“white”)
square_234.shape(“square”)
square_234.penup()
square_234.speed(0)
square_234.setposition(250, 250)

square_178 = turtle.Turtle()
square_178.color(“white”)
square_178.shape(“square”)
square_178.penup()
square_178.speed(0)
square_178.setposition(250, 325)

square_238 = turtle.Turtle()
square_238.color(“white”)
square_238.shape(“square”)
square_238.penup()
square_238.speed(0)
square_238.setposition(175, 300)

square_238 = turtle.Turtle()
square_238.color(“white”)
square_238.shape(“square”)
square_238.penup()
square_238.speed(0)
square_238.setposition(175, 275)

square_234 = turtle.Turtle()
square_234.color(“white”)
square_234.shape(“square”)
square_234.penup()
square_234.speed(0)
square_234.setposition(175, 250)

square_2387239739279 = turtle.Turtle()
square_2387239739279.color(“white”)
square_2387239739279.shape(“square”)
square_2387239739279.penup()
square_2387239739279.speed(0)
square_2387239739279.setposition(175, 225)

square_1274189618 = turtle.Turtle()
square_1274189618.color(“white”)
square_1274189618.shape(“square”)
square_1274189618.penup()
square_1274189618.speed(0)
square_1274189618.setposition(175, 200)

square_234872389 = turtle.Turtle()
square_234872389.color(“white”)
square_234872389.shape(“square”)
square_234872389.penup()
square_234872389.speed(0)
square_234872389.setposition(175, 175)

square_3489743678358 = turtle.Turtle()
square_3489743678358.color(“white”)
square_3489743678358.shape(“square”)
square_3489743678358.penup()
square_3489743678358.speed(0)
square_3489743678358.setposition(175, 150)

square_87439753489759837 = turtle.Turtle()
square_87439753489759837.color(“white”)
square_87439753489759837.shape(“square”)
square_87439753489759837.penup()
square_87439753489759837.speed(0)
square_87439753489759837.setposition(175, 100)

square_23478947392 = turtle.Turtle()
square_23478947392.color(“white”)
square_23478947392.shape(“square”)
square_23478947392.penup()
square_23478947392.speed(0)
square_23478947392.setposition(175, 75)

square_1234897986 = turtle.Turtle()
square_1234897986.color(“white”)
square_1234897986.shape(“square”)
square_1234897986.penup()
square_1234897986.speed(0)
square_1234897986.setposition(175, 50)

square_348973895739 = turtle.Turtle()
square_348973895739.color(“white”)
square_348973895739.shape(“square”)
square_348973895739.penup()
square_348973895739.speed(0)
square_348973895739.setposition(50, 50)

square_2348907423879 = turtle.Turtle()
square_2348907423879.color(“white”)
square_2348907423879.shape(“square”)
square_2348907423879.penup()
square_2348907423879.speed(0)
square_2348907423879.setposition(75, 50)

square_4237848568368686 = turtle.Turtle()
square_4237848568368686.color(“white”)
square_4237848568368686.shape(“square”)
square_4237848568368686.penup()
square_4237848568368686.speed(0)
square_4237848568368686.setposition(100, 50)

square_32904339753897534 = turtle.Turtle()
square_32904339753897534.color(“white”)
square_32904339753897534.shape(“square”)
square_32904339753897534.penup()
square_32904339753897534.speed(0)
square_32904339753897534.setposition(125, 50)

square_439346278656586583658365 = turtle.Turtle()
square_439346278656586583658365.color(“white”)
square_439346278656586583658365.shape(“square”)
square_439346278656586583658365.penup()
square_439346278656586583658365.speed(0)
square_439346278656586583658365.setposition(0, 50)

square_4387923897397 = turtle.Turtle()
square_4387923897397.color(“white”)
square_4387923897397.shape(“square”)
square_4387923897397.penup()
square_4387923897397.speed(0)
square_4387923897397.setposition(25, 50)

square_57567865658368638568683 = turtle.Turtle()
square_57567865658368638568683.color(“white”)
square_57567865658368638568683.shape(“square”)
square_57567865658368638568683.penup()
square_57567865658368638568683.speed(0)
square_57567865658368638568683.setposition(-25, 50)

square_123423125 = turtle.Turtle()
square_123423125.color(“white”)
square_123423125.shape(“square”)
square_123423125.penup()
square_123423125.speed(0)
square_123423125.setposition(-50, 50)

square_849237592 = turtle.Turtle()
square_849237592.color(“white”)
square_849237592.shape(“square”)
square_849237592.penup()
square_849237592.speed(0)
square_849237592.setposition(-75, 50)

square_34290234 = turtle.Turtle()
square_34290234.color(“white”)
square_34290234.shape(“square”)
square_34290234.penup()
square_34290234.speed(0)
square_34290234.setposition(-100, 50)

square_847930234739734 = turtle.Turtle()
square_847930234739734.color(“white”)
square_847930234739734.shape(“square”)
square_847930234739734.penup()
square_847930234739734.speed(0)
square_847930234739734.setposition(-100, 100)

square_0000000000000000000000000000000000000000 = turtle.Turtle()
square_0000000000000000000000000000000000000000.color(“white”)
square_0000000000000000000000000000000000000000.shape(“square”)
square_0000000000000000000000000000000000000000.penup()
square_0000000000000000000000000000000000000000.speed(0)
square_0000000000000000000000000000000000000000.setposition(-125, 100)

square_1242345265445643663 = turtle.Turtle()
square_1242345265445643663.color(“white”)
square_1242345265445643663.shape(“square”)
square_1242345265445643663.penup()
square_1242345265445643663.speed(0)
square_1242345265445643663.setposition(-175, 100)

square_78011747847481178 = turtle.Turtle()
square_78011747847481178.color(“white”)
square_78011747847481178.shape(“square”)
square_78011747847481178.penup()
square_78011747847481178.speed(0)
square_78011747847481178.setposition(-225, 100)

square_4537895358793479437947593478748957947 = turtle.Turtle()
square_4537895358793479437947593478748957947.color(“white”)
square_4537895358793479437947593478748957947.shape(“square”)
square_4537895358793479437947593478748957947.penup()
square_4537895358793479437947593478748957947.speed(0)
square_4537895358793479437947593478748957947.setposition(-250, 75)

square_11111111111111111111122222222222222222222222222222222299999999999999999999999999999999999999999999999 = turtle.Turtle()
square_11111111111111111111122222222222222222222222222222222299999999999999999999999999999999999999999999999.color(“white”)
square_11111111111111111111122222222222222222222222222222222299999999999999999999999999999999999999999999999.shape(“square”)
square_11111111111111111111122222222222222222222222222222222299999999999999999999999999999999999999999999999.penup()
square_11111111111111111111122222222222222222222222222222222299999999999999999999999999999999999999999999999.speed(0)
square_11111111111111111111122222222222222222222222222222222299999999999999999999999999999999999999999999999.setposition(-250, 25)

square_111111111111111111111222222222222222222222222222222222 = turtle.Turtle()
square_111111111111111111111222222222222222222222222222222222.color(“white”)
square_111111111111111111111222222222222222222222222222222222.shape(“square”)
square_111111111111111111111222222222222222222222222222222222.penup()
square_111111111111111111111222222222222222222222222222222222.speed(0)
square_111111111111111111111222222222222222222222222222222222.setposition(-225, 0)

square_444444444444444444444444444444 = turtle.Turtle()
square_444444444444444444444444444444.color(“white”)
square_444444444444444444444444444444.shape(“square”)
square_444444444444444444444444444444.penup()
square_444444444444444444444444444444.speed(0)
square_444444444444444444444444444444.setposition(-175, 0)

square_333333333333333333333 = turtle.Turtle()
square_333333333333333333333.color(“white”)
square_333333333333333333333.shape(“square”)
square_333333333333333333333.penup()
square_333333333333333333333.speed(0)
square_333333333333333333333.setposition(-150, -25)

square_999999999999999999 = turtle.Turtle()
square_999999999999999999.color(“white”)
square_999999999999999999.shape(“square”)
square_999999999999999999.penup()
square_999999999999999999.speed(0)
square_999999999999999999.setposition(-125, -25)

square_222222222222222 = turtle.Turtle()
square_222222222222222.color(“white”)
square_222222222222222.shape(“square”)
square_222222222222222.penup()
square_222222222222222.speed(0)
square_222222222222222.setposition(-100, -25)

square_2543 = turtle.Turtle()
square_2543.color(“white”)
square_2543.shape(“square”)
square_2543.penup()
square_2543.speed(0)
square_2543.setposition(-75, -25)

square_261 = turtle.Turtle()
square_261.color(“white”)
square_261.shape(“square”)
square_261.penup()
square_261.speed(0)
square_261.setposition(-25, -25)

square_211 = turtle.Turtle()
square_211.color(“white”)
square_211.shape(“square”)
square_211.penup()
square_211.speed(0)
square_211.setposition(50, -25)

square_250 = turtle.Turtle()
square_250.color(“white”)
square_250.shape(“square”)
square_250.penup()
square_250.speed(0)
square_250.setposition(75, -25)

square_200 = turtle.Turtle()
square_200.color(“white”)
square_200.shape(“square”)
square_200.penup()
square_200.speed(0)
square_200.setposition(-50, -25)

square_2 = turtle.Turtle()
square_2.color(“white”)
square_2.shape(“square”)
square_2.penup()
square_2.speed(0)
square_2.setposition(125, -25)

square_100 = turtle.Turtle()
square_100.color(“white”)
square_100.shape(“square”)
square_100.penup()
square_100.speed(0)
square_100.setposition(25, -25)

square_4 = turtle.Turtle()
square_4.color(“white”)
square_4.shape(“square”)
square_4.penup()
square_4.speed(0)
square_4.setposition(150, -25)

speed = 0.4

def turnleft():
player.left(90)

def turnright():
player.right(90)

turtle.listen()
turtle.onkey(turnleft, “Left”)
turtle.onkey(turnright, “Right”)

while True:
player.forward(speed)

if player.xcor() > 290 or player.xcor() < -290:
    player.goto(-50,-200)

if player.ycor() > 358 or player.ycor() < -40:
    player.goto(-50,-200)


d = math.sqrt(math.pow(player.xcor()-square.xcor(),2) + math.pow(player.ycor()-square.ycor(),2))
if d < 20:
    square.q()

d = math.sqrt(math.pow(player.xcor()-square_2.xcor(),2) + math.pow(player.ycor()-square_2.ycor(),2))
if d < 20:
    square_2.q()


d = math.sqrt(math.pow(player.xcor()-square_4.xcor(),2) + math.pow(player.ycor()-square_4.ycor(),2))
if d < 20:
    square_4.q()

d = math.sqrt(math.pow(player.xcor()-square_5.xcor(),2) + math.pow(player.ycor()-square_5.ycor(),2))
if d < 20:
    square_5.q()

d = math.sqrt(math.pow(player.xcor()-square_6.xcor(),2) + math.pow(player.ycor()-square_6.ycor(),2))
if d < 20:
    square_6.q()

d = math.sqrt(math.pow(player.xcor()-square_90.xcor(),2) + math.pow(player.ycor()-square_90.ycor(),2))
if d < 20:
    square_90.q()

d = math.sqrt(math.pow(player.xcor()-square_70.xcor(),2) + math.pow(player.ycor()-square_70.ycor(),2))
if d < 20:
    square_70.q()

d = math.sqrt(math.pow(player.xcor()-square_89.xcor(),2) + math.pow(player.ycor()-square_89.ycor(),2))
if d < 20:
    square_89.q()


d = math.sqrt(math.pow(player.xcor()-square_69.xcor(),2) + math.pow(player.ycor()-square_69.ycor(),2))
if d < 20:
    square_69.q()

d = math.sqrt(math.pow(player.xcor()-square_49.xcor(),2) + math.pow(player.ycor()-square_49.ycor(),2))
if d < 20:
    square_49.q()

d = math.sqrt(math.pow(player.xcor()-square_31.xcor(),2) + math.pow(player.ycor()-square_31.ycor(),2))
if d < 20:
    square_31.q()


d = math.sqrt(math.pow(player.xcor()-square_55.xcor(),2) + math.pow(player.ycor()-square_55.ycor(),2))
if d < 20:
    square_55.q()

d = math.sqrt(math.pow(player.xcor()-square_100.xcor(),2) + math.pow(player.ycor()-square_100.ycor(),2))
if d < 20:
    square_100.q()

d = math.sqrt(math.pow(player.xcor()-square_200.xcor(),2) + math.pow(player.ycor()-square_200.ycor(),2))
if d < 20:
    square_200.q()




d = math.sqrt(math.pow(player.xcor()-square_250.xcor(),2) + math.pow(player.ycor()-square_250.ycor(),2))
if d < 20:
    square_250.q()


d = math.sqrt(math.pow(player.xcor()-square_500.xcor(),2) + math.pow(player.ycor()-square_500.ycor(),2))
if d < 20:
    square_500.q()

d = math.sqrt(math.pow(player.xcor()-square_999.xcor(),2) + math.pow(player.ycor()-square_999.ycor(),2))
if d < 20:
    square_999.q()

d = math.sqrt(math.pow(player.xcor()-square_765.xcor(),2) + math.pow(player.ycor()-square_765.ycor(),2))
if d < 20:
    square_765.q()


d = math.sqrt(math.pow(player.xcor()-square_893.xcor(),2) + math.pow(player.ycor()-square_893.ycor(),2))
if d < 20:
    square_893.q()

d = math.sqrt(math.pow(player.xcor()-square_798.xcor(),2) + math.pow(player.ycor()-square_798.ycor(),2))
if d < 20:
    square_798.q()

d = math.sqrt(math.pow(player.xcor()-square_733.xcor(),2) + math.pow(player.ycor()-square_733.ycor(),2))
if d < 20:
    square_733.q()

d = math.sqrt(math.pow(player.xcor()-square_996.xcor(),2) + math.pow(player.ycor()-square_996.ycor(),2))
if d < 20:
    square_996.q()

d = math.sqrt(math.pow(player.xcor()-square_835.xcor(),2) + math.pow(player.ycor()-square_835.ycor(),2))
if d < 20:
    square_835.q()


d = math.sqrt(math.pow(player.xcor()-square_666.xcor(),2) + math.pow(player.ycor()-square_666.ycor(),2))
if d < 20:
    square_666.q()

d = math.sqrt(math.pow(player.xcor()-square_545.xcor(),2) + math.pow(player.ycor()-square_545.ycor(),2))
if d < 20:
    square_545.q()

d = math.sqrt(math.pow(player.xcor()-square_451.xcor(),2) + math.pow(player.ycor()-square_451.ycor(),2))
if d < 20:
    square_451.q()

d = math.sqrt(math.pow(player.xcor()-square_170.xcor(),2) + math.pow(player.ycor()-square_170.ycor(),2))
if d < 20:
    square_170.q()

d = math.sqrt(math.pow(player.xcor()-square_770.xcor(),2) + math.pow(player.ycor()-square_770.ycor(),2))
if d < 20:
    square_770.q()

d = math.sqrt(math.pow(player.xcor()-square_870.xcor(),2) + math.pow(player.ycor()-square_870.ycor(),2))
if d < 20:
    square_870.q()

d = math.sqrt(math.pow(player.xcor()-square_877.xcor(),2) + math.pow(player.ycor()-square_877.ycor(),2))
if d < 20:
    square_877.q()

d = math.sqrt(math.pow(player.xcor()-square_994.xcor(),2) + math.pow(player.ycor()-square_994.ycor(),2))
if d < 20:
    square_994.q()

d = math.sqrt(math.pow(player.xcor()-square_211.xcor(),2) + math.pow(player.ycor()-square_211.ycor(),2))
if d < 20:
    square_211.q()

d = math.sqrt(math.pow(player.xcor()-square_261.xcor(),2) + math.pow(player.ycor()-square_261.ycor(),2))
if d < 20:
    square_261.q()

d = math.sqrt(math.pow(player.xcor()-square_2543.xcor(),2) + math.pow(player.ycor()-square_2543.ycor(),2))
if d < 20:
    square_2543.q()

d = math.sqrt(math.pow(player.xcor()-square_222222222222222.xcor(),2) + math.pow(player.ycor()-square_222222222222222.ycor(),2))
if d < 20:
    square_222222222222222.q()

d = math.sqrt(math.pow(player.xcor()-square_999999999999999999.xcor(),2) + math.pow(player.ycor()-square_999999999999999999.ycor(),2))
if d < 20:
    square_999999999999999999.q()

d = math.sqrt(math.pow(player.xcor()-square_333333333333333333333.xcor(),2) + math.pow(player.ycor()-square_333333333333333333333.ycor(),2))
if d < 20:
    square_333333333333333333333.q()

d = math.sqrt(math.pow(player.xcor()-square_444444444444444444444444444444.xcor(),2) + math.pow(player.ycor()-square_444444444444444444444444444444.ycor(),2))
if d < 20:
    square_444444444444444444444444444444.q()

d = math.sqrt(math.pow(player.xcor()-square_111111111111111111111222222222222222222222222222222222.xcor(),2) + math.pow(player.ycor()-square_111111111111111111111222222222222222222222222222222222.ycor(),2))
if d < 20:
    square_111111111111111111111222222222222222222222222222222222.q()

d = math.sqrt(math.pow(player.xcor()-square_11111111111111111111122222222222222222222222222222222299999999999999999999999999999999999999999999999.xcor(),2) + math.pow(player.ycor()-square_11111111111111111111122222222222222222222222222222222299999999999999999999999999999999999999999999999.ycor(),2))
if d < 20:
    square_11111111111111111111122222222222222222222222222222222299999999999999999999999999999999999999999999999.q()

d = math.sqrt(math.pow(player.xcor()-square_4537895358793479437947593478748957947.xcor(),2) + math.pow(player.ycor()-square_4537895358793479437947593478748957947.ycor(),2))
if d < 20:
    square_4537895358793479437947593478748957947.q()

d = math.sqrt(math.pow(player.xcor()-square_78011747847481178.xcor(),2) + math.pow(player.ycor()-square_78011747847481178.ycor(),2))
if d < 20:
    square_78011747847481178.q()

d = math.sqrt(math.pow(player.xcor()-square_1242345265445643663.xcor(),2) + math.pow(player.ycor()-square_1242345265445643663.ycor(),2))
if d < 20:
    square_1242345265445643663.q()

d = math.sqrt(math.pow(player.xcor()-square_0000000000000000000000000000000000000000.xcor(),2) + math.pow(player.ycor()-square_0000000000000000000000000000000000000000.ycor(),2))
if d < 20:
    square_0000000000000000000000000000000000000000.q()

d = math.sqrt(math.pow(player.xcor()-square_847930234739734.xcor(),2) + math.pow(player.ycor()-square_847930234739734.ycor(),2))
if d < 20:
    square_847930234739734.q()

d = math.sqrt(math.pow(player.xcor()-square_34290234.xcor(),2) + math.pow(player.ycor()-square_34290234.ycor(),2))
if d < 20:
    square_34290234.q()

d = math.sqrt(math.pow(player.xcor()-square_849237592.xcor(),2) + math.pow(player.ycor()-square_849237592.ycor(),2))
if d < 20:
    square_849237592.q()

d = math.sqrt(math.pow(player.xcor()-square_123423125.xcor(),2) + math.pow(player.ycor()-square_123423125.ycor(),2))
if d < 20:
    square_123423125.q()

d = math.sqrt(math.pow(player.xcor()-square_57567865658368638568683.xcor(),2) + math.pow(player.ycor()-square_57567865658368638568683.ycor(),2))
if d < 20:
    square_57567865658368638568683.q()

d = math.sqrt(math.pow(player.xcor()-square_4387923897397.xcor(),2) + math.pow(player.ycor()-square_4387923897397.ycor(),2))
if d < 20:
    square_4387923897397.q()

d = math.sqrt(math.pow(player.xcor()-square_439346278656586583658365.xcor(),2) + math.pow(player.ycor()-square_439346278656586583658365.ycor(),2))
if d < 20:
    square_439346278656586583658365.q()

d = math.sqrt(math.pow(player.xcor()-square_32904339753897534.xcor(),2) + math.pow(player.ycor()-square_32904339753897534.ycor(),2))
if d < 20:
    square_32904339753897534.q()

d = math.sqrt(math.pow(player.xcor()-square_32904339753897534.xcor(),2) + math.pow(player.ycor()-square_32904339753897534.ycor(),2))
if d < 20:
    square_32904339753897534.q()

d = math.sqrt(math.pow(player.xcor()-square_4237848568368686.xcor(),2) + math.pow(player.ycor()-square_4237848568368686.ycor(),2))
if d < 20:
    square_4237848568368686.q()

d = math.sqrt(math.pow(player.xcor()-square_2348907423879.xcor(),2) + math.pow(player.ycor()-square_2348907423879.ycor(),2))
if d < 20:
    square_2348907423879.q()

d = math.sqrt(math.pow(player.xcor()-square_348973895739.xcor(),2) + math.pow(player.ycor()-square_348973895739.ycor(),2))
if d < 20:
    square_348973895739.q()

d = math.sqrt(math.pow(player.xcor()-square_1234897986.xcor(),2) + math.pow(player.ycor()-square_1234897986.ycor(),2))
if d < 20:
    square_1234897986.q()

d = math.sqrt(math.pow(player.xcor()-square_23478947392.xcor(),2) + math.pow(player.ycor()-square_23478947392.ycor(),2))
if d < 20:
    square_23478947392.q()

d = math.sqrt(math.pow(player.xcor()-square_87439753489759837.xcor(),2) + math.pow(player.ycor()-square_87439753489759837.ycor(),2))
if d < 20:
    square_87439753489759837.q()

d = math.sqrt(math.pow(player.xcor()-square_3489743678358.xcor(),2) + math.pow(player.ycor()-square_3489743678358.ycor(),2))
if d < 20:
    square_3489743678358.q()

d = math.sqrt(math.pow(player.xcor()-square_234872389.xcor(),2) + math.pow(player.ycor()-square_234872389.ycor(),2))
if d < 20:
    square_234872389.q()

d = math.sqrt(math.pow(player.xcor()-square_1274189618.xcor(),2) + math.pow(player.ycor()-square_1274189618.ycor(),2))
if d < 20:
    square_1274189618.q()

d = math.sqrt(math.pow(player.xcor()-square_34979348.xcor(),2) + math.pow(player.ycor()-square_34979348.ycor(),2))
if d < 20:
    square_34979348.q()

d = math.sqrt(math.pow(player.xcor()-square_4537894739.xcor(),2) + math.pow(player.ycor()-square_4537894739.ycor(),2))
if d < 20:
    square_4537894739.q()

d = math.sqrt(math.pow(player.xcor()-square_234789342794379.xcor(),2) + math.pow(player.ycor()-square_234789342794379.ycor(),2))
if d < 20:
    square_234789342794379.q()

d = math.sqrt(math.pow(player.xcor()-square_23987297239.xcor(),2) + math.pow(player.ycor()-square_23987297239.ycor(),2))
if d < 20:
    square_23987297239.q()

d = math.sqrt(math.pow(player.xcor()-square_234732892739.xcor(),2) + math.pow(player.ycor()-square_234732892739.ycor(),2))
if d < 20:
    square_234732892739.q()

d = math.sqrt(math.pow(player.xcor()-square_3278893472793.xcor(),2) + math.pow(player.ycor()-square_3278893472793.ycor(),2))
if d < 20:
    square_3278893472793.q()

d = math.sqrt(math.pow(player.xcor()-square_23782389734987234.xcor(),2) + math.pow(player.ycor()-square_23782389734987234.ycor(),2))
if d < 20:
    square_23782389734987234.q()

d = math.sqrt(math.pow(player.xcor()-square_23897429729.xcor(),2) + math.pow(player.ycor()-square_23897429729.ycor(),2))
if d < 20:
    square_23897429729.q()

d = math.sqrt(math.pow(player.xcor()-square_23789237239.xcor(),2) + math.pow(player.ycor()-square_23789237239.ycor(),2))
if d < 20:
    square_23789237239.q()

d = math.sqrt(math.pow(player.xcor()-square_238923742379427.xcor(),2) + math.pow(player.ycor()-square_238923742379427.ycor(),2))
if d < 20:
    square_238923742379427.q()

d = math.sqrt(math.pow(player.xcor()-square_23478238939723.xcor(),2) + math.pow(player.ycor()-square_23478238939723.ycor(),2))
if d < 20:
    square_23478238939723.q()

d = math.sqrt(math.pow(player.xcor()-square_178907324197492.xcor(),2) + math.pow(player.ycor()-square_178907324197492.ycor(),2))
if d < 20:
    square_178907324197492.q()

d = math.sqrt(math.pow(player.xcor()-square_23879237349.xcor(),2) + math.pow(player.ycor()-square_23879237349.ycor(),2))
if d < 20:
    square_23879237349.q()

d = math.sqrt(math.pow(player.xcor()-square_23894729856562939569.xcor(),2) + math.pow(player.ycor()-square_23894729856562939569.ycor(),2))
if d < 20:
    square_23894729856562939569.q()

d = math.sqrt(math.pow(player.xcor()-square_23478972389749294.xcor(),2) + math.pow(player.ycor()-square_23478972389749294.ycor(),2))
if d < 20:
    square_23478972389749294.q()

d = math.sqrt(math.pow(player.xcor()-square_1274189618.xcor(),2) + math.pow(player.ycor()-square_1274189618.ycor(),2))
if d < 20:
    square_1274189618.q()

d = math.sqrt(math.pow(player.xcor()-square_2378238972389289.xcor(),2) + math.pow(player.ycor()-square_2378238972389289.ycor(),2))
if d < 20:
    square_2378238972389289.q()

d = math.sqrt(math.pow(player.xcor()-square_23489032.xcor(),2) + math.pow(player.ycor()-square_23489032.ycor(),2))
if d < 20:
    square_23489032.q()

d = math.sqrt(math.pow(player.xcor()-square_23847938937498.xcor(),2) + math.pow(player.ycor()-square_23847938937498.ycor(),2))
if d < 20:
    square_23847938937498.q()

d = math.sqrt(math.pow(player.xcor()-square_22389023943892.xcor(),2) + math.pow(player.ycor()-square_22389023943892.ycor(),2))
if d < 20:
    square_22389023943892.q()

d = math.sqrt(math.pow(player.xcor()-square_2387239739279.xcor(),2) + math.pow(player.ycor()-square_2387239739279.ycor(),2))
if d < 20:
    square_2387239739279.q()

d = math.sqrt(math.pow(player.xcor()-square_342.xcor(),2) + math.pow(player.ycor()-square_342.ycor(),2))
if d < 20:
    square_342.q()

into phone code so you can play it on the phone


#2

Hi there again. This question sounds more of an implementation question and will require a lot more help and work to get this to work. There’s a lot of ways to “put this into a phone.” You could make a smartphone application or you could make an HTML5 game. The sky’s the limit. But I would do some homework on what you’re trying to achieve. Good luck!