|
From: João <lv...@us...> - 2009-12-14 05:49:38
|
This is an automated email from the git, the tree hashes are:
via 9f9eb9a15397bcb4f74c686dffcbe9b2f00d7e66 (commit)
from c6138743a73a2e531aa9347b5e4e4139d488154b (commit)
- Log -----------------------------------------------------------------
commit 9f9eb9a15397bcb4f74c686dffcbe9b2f00d7e66
Author: João <jcorrea@marvim.(none)>
Date: Mon Dec 14 03:48:29 2009 -0200
Fixed bug in foreground with queue index out of bounds
diff --git a/code/foreground.py b/code/foreground.py
index e3b88ff..a3fa7f6 100644
--- a/code/foreground.py
+++ b/code/foreground.py
@@ -43,11 +43,13 @@ class Layer:
"""
Moves the layer
"""
- for i in range(0, len(self.L)):
+ i = 0
+ while i < len(self.L):
self.L[i].pos[0] -= self.speed
# if the image reaches the end of the screen, pop it!
if self.L[i].pos[0] == -self.L[i].size[0]:
self.L.popleft()
+ i = i + 1
self.build()
def build(self):
diff --git a/data/graphic/1.png b/data/graphic/1.png
new file mode 100644
index 0000000..82f2fe1
Binary files /dev/null and b/data/graphic/1.png differ
diff --git a/data/graphic/2.png b/data/graphic/2.png
new file mode 100644
index 0000000..bda3646
Binary files /dev/null and b/data/graphic/2.png differ
diff --git a/data/graphic/3.png b/data/graphic/3.png
new file mode 100644
index 0000000..b9eb991
Binary files /dev/null and b/data/graphic/3.png differ
diff --git a/data/graphic/4.png b/data/graphic/4.png
new file mode 100644
index 0000000..9934112
Binary files /dev/null and b/data/graphic/4.png differ
diff --git a/data/stage1.xml b/data/stage1.xml
index 4c8482b..13c610c 100644
--- a/data/stage1.xml
+++ b/data/stage1.xml
@@ -3,7 +3,7 @@
<item>
<type>background</type>
<cc>1</cc>
- <image>tiles/stars1.jpg</image>
+ <image>4.png</image>
<layer>2</layer>
</item>
<item>
@@ -21,7 +21,7 @@
<type>foreground</type>
<cc>120</cc>
<pos_y>10</pos_y>
- <image>tiles/stars1.jpg</image>
+ <image>2.png</image>
</item>
<item>
<type>enemy</type>
@@ -46,6 +46,12 @@
<special>0</special>
</item>
<item>
+ <type>foreground</type>
+ <cc>240</cc>
+ <pos_y>80</pos_y>
+ <image>2.png</image>
+</item>
+<item>
<type>enemy</type>
<cc>250</cc>
<pos_x>0</pos_x>
@@ -79,6 +85,18 @@
<special>0</special>
</item>
<item>
+ <type>foreground</type>
+ <cc>362</cc>
+ <pos_y>18</pos_y>
+ <image>1.png</image>
+</item>
+<item>
+ <type>foreground</type>
+ <cc>370</cc>
+ <pos_y>30</pos_y>
+ <image>2.png</image>
+</item>
+<item>
<type>enemy</type>
<cc>400</cc>
<pos_x>0</pos_x>
@@ -107,6 +125,12 @@
<layer>2</layer>
</item>
<item>
+ <type>foreground</type>
+ <cc>500</cc>
+ <pos_y>40</pos_y>
+ <image>2.png</image>
+</item>
+<item>
<type>sw_mult</type>
<cc>300</cc>
<pos_x>0</pos_x>
@@ -245,7 +269,7 @@
<item>
<type>background</type>
<cc>1000</cc>
- <image>tiles/stars1.jpg</image>
+ <image>1.png</image>
<layer>2</layer>
</item>
<item>
-----------------------------------------------------------------------
Summary of changes:
code/foreground.py | 4 +++-
data/graphic/1.png | Bin 0 -> 14601 bytes
data/graphic/2.png | Bin 0 -> 33052 bytes
data/graphic/3.png | Bin 0 -> 9670 bytes
data/graphic/4.png | Bin 0 -> 752 bytes
data/stage1.xml | 30 +++++++++++++++++++++++++++---
6 files changed, 30 insertions(+), 4 deletions(-)
create mode 100644 data/graphic/1.png
create mode 100644 data/graphic/2.png
create mode 100644 data/graphic/3.png
create mode 100644 data/graphic/4.png
--
Dead Channel is a sci-fi shoot 'em up game developed using pygame.
|