From 78d2f3d295c56e976c13b187b7723670411e4101 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Wed, 24 Apr 2013 22:44:30 +0200 Subject: digital/io-hub/src/apbirthday, host/simu: add cherries cannon simulation --- host/simu/robots/apbirthday/view/robot.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'host/simu/robots/apbirthday/view/robot.py') diff --git a/host/simu/robots/apbirthday/view/robot.py b/host/simu/robots/apbirthday/view/robot.py index e4153232..9675aff5 100644 --- a/host/simu/robots/apbirthday/view/robot.py +++ b/host/simu/robots/apbirthday/view/robot.py @@ -27,6 +27,7 @@ from simu.view.table_eurobot2013 import PINK, colors COLOR_ROBOT = '#000000' COLOR_AXES = '#202040' +COLOR_CANNON = '#808080' class Robot (simu.inter.drawable.Drawable): @@ -69,6 +70,8 @@ class Robot (simu.inter.drawable.Drawable): # Draw robot body. self.draw_polygon ((102, 140), (102, -140), (-108, -140), (-108, 70), (-58, 140), fill = COLOR_ROBOT) + self.draw_circle ((70, self.cannon_model.cannon_hit[1]), 20, + fill = COLOR_CANNON) # Draw Robot axis. self.draw_line ((-50, 0), (50, 0), fill = COLOR_AXES, arrow = 'last') -- cgit v1.2.3