A downloadable game

Unity Play | Squirrel Game game

In this project, I applied encapsulation - each class manages its own data. For example, GameGui.cs controls points and coins, while PlayerMovement.cs handles movement. Inheritance - GenericGem.cs serves as the base class, from which Gem.cs and GoldenGem.cs inherit, ensuring shared logic doesn't need to be rewritten in each individual class. Polymorphism - the CollectMyself() method is overridden in each collectible class, allowing Gem to add points while GoldenGem increases the coin count (golden gem). Abstraction - the GenericGem class contains an abstract method that defines the collectible structure without specifying logic, allowing each object to customize its behavior.

Published 3 days ago
StatusReleased
Authorbeateb