A shooting game which you play as the last turtle(green turtle) in the turtleland shooting a zombie turtle(red turtle) to survive as long as you can by the enemy is come from 4 direction north, east, west and south. The enemy will chase player until they died or player shoot them(count score when enemy died). When they hit player a player's HP will decrease .When player score reach defined score player will level up. after level up hp will increase max hp and reset to max hp
press w,a,s,d for control press enter for shoot bullet
- turtle
- random
- python 3.10
attribute
- level : int
- hp : int
- atk : int
method
- setter
- getter
- cal_stat - calculate player stat when level up
- move_right
- move_left
- move_up
- move_down
- get_coordinate - return x,y coordinate
- enemy_hit - decrease player hp when hit enemy and return if player.hp = 0
attribute
- player : player class
- state : boolean
- all_enemy : list of enemy object
- score : Score class
- uidisplay : UIdisplay class
method
- getter
- setter
- move - move bullet
- bullet_hit - return if bullet hit enemy
attribute
- start_point : list
- atk : int
- hp : int
- player : Player class
method
- getter
- setter
- move_to_player - move enemy to player
attribute
- score : int
- score_player_cal : int
method
- getter
- setter
attribute
- score : Score class
- uidisplay : UIdisplay class
- player : Player class
method
- write - write player's statistic
- read - read data
attribute
- player : Player class
- all_enemy : list of Enemy object
- score : score class
- show_score_list : list
- show_hp_list : list
- show_level_list : list
- name : str
method
- getter
- setter
- show_score
- show_hp
- show_level
- name_showing
this game contain 7 file is
- main.py
- player.py
- bullet.py
- enemy.py
- scores.py
- static_score.py
- data.txt