Skip to content

Commit

Permalink
add 5 levels
Browse files Browse the repository at this point in the history
  • Loading branch information
dgomes committed Oct 15, 2019
1 parent 08a54a2 commit d80cebf
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
6 changes: 6 additions & 0 deletions characters.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,3 +194,9 @@ def __init__(self, pos):
super().__init__(
pos, self.__class__.__name__, 2000, Speed.SLOW, Smart.NORMAL, True
)

class Pass(Enemy):
def __init__(self, pos):
super().__init__(
pos, self.__class__.__name__, 4000, Speed.FAST, Smart.HIGH, False
)
12 changes: 11 additions & 1 deletion game.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import requests

from characters import Balloom, Bomberman, Character, Doll, Minvo, Oneal, Kondoria, Ovapi
from characters import Balloom, Bomberman, Character, Doll, Minvo, Oneal, Kondoria, Ovapi, Pass
from consts import Powerups
from mapa import Map, Tiles

Expand All @@ -31,6 +31,11 @@
8: [Oneal] * 1 + [Doll] * 2 + [Minvo] * 4,
9: [Oneal] * 1 + [Doll] * 1 + [Minvo] * 4 + [Kondoria] * 1,
10: [Oneal] * 1 + [Doll] * 1 + [Minvo] * 1 + [Kondoria] * 3 + [Ovapi] * 1,
11: [Oneal] * 1 + [Doll] * 2 + [Minvo] * 3 + [Kondoria] * 1 + [Ovapi] * 1,
12: [Oneal] * 1 + [Doll] * 1 + [Minvo] * 1 + [Kondoria] * 4 + [Ovapi] * 1,
13: [Doll] * 3 + [Minvo] * 3 + [Kondoria] * 3,
14: [Ovapi] * 7 + [Pass] * 1,
15: [Doll] * 1 + [Minvo] * 3 + [Kondoria] * 3 + [Pass] * 1,
}

LEVEL_POWERUPS = {
Expand All @@ -44,6 +49,11 @@
8: Powerups.Detonator,
9: Powerups.Bombpass,
10: Powerups.Wallpass,
11: Powerups.Bombs,
12: Powerups.Bombs,
13: Powerups.Detonator,
14: Powerups.Bombpass,
15: Powerups.Flames,
}


Expand Down
8 changes: 7 additions & 1 deletion viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,13 @@
"down": (2 * 16, 20 * 16),
"right": (3 * 16, 20 * 16),
}
ENEMIES = {"Balloom": BALLOOM, "Oneal": ONEAL, "Doll": DOLL, "Minvo": MINVO, "Kondoria": KONDORIA, "Ovapi": OVAPI}
PASS = {
"up": (0, 21 * 16),
"left": (16, 21 * 16),
"down": (2 * 16, 21 * 16),
"right": (3 * 16, 21 * 16),
}
ENEMIES = {"Balloom": BALLOOM, "Oneal": ONEAL, "Doll": DOLL, "Minvo": MINVO, "Kondoria": KONDORIA, "Ovapi": OVAPI, "Pass": PASS}
POWERUPS = {"Bombs": (0, 14 * 16), "Flames": (1 * 16, 14 * 16), "Detonator": (4 * 16, 14 * 16)}
STONE = (48, 48)
WALL = (64, 48)
Expand Down

0 comments on commit d80cebf

Please sign in to comment.