vectorvorti.blogg.se

Idle oil tycoon clone
Idle oil tycoon clone




idle oil tycoon clone

It calculates a worker's speed and capacity and the cost to upgrade based on its current level, which can be upgraded if the player has sufficient cash (stored in a CashStore object discussed below).Ī pipeline has multiple Worker objects (more than one should only come into play in the Tunnel and Depot pipelines).

idle oil tycoon clone

Pipeline is an abstract class with three implementations: Tunnel, Mine, and Depot, which each have some domain-specific overrides and extra functionality.Ī pipeline has several values which affect the efficiency of its workers, stored in a class called PipelineStatus, which is also responsible for upgrades to this efficiency. Each Pipeline also serves as a source to a parent Pipeline. The structure of the mining system in Dan Miner Tycoon is best described as a series of nested Pipeline objects.Ī Pipeline describes a class representing a system with a number of sources containing resources, a number of workers to extract these resources, a sink to deposit the resources in, and a manager to oversee them. This will mainly describe the C# code, and not the structure of the Unity scene and assets. The following document gives an overview of the project's structure, and some notes on implementation details. Enclosed is my clone of Idle Miner Tycoon, developed in Unity 2017.3 over two days.






Idle oil tycoon clone