-
Notifications
You must be signed in to change notification settings - Fork 2
/
resources.py
420 lines (371 loc) · 21.1 KB
/
resources.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
import pygame
import sys
pygame.init()
# General #x y w h
floor1 = pygame.Rect(0, 400, 2207, 50)
floor2 = pygame.Rect(2272, 400, 480, 50)
floor3 = pygame.Rect(2847, 400, 2048, 50)
floor4 = pygame.Rect(4960, 400, 2140, 50)
floor_list = [floor1, floor2, floor3, floor4]
bg = pygame.image.load("static_images/background.png")
mario = pygame.image.load("static_images/mario.png")
mario_rect = mario.get_rect(bottomleft = (40, 400))
#pole
### NAZ'S ###
pole = pygame.image.load("static_images/pole.png")
pole_rect = pole.get_rect(bottomleft = (6347, 368))
pole_ball = pygame.image.load("static_images/pole_ball.png")
pole_ball_co = (6341, 77)
flag_animation_list = []
flag_animation_list.append(pygame.image.load("./animate_images/flag0.png"))
flag_animation_list.append(pygame.image.load("./animate_images/flag1.png"))
flag_animation_list.append(pygame.image.load("./animate_images/flag2.png"))
flag_animation_list.append(pygame.image.load("./animate_images/flag3.png"))
flag_animation_list.append(pygame.image.load("./animate_images/flag4.png"))
flag_animation_list.append(pygame.image.load("./animate_images/flag5.png"))
flag_animation_list.append(pygame.image.load("./animate_images/flag6.png"))
flag_animation_list.append(pygame.image.load("./animate_images/flag7.png"))
flag_animation_list.append(pygame.image.load("./animate_images/flag8.png"))
flag_animation_list.append(pygame.image.load("./animate_images/flag9.png"))
flag_animation_list.append(pygame.image.load("./animate_images/flag10.png"))
flag_song = pygame.mixer.Sound("music/stage_clear.wav")
# debris
brick_debris_bottom_left = pygame.image.load("static_images/brick_debris_bottom_left.png")
brick_debris_bottom_right = pygame.image.load("static_images/brick_debris_bottom_right.png")
brick_debris_top_left = pygame.image.load("static_images/brick_debris_top_left.png")
brick_debris_top_right = pygame.image.load("static_images/brick_debris_top_right.png")
#fonts
SCORE = "SCORE"
COINS = "COINS"
WORLD = "WORLD"
TIME = "TIME"
LIVES = "LIVES"
GAME_OVER = "GAME OVER"
WHITE = (255,255,255)
mario_font = pygame.font.Font("fonts/mario_font.ttf", 36)
score_font = mario_font.render(SCORE, False, WHITE)
coins_font = mario_font.render(COINS, False, WHITE)
world_font = mario_font.render(WORLD, False, WHITE)
time_font = mario_font.render(TIME, False, WHITE)
lives_font = mario_font.render(LIVES, False, WHITE)
game_over_font = mario_font.render(GAME_OVER, False, WHITE)
#pipe
small_pipe = pygame.image.load("static_images/pipe_small.png")
medium_pipe = pygame.image.load("static_images/pipe_medium.png")
long_pipe = pygame.image.load("static_images/pipe_long.png")
pipe1_rect = small_pipe.get_rect(bottomleft = (896,400))
pipe2_rect = medium_pipe.get_rect(bottomleft = (1216,400))
pipe3_rect = long_pipe.get_rect(bottomleft = (1472,400))
pipe4_rect = long_pipe.get_rect(bottomleft = (1824,400))
pipe5_rect = small_pipe.get_rect(bottomleft = (5216,400))
pipe6_rect = small_pipe.get_rect(bottomleft = (5728,400))
### YUN SION's ###
titleBanner = pygame.image.load('static_images/title.png')
main_theme_song = pygame.mixer.Sound('music/main_theme.ogg')
font = pygame.font.Font('fonts/mario_font.ttf', 24)
gameoverFont = pygame.font.Font('fonts/mario_font.ttf', 72)
copywrite = font.render("©1985 Nintendo", False ,(255,255,0))
gameoverText = gameoverFont.render("GAME OVER", False, (255,255,255))
gameoverText_rect = gameoverText.get_rect(center=(500,224))
mario_dead_sound = pygame.mixer.Sound("music/dead.wav")
mario_died_pic = pygame.image.load("static_images/mario_died.png")
### BEN's ###
goomba_animation_list = []
goomba_animation_list.append(pygame.image.load("./animate_images/goomba0.png"))
goomba_animation_list.append(pygame.image.load("./animate_images/goomba1.png"))
goomba_hitbox = goomba_animation_list[0].get_rect(topleft = (700, 448-48-32))
goomba_death_ani = pygame.image.load("./static_images/goomba_died.png")
goomba1 = goomba_animation_list[0].get_rect(topleft = (680, 368))
goomba2 = goomba_animation_list[0].get_rect(topleft = (1300, 368))
goomba3 = goomba_animation_list[0].get_rect(topleft = (1620, 368))
goomba4 = goomba_animation_list[0].get_rect(topleft = (1680, 368))
goomba5 = goomba_animation_list[0].get_rect(topleft = (2572, 368))
goomba6 = goomba_animation_list[0].get_rect(topleft = (2630, 368))
goomba7 = goomba_animation_list[0].get_rect(topleft = (3110, 368))
# turtle = (1705, 368)
goomba8 = goomba_animation_list[0].get_rect(topleft = (3170, 368))
goomba9 = goomba_animation_list[0].get_rect(topleft = (3650, 368))
goomba10 = goomba_animation_list[0].get_rect(topleft = (3710, 368))
goomba11 = goomba_animation_list[0].get_rect(topleft = (3960, 368))
goomba12 = goomba_animation_list[0].get_rect(topleft = (4020, 368))
goomba13 = goomba_animation_list[0].get_rect(topleft = (4100, 368))
goomba14 = goomba_animation_list[0].get_rect(topleft = (4160, 368))
goomba15 = goomba_animation_list[0].get_rect(topleft = (5570, 368))
goomba16 = goomba_animation_list[0].get_rect(topleft = (5630, 368))
enemy_list = [goomba1, goomba2, goomba3, goomba4, goomba5, goomba6, goomba7, goomba8, goomba9, goomba10, goomba11, goomba12, goomba13, goomba14, goomba15, goomba16]
#############
### EEJOY's ###
# Import brick
brick = pygame.image.load("static_images/brick.png")
brick_rect1 = brick.get_rect(topleft = (640, 272))
brick_rect2 = brick.get_rect(topleft = (704, 272))
brick_rect3 = brick.get_rect(topleft = (768, 272))
brick_rect4 = brick.get_rect(topleft = (2462, 272))
brick_rect5 = brick.get_rect(topleft = (2526, 272))
brick_rect6 = brick.get_rect(topleft = (2559, 144))
brick_rect7 = brick.get_rect(topleft = (2591, 144))
brick_rect8 = brick.get_rect(topleft = (2623, 144))
brick_rect9 = brick.get_rect(topleft = (2655, 144))
brick_rect10 = brick.get_rect(topleft = (2687, 144))
brick_rect11 = brick.get_rect(topleft = (2719, 144))
brick_rect12 = brick.get_rect(topleft = (2751, 144))
brick_rect13 = brick.get_rect(topleft = (2783, 144))
brick_rect14 = brick.get_rect(topleft = (2911, 144))
brick_rect15 = brick.get_rect(topleft = (2943, 144))
brick_rect16 = brick.get_rect(topleft = (2975, 144))
brick_rect17 = brick.get_rect(topleft = (3199, 272))
brick_rect18 = brick.get_rect(topleft = (3774, 272))
brick_rect19 = brick.get_rect(topleft = (3871, 144))
brick_rect20 = brick.get_rect(topleft = (3903, 144))
brick_rect21 = brick.get_rect(topleft = (3935, 144))
brick_rect22 = brick.get_rect(topleft = (4095, 144))
brick_rect23 = brick.get_rect(topleft = (4159, 144))
brick_rect24 = brick.get_rect(topleft = (4191, 144))
brick_rect25 = brick.get_rect(topleft = (4127, 272))
brick_rect26 = brick.get_rect(topleft = (4159, 272))
brick_rect27 = brick.get_rect(topleft = (5374, 272))
brick_rect28 = brick.get_rect(topleft = (5406, 272))
brick_rect29 = brick.get_rect(topleft = (5470, 272))
coin_brick_rect = brick.get_rect(topleft = (3007, 272))
star_brick_rect = brick.get_rect(topleft = (3231, 272))
coin_list = []
mushroom_list = []
flower_list = []
remove_brick_list = []
drawn_mushroom_list = []
drawn_flower_list = []
empty_brick_list = []
# import rocks
rock_rect1 = pygame.Rect(4286, 368, 32, 32)
rock_rect2 = pygame.Rect(4318, 336, 32, 32)
rock_rect3 = pygame.Rect(4350, 304, 32, 32)
rock_rect4 = pygame.Rect(4382, 272, 32, 32)
rock_rect4_1 = pygame.Rect(4382, 304, 32, 32)
rock_rect4_2 = pygame.Rect(4382, 336, 32, 32)
rock_rect4_3 = pygame.Rect(4382, 368, 32, 32)
rock_rect5 = pygame.Rect(4477, 272, 32, 32)
rock_rect5_1 = pygame.Rect(4477, 304, 32, 32)
rock_rect5_2 = pygame.Rect(4477, 336, 32, 32)
rock_rect5_3 = pygame.Rect(4477, 368, 32, 32)
rock_rect6 = pygame.Rect(4509, 304, 32, 32)
rock_rect7 = pygame.Rect(4541, 336, 32, 32)
rock_rect8 = pygame.Rect(4573, 368, 32, 32)
rock_rect9 = pygame.Rect(4734, 368, 32, 32)
rock_rect10 = pygame.Rect(4766, 336, 32, 32)
rock_rect11 = pygame.Rect(4798, 304, 32, 32)
rock_rect12 = pygame.Rect(4830, 272, 32, 32)
rock_rect13 = pygame.Rect(4862, 272, 32, 32)
rock_rect13_1 = pygame.Rect(4862, 304, 32, 32)
rock_rect13_2 = pygame.Rect(4862, 336, 32, 32)
rock_rect13_3 = pygame.Rect(4862, 368, 32, 32)
rock_rect14 = pygame.Rect(4957, 272, 32, 32)
rock_rect14_1 = pygame.Rect(4957, 304, 32, 32)
rock_rect14_2 = pygame.Rect(4957, 336, 32, 32)
rock_rect14_3 = pygame.Rect(4957, 368, 32, 32)
rock_rect15 = pygame.Rect(4989, 302, 32, 32)
rock_rect16 = pygame.Rect(5020, 336, 32, 32)
rock_rect17 = pygame.Rect(5052, 368, 32, 32)
rock_rect18 = pygame.Rect(5790, 368, 32, 32)
rock_rect19 = pygame.Rect(5822, 336, 32, 32)
rock_rect20 = pygame.Rect(5854, 304, 32, 32)
rock_rect21 = pygame.Rect(5886, 272, 32, 32)
rock_rect22 = pygame.Rect(5918, 240, 32, 32)
rock_rect23 = pygame.Rect(5950, 208, 32, 32)
rock_rect24 = pygame.Rect(5982, 176, 32, 32)
rock_rect25 = pygame.Rect(6014, 144, 32, 32)
rock_rect26 = pygame.Rect(6046, 144, 32, 32)
rock_rect26_1 = pygame.Rect(6046, 176, 32, 32)
rock_rect26_2 = pygame.Rect(6046, 208, 32, 32)
rock_rect26_3 = pygame.Rect(6046, 240, 32, 32)
rock_rect26_4 = pygame.Rect(6046, 272, 32, 32)
rock_rect26_5 = pygame.Rect(6046, 304, 32, 32)
rock_rect26_6 = pygame.Rect(6046, 336, 32, 32)
rock_rect26_7 = pygame.Rect(6046, 368, 32, 32)
rock_rect27 = pygame.Rect(6333, 368, 32, 32)
# Import coin
coin = pygame.image.load("static_images/coin.png")
coin_rect0 = coin.get_rect(midtop = (3023, 272))
coin_rect1 = coin.get_rect(midtop = (527, 272))
coin_rect2 = coin.get_rect(midtop = (752, 272))
coin_rect3 = coin.get_rect(midtop = (719, 144))
coin_rect4 = coin.get_rect(midtop = (3023, 144))
coin_rect5 = coin.get_rect(midtop = (3407, 272))
coin_rect6 = coin.get_rect(midtop = (3502, 272))
coin_rect7 = coin.get_rect(midtop = (3598, 272))
coin_rect8 = coin.get_rect(midtop = (4143, 144))
coin_rect9 = coin.get_rect(midtop = (5455, 272))
coin_brick_list = []
coin_brick_list_mass = []
coin_brick_list_vel = []
# Import mushroom
red_mushroom = pygame.image.load("static_images/red_mushroom.png")
red_mushroom_flip = pygame.transform.flip(red_mushroom, True, False)
red_mushroom_list = [red_mushroom, red_mushroom_flip]
red_mushroom_rect1 = red_mushroom_list[0].get_rect(topleft = (672, 270))
red_mushroom_rect2 = red_mushroom_list[0].get_rect(topleft = (2494, 270))
red_mushroom_rect3 = red_mushroom_list[0].get_rect(topleft = (3486, 142))
# Import empty brick
empty_brick = pygame.image.load("static_images/empty_brick.png")
# Import question block
question_block = []
question_block.append(pygame.image.load("animate_images/question_block0.png"))
question_block.append(pygame.image.load("animate_images/question_block1.png"))
question_block.append(pygame.image.load("animate_images/question_block2.png"))
# Coin box
question_rect1 = question_block[0].get_rect(topleft = (511, 272))
question_rect2 = question_block[0].get_rect(topleft = (736, 272))
question_rect3 = question_block[0].get_rect(topleft = (703, 144))
question_rect4 = question_block[0].get_rect(topleft = (3007, 144))
question_rect5 = question_block[0].get_rect(topleft = (3391, 272))
question_rect6 = question_block[0].get_rect(topleft = (3486, 272))
question_rect7 = question_block[0].get_rect(topleft = (3582, 272))
question_rect8 = question_block[0].get_rect(topleft = (4127, 144))
question_rect9 = question_block[0].get_rect(topleft = (5438, 272))
# Mushroom box
question_rect10 = question_block[0].get_rect(topleft = (672, 272))
question_rect11 = question_block[0].get_rect(topleft = (2494, 272))
question_rect12 = question_block[0].get_rect(topleft = (3486, 144))
hit_box_list = [question_rect1,question_rect2,question_rect3,question_rect4,question_rect5,question_rect6,
question_rect7,question_rect8,question_rect9,question_rect10,question_rect11,question_rect12,
pipe1_rect, pipe2_rect, pipe3_rect, pipe4_rect, pipe5_rect, pipe6_rect, floor1, floor2, floor3, floor4,
brick_rect1, brick_rect2, brick_rect3, brick_rect4, brick_rect5, brick_rect6, brick_rect7,
brick_rect8, brick_rect9, brick_rect10, brick_rect11, brick_rect12, brick_rect13, brick_rect14,
brick_rect15, brick_rect16, brick_rect17, brick_rect18, brick_rect19, brick_rect20, brick_rect21,
brick_rect22, brick_rect23, brick_rect24, brick_rect25, brick_rect26, brick_rect27, brick_rect28,
brick_rect29, coin_brick_rect, star_brick_rect, rock_rect1, rock_rect2, rock_rect3, rock_rect4,
rock_rect5, rock_rect6, rock_rect7, rock_rect8, rock_rect9, rock_rect10, rock_rect11, rock_rect12,
rock_rect13, rock_rect14, rock_rect15, rock_rect16, rock_rect17, rock_rect18, rock_rect19, rock_rect20,
rock_rect21, rock_rect22, rock_rect23, rock_rect24, rock_rect25, rock_rect26, rock_rect27, rock_rect4_1,
rock_rect4_2, rock_rect4_3, rock_rect5_1, rock_rect5_2, rock_rect5_3, rock_rect13_1, rock_rect13_2, rock_rect13_3,
rock_rect14_1, rock_rect14_2, rock_rect14_3, rock_rect26_1, rock_rect26_2, rock_rect26_3, rock_rect26_4,
rock_rect26_5, rock_rect26_6, rock_rect26_7]
mushroom_hit_box_list_x = [rock_rect1, pipe1_rect]
mushroom_hit_box_list_y = [question_rect2, question_rect7, question_rect10, question_rect11, question_rect12,
brick_rect2, brick_rect3, brick_rect5, floor1, floor2, floor3, floor4]
# Import star
star = []
star.append(pygame.image.load("animate_images/star0.png"))
star.append(pygame.image.load("animate_images/star1.png"))
star.append(pygame.image.load("animate_images/star2.png"))
star.append(pygame.image.load("animate_images/star3.png"))
star_rect = star[0].get_rect(topleft = (3231, 270))
# Import flower
flower = []
flower.append(pygame.image.load("animate_images/flower0.png"))
flower.append(pygame.image.load("animate_images/flower1.png"))
flower.append(pygame.image.load("animate_images/flower2.png"))
flower.append(pygame.image.load("animate_images/flower3.png"))
flower_rect1 = flower[0].get_rect(topleft = (672, 270))
flower_rect2 = flower[0].get_rect(topleft = (2494, 270))
flower_rect3 = flower[0].get_rect(topleft = (3486, 142))
# Import small invincible
small_a = [pygame.image.load("animate_images/small_invincible1_0.png"), pygame.image.load("animate_images/small_invincible2_0.png"),
pygame.image.load("animate_images/small_invincible3_0.png"), pygame.image.load("animate_images/small_invincible2_0.png"),
pygame.image.load("animate_images/small_invincible0_0.png"), pygame.image.load("animate_images/small_invincible_jump0_0.png")]
small_b = [pygame.image.load("animate_images/small_invincible1_1.png"), pygame.image.load("animate_images/small_invincible2_1.png"),
pygame.image.load("animate_images/small_invincible3_1.png"), pygame.image.load("animate_images/small_invincible2_1.png"),
pygame.image.load("animate_images/small_invincible0_1.png"), pygame.image.load("animate_images/small_invincible_jump0_1.png")]
small_c = [pygame.image.load("animate_images/small_invincible1_2.png"), pygame.image.load("animate_images/small_invincible2_2.png"),
pygame.image.load("animate_images/small_invincible3_2.png"), pygame.image.load("animate_images/small_invincible2_2.png"),
pygame.image.load("animate_images/small_invincible0_2.png"), pygame.image.load("animate_images/small_invincible_jump0_2.png")]
small_invincible_list = [small_a, small_b, small_c]
small_a_flip = []
for i,small_invincible in enumerate(small_a):
small_a_flip.append(pygame.transform.flip((small_a[i]), True, False))
small_b_flip = []
for i,small_invincible in enumerate(small_b):
small_b_flip.append(pygame.transform.flip((small_b[i]), True, False))
small_c_flip = []
for i,small_invincible in enumerate(small_c):
small_c_flip.append(pygame.transform.flip((small_c[i]), True, False))
small_invincible_flip = [small_a_flip, small_b_flip, small_c_flip]
# Import big invincible
big_a = [pygame.image.load("animate_images/invincible1_0.png"), pygame.image.load("animate_images/invincible2_0.png"),
pygame.image.load("animate_images/invincible3_0.png"), pygame.image.load("animate_images/invincible2_0.png"),
pygame.image.load("animate_images/invincible0_0.png"), pygame.image.load("animate_images/invincible_jump0_0.png")]
big_b = [pygame.image.load("animate_images/invincible1_1.png"), pygame.image.load("animate_images/invincible2_1.png"),
pygame.image.load("animate_images/invincible3_1.png"), pygame.image.load("animate_images/invincible2_1.png"),
pygame.image.load("animate_images/invincible0_1.png"), pygame.image.load("animate_images/invincible_jump0_1.png")]
big_c = [pygame.image.load("animate_images/invincible1_2.png"), pygame.image.load("animate_images/invincible2_2.png"),
pygame.image.load("animate_images/invincible3_2.png"), pygame.image.load("animate_images/invincible2_2.png"),
pygame.image.load("animate_images/invincible0_2.png"), pygame.image.load("animate_images/invincible_jump0_2.png")]
big_invincible_list = [big_a, big_b, big_c]
big_a_flip = []
for i,big_invincible in enumerate(big_a):
big_a_flip.append(pygame.transform.flip((big_a[i]), True, False))
big_b_flip = []
for i,big_invincible in enumerate(big_b):
big_b_flip.append(pygame.transform.flip((big_b[i]), True, False))
big_c_flip = []
for i,big_invincible in enumerate(big_c):
big_c_flip.append(pygame.transform.flip((big_c[i]), True, False))
big_invincible_flip = [big_a_flip, big_b_flip, big_c_flip]
# Import bigmario
bigmario_list = []
bigmario_list.append(pygame.image.load("animate_images/bigmario0.png"))
bigmario_list.append(pygame.image.load("animate_images/bigmario1.png"))
bigmario_list.append(pygame.image.load("animate_images/bigmario2.png"))
bigmario_list.append(pygame.image.load("animate_images/bigmario1.png"))
bigmario_list.append(pygame.image.load("static_images/bigmario.png"))
bigmario_list.append(pygame.image.load("static_images/bigmario_jump.png"))
bigmario_flip = []
for i,animation in enumerate(bigmario_list):
bigmario_flip.append(pygame.transform.flip((bigmario_list[i]), True, False))
bigmario_rect = bigmario_list[4].get_rect(bottomleft = (mario_rect.left, mario_rect.bottom))
add_h = bigmario_list[4].get_height() - mario_rect.h
add_w = bigmario_list[4].get_width() - mario_rect.w
# Import firemario
firemario_list = []
firemario_list.append(pygame.image.load("animate_images/firemario0.png"))
firemario_list.append(pygame.image.load("animate_images/firemario1.png"))
firemario_list.append(pygame.image.load("animate_images/firemario2.png"))
firemario_list.append(pygame.image.load("animate_images/firemario1.png"))
firemario_list.append(pygame.image.load("static_images/firemario.png"))
firemario_list.append(pygame.image.load("static_images/firemario_jump.png"))
firemario_flip = []
for i,animation in enumerate(firemario_list):
firemario_flip.append(pygame.transform.flip((firemario_list[i]), True, False))
###############
#Mario animation
animation_list = []
animation_list.append(pygame.image.load("animate_images/mario0.png"))
animation_list.append(pygame.image.load("animate_images/mario1.png"))
animation_list.append(pygame.image.load("animate_images/mario2.png"))
animation_list.append(pygame.image.load("animate_images/mario1.png"))
animation_list.append(pygame.image.load("static_images/mario.png"))
animation_list.append(pygame.image.load("static_images/mario_jump.png"))
marioflip = []
for i,animation in enumerate(animation_list):
marioflip.append(pygame.transform.flip((animation_list[i]), True, False))
#sounds
big_jump_sound = pygame.mixer.Sound('sounds/big_jump.ogg')
small_jump_sound = pygame.mixer.Sound('sounds/small_jump.ogg')
small_jump_sound.set_volume(0.5)
# mario_dead = pygame.mixer.Sound('music/dead.wav')
main_theme_speedup = pygame.mixer.Sound('music/main_theme_speed_up.ogg')
game_over_song = pygame.mixer.Sound('music/game_over.ogg')
brick_smash_sound = pygame.mixer.Sound('sounds/brick_smash.ogg')
bump_sound = pygame.mixer.Sound('sounds/bump.ogg')
stomp_sound = pygame.mixer.Sound('sounds/stomp.ogg')
coin_sound = pygame.mixer.Sound('sounds/coin.ogg')
powerup_pop_sound = pygame.mixer.Sound('sounds/powerup_pop.ogg')
powerup_eat_sound = pygame.mixer.Sound('sounds/powerup_eat.ogg')
mario_kick_sound = pygame.mixer.Sound('sounds/kick.ogg')
fireball_sound = pygame.mixer.Sound('sounds/fireball.ogg')
invincible_music = pygame.mixer.Sound('music/invincible.ogg')
pipe_sound = pygame.mixer.Sound('sounds/pipe_sound.ogg')
powerup_eat_length = powerup_eat_sound.get_length()
game_over_song_length = game_over_song.get_length() * 1000
transform_interval = 5
# Tarun's fireball
fireBall_list = []
fireBall_list.append(pygame.image.load("animate_images/fire0.png"))
fireBall_list.append(pygame.image.load("animate_images/fire1.png"))
fireBall_list.append(pygame.image.load("animate_images/fire2.png"))
fireBall_list.append(pygame.image.load("animate_images/fire3.png"))
fireBall_rect_list = [None, None]
fireHit_animation = []
fireHit_animation.append(pygame.image.load("animate_images/fire_exploded0.png"))
fireHit_animation.append(pygame.image.load("animate_images/fire_exploded1.png"))
fireHit_animation.append(pygame.image.load("animate_images/fire_exploded2.png"))
fireExploded = [False, False]