A downloadable game

https://play.unity.com/en/games/6285bc47-9349-4974-80a7-5fa6c4703d07/fox-run-cav...


Object-oriented programming principles used:

1. Encapsulation. Important variables such as score, jump, and speed are private or protected, and access to them is provided through controlled methods.

2. Inheritance. The Coin class inherits from the abstract base class Collectible, sharing and extending its behavior.

3. Polymorphism. The Collect() method is defined in the base class and overridden in the child classes, providing flexible behavior (for coins, keys, bonuses, etc.).

4. Abstraction. The base class Collectible provides a generalized interface (Collect()), hiding the specific implementation from the rest of the code.

Published 15 days ago
StatusReleased
AuthorKannych

Download

Download
2D-Animation-template.zip 844 MB

Leave a comment

Log in with itch.io to leave a comment.