[gcompris: 50/111] changed fuel tank colour in land_safe
- From: Bruno Coudoin <bcoudoin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcompris: 50/111] changed fuel tank colour in land_safe
- Date: Wed, 3 Oct 2012 23:58:46 +0000 (UTC)
commit d249078c7f250df2a7d5d5e5575572123b5bea2c
Author: serah <serah4291 gmail com>
Date: Wed Jul 4 13:08:53 2012 +0530
changed fuel tank colour in land_safe
src/land_safe-activity/land_safe.py | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/src/land_safe-activity/land_safe.py b/src/land_safe-activity/land_safe.py
index 735b423..a7bddc7 100644
--- a/src/land_safe-activity/land_safe.py
+++ b/src/land_safe-activity/land_safe.py
@@ -202,7 +202,7 @@ class Spaceship:
# Load landing area
self.land_x = random.randrange(100, 400)
landing = goocanvas.Image(
- parent = rootitem,
+ parent = self.land_rootitem,
pixbuf = gcompris.utils.load_pixmap("land_safe/landing_area.png"),
x = self.land_x,
y = 365)
@@ -441,18 +441,18 @@ class Display:
y = 40.0,
width = 100,
height = 20,
- stroke_color = "blue")
+ stroke_color = "grey")
# initial fuel in tank
- self.fuel_amt = 100
+ self.fuel_amt = 96
self.fuel_tank = goocanvas.Rect(
parent = rootitem,
radius_x = 10,
radius_y = 10,
- x = 65.0,
- y = 40.0,
+ x = 66.5,
+ y = 41.3,
width = self.fuel_amt,
- height = 20,
+ height = 16.5,
fill_color = "blue",
stroke_color = "blue")
@@ -521,6 +521,7 @@ class Display:
def increase_vel(self):
if self.fuel_amt == 1:
+ self.fuel_tank.remove()
return True
def stop_fuel(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]