Dummyrunner / LandingGame

MIT License
0 stars 0 forks source link

Pass image as argument to object #4

Closed Dummyrunner closed 2 weeks ago

Dummyrunner commented 2 weeks ago

Description

Object dynamics should not depend on their respective visual representation. Hence, when creating the object, pass the visualization (called image, being a pygame.Surface object) to the object constructor (see "Dependency Injection Design Pattern").

Changes

How to Test