Simple Clicker Game is incremental game that focused on production and consumption cycle.
Game entry point is placed on scene as Bootstrapper. It creates new GameStateMachine and this load all needed services and load saved data if it exists. States in that state machine divided by their functional. There are 3 in total:
- InitServices state - loads all services that needed game to work.
- Init state - loads saved data or creating new and generating presenters for game elements.
- GameLoop state - linking popup show invokes to generator production ended events and saves progress when player exit game.
Game elements
- Resource - value that player increasing and spend. Has image and description.
- Generator - thing that produces resources. Has image, description, productivity and level. Can be upgraded by spending resources.
- Manager - thing that automatize generators. Has image, description, linked generator and resource cost. Allows generators to produce resources while player offline.
Services
- LoaderService - loads game assets by their type.
- PopupService - shows popups in needed position.
- BuyService - controls buy amount.
- InformationService - shows information about item when player click on [i] button.
You can change and adjust this game as you want.
All static data contains in Assets/Data/Resources/StaticData/StaticDataContainer.asset
You can download actual build on:
fzfking-SimpleClickerGame is distributed under the MIT license.