Enemy
This module is part of the dungeon_gui package, for the graphical representation of the dungeon
- class Enemy.Enemy(damage, enemy_tileset=<Surface(512x256x32 SW)>)
Bases:
objectThis class describes the representation of the Enemy Object
- kill()
Sets the killed attribute to True
- render_enemy(screen, room_x, room_y, scale_factor)
Rendering of the Enemy Object on the screen using a tile set
Parameters
- param screen:
Screen where dungeon_gui runs
- type screen:
pygame Surface
- param room_x:
X Room position on the screen
- type room_x:
int
- param room_y:
Y Room position on the screen
- type room_y:
int
- param scale_factor:
Object scale factor
- type scale_factor:
int