Update app.py
Browse files
app.py
CHANGED
@@ -127,7 +127,7 @@ def save_game(name,score,background_im,star_im,enemy_im):
|
|
127 |
pass
|
128 |
|
129 |
print(timestamp)
|
130 |
-
i1 = open(
|
131 |
with open('tmp1.png','wb') as t1:
|
132 |
t1.write(i1)
|
133 |
try:
|
@@ -143,7 +143,7 @@ def save_game(name,score,background_im,star_im,enemy_im):
|
|
143 |
print (e)
|
144 |
pass
|
145 |
i1.close()
|
146 |
-
i2 = open(
|
147 |
with open('tmp2.png','wb') as t2:
|
148 |
t2.write(i2)
|
149 |
try:
|
@@ -159,7 +159,7 @@ def save_game(name,score,background_im,star_im,enemy_im):
|
|
159 |
print (e)
|
160 |
pass
|
161 |
i2.close()
|
162 |
-
i3 = open(
|
163 |
with open('tmp3.png','wb') as t3:
|
164 |
t3.write(i3)
|
165 |
try:
|
|
|
127 |
pass
|
128 |
|
129 |
print(timestamp)
|
130 |
+
i1 = open(background_im,'rb')
|
131 |
with open('tmp1.png','wb') as t1:
|
132 |
t1.write(i1)
|
133 |
try:
|
|
|
143 |
print (e)
|
144 |
pass
|
145 |
i1.close()
|
146 |
+
i2 = open(star_im,'rb')
|
147 |
with open('tmp2.png','wb') as t2:
|
148 |
t2.write(i2)
|
149 |
try:
|
|
|
159 |
print (e)
|
160 |
pass
|
161 |
i2.close()
|
162 |
+
i3 = open(enemy_im,'rb')
|
163 |
with open('tmp3.png','wb') as t3:
|
164 |
t3.write(i3)
|
165 |
try:
|