-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathboss.py
More file actions
43 lines (34 loc) · 1.05 KB
/
boss.py
File metadata and controls
43 lines (34 loc) · 1.05 KB
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
'''This is boss.py'''
from board import BOARD
class Boss():
'''Create boss'''
bosstime = 0
x = 25
y = 460
Health = 5
@classmethod
def print_on_board(cls, xps, yps):
'''print boss'''
BOARD.mat[xps][yps] = '\\'
BOARD.mat[xps][yps + 1] = '/'
BOARD.mat[xps - 1][yps + 2] = '_'
BOARD.mat[xps][yps + 3] = '\\'
BOARD.mat[xps][yps + 4] = '/'
BOARD.mat[xps - 1][yps] = '|'
BOARD.mat[xps - 2][yps] = '|'
BOARD.mat[xps - 3][yps] = '|'
BOARD.mat[xps - 1][yps + 4] = '|'
BOARD.mat[xps - 2][yps + 4] = '|'
BOARD.mat[xps - 3][yps + 4] = '|'
BOARD.mat[xps - 2][yps + 1] = '^'
BOARD.mat[xps - 2][yps + 2] = '^'
BOARD.mat[xps - 2][yps + 3] = '^'
BOARD.mat[xps - 3][yps + 1] = 'o'
BOARD.mat[xps - 3][yps + 3] = 'o'
BOARD.mat[xps - 4][yps + 1] = '_'
BOARD.mat[xps - 4][yps + 2] = '_'
BOARD.mat[xps - 4][yps + 3] = '_'
def pos(self):
'''return position'''
pass
BOSS = Boss()