Sean-Nishi / M1Wengine

A action-adventure game developed with Python 3.11.1 and pygame. Complete missions before timer expires.
3 stars 0 forks source link

Create PlayerActionIcon #369

Open Sean-Nishi opened 10 months ago

Sean-Nishi commented 10 months ago

Create generic ActionIcon class, inherit from Entity. In constructor takes in Action Enum then compares action enum to then makes itself an appropriate instance of one of the child classes 3 Children are simple, only contains path to image icon to be displayed. Has movement methods from Entity ThrowActionIcon, EatActionIcon, DestroyActionIcon all inherit. Constructor has hard coded image path