Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/activity.py
diff options
context:
space:
mode:
Diffstat (limited to 'activity.py')
-rw-r--r--activity.py32
1 files changed, 16 insertions, 16 deletions
diff --git a/activity.py b/activity.py
index ed4a329..b680d95 100644
--- a/activity.py
+++ b/activity.py
@@ -282,16 +282,16 @@ class ChutarActivity(activity.Activity):
def calculo_gol(self, c_x, c_y):
#Coordenadas del rectangulo interior del arco
- i_x = 58
- i_y = 144
+ i_x = 157
+ i_y = 72
i_a = 484
- i_l = 324
+ i_h = 324
- if c_x > i_x and c_y > i_y and c_x < i_x+i_a and c_y < i_y+i_l:
+ if c_x > i_x and c_y > i_y and c_x < i_x+i_a and c_y < i_y+i_h:
if self.r == 0:
- if c_x > 210 and c_x < 388 :
- if c_y > 222 and c_y < 490:
+ if c_x > 299 and c_x < 475 :
+ if c_y > 127 and c_y < 392:
self.label.set_text('EL ARQUERO ATAJA!!!')
else:
self.label.set_text('GOOOL!!!')
@@ -300,8 +300,8 @@ class ChutarActivity(activity.Activity):
self.label.set_text('GOOOL!!!')
self.goles = self.goles + 1
elif self.r == 1:
- if c_x > 156 and c_x < 451:
- if c_y > 345 and c_y < 500:
+ if c_x > 238 and c_x < 537:
+ if c_y > 242 and c_y < 396:
self.label.set_text('EL ARQUERO ATAJA!!!')
else:
self.label.set_text('GOOOL!!!')
@@ -310,8 +310,8 @@ class ChutarActivity(activity.Activity):
self.label.set_text('GOOOL!!!')
self.goles = self.goles + 1
elif self.r == 2:
- if c_x > 147 and c_x < 448:
- if c_y > 347 and c_y < 500:
+ if c_x > 236 and c_x < 532:
+ if c_y > 240 and c_y < 396:
self.label.set_text('EL ARQUERO ATAJA!!!')
else:
self.label.set_text('GOOOL!!!')
@@ -320,8 +320,8 @@ class ChutarActivity(activity.Activity):
self.label.set_text('GOOOL!!!')
self.goles = self.goles + 1
elif self.r == 3:
- if c_x > 169 and c_x < 428:
- if c_y > 246 and c_y < 451:
+ if c_x > 252 and c_x < 518:
+ if c_y > 142 and c_y < 345:
self.label.set_text('EL ARQUERO ATAJA!!!')
else:
self.label.set_text('GOOOL!!!')
@@ -330,8 +330,8 @@ class ChutarActivity(activity.Activity):
self.label.set_text('GOOOL!!!')
self.goles = self.goles + 1
elif self.r == 4:
- if c_x > 179 and c_x < 416:
- if c_y > 239 and c_y < 475:
+ if c_x > 265 and c_x < 503:
+ if c_y > 135 and c_y < 367:
self.label.set_text('EL ARQUERO ATAJA!!!')
else:
self.label.set_text('GOOOL!!!')
@@ -340,8 +340,8 @@ class ChutarActivity(activity.Activity):
self.label.set_text('GOOOL!!!')
self.goles = self.goles + 1
elif self.r == 5:
- if c_x > 182 and c_x < 422:
- if c_y > 240 and c_y < 469:
+ if c_x > 269 and c_x < 507:
+ if c_y > 151 and c_y < 380:
self.label.set_text('EL ARQUERO ATAJA!!!')
else:
self.label.set_text('GOOOL!!!')