top of page

Create Your First Project

Start adding your projects to your portfolio. Click on "Manage Projects" to get started

Monkey Tower Defense

Link

Expanding my game dev toolkit with Singleton Design Pattern, Service Locator, and Dependency Injection Programming Technique in my Monkey Tower Defense project.

1️⃣ Singleton Pattern:
-Maintaining order with a single instance for vital services.
-Ensures control and simplicity in the game's foundation.
-Ideal for rapid prototyping to make things work swiftly. However, it can lead to high coupling in the code.

2️⃣ Service Locator:
-Central hub for services, enhancing flexibility.
-Reducing singleton instances for a modular, scalable game architecture.
-Mostly suitable for mid-scale projects where a game service acts as a unified singleton class providing every service in one place. However, it can make unit testing challenging because of single Game Service singleton class.

3️⃣ Dependency Injection:
-Suitable for unit testing, injecting dependencies.
-Liberated from excessive singletons for cleaner, adaptable code.
-Especially beneficial for large projects with diverse functions that require rigorous unit testing. Dependency Injection makes the code singleton-free, fostering easier testing.

bottom of page