Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/virtuesky/thebeginning_2

Help you make the game easier! (Android & iOS)
https://github.com/virtuesky/thebeginning_2

game-core gamebase singleton singleton-pattern unity unity3d-games

Last synced: about 24 hours ago
JSON representation

Help you make the game easier! (Android & iOS)

Awesome Lists containing this project

README

        

# Base Game Unity (Android & iOS)
- Unity 2022.3 (LTS)

Description: Gamebase for mobile hyper casual, casual game

(Use: [Sunflower2 Package](https://github.com/wolf-org/sunflower_2))

- GameFlow

```mermaid
flowchart TB
subgraph LauncherScene[" Launcher Scene"]
Loading(Loading)
end

subgraph ServiceScene[" Service Scene"]
Initialization(Initialization)
SceneLoader(SceneLoader)
LevelLoader(LevelLoader)
AudioManager(AudioManager)
VisualEffectsSpawner(VisualEffectsSpawner)
Advertising(Advertising)
IapManager(IapManager)
end

subgraph GameScene[" Game Scene"]
GameManager(GameManager)
PopupManager(PopupManager)
end

GameScene --> AudioManager --> SoundComponent{{Pooling: SoundComponent-AudioSource}}

Loading --Load (LoadSceneMode.Additive)--> ServiceScene
Loading --> LoadGameScene --> SceneLoader --Load--> GameScene
GameManager --> StartGame{Start Game} --> LevelLoader --Instantiate--> Level(Level)
PopupManager --Show PopupInGame--> StartGame
Level --Win Level--> WinGame{Win Game} --Next Level-->GameManager
Level --Lose Level--> LoseGame{Lose Game} --Replay or Skip Level-->GameManager
Level --Replay Level--> ReplayGame{Replay Game}
ReplayGame --Replay Level--> GameManager
PopupManager --Show PopupWin--> WinGame
PopupManager --Show PopupLose--> LoseGame
```

## Note
### GameConfig Window
- Shortcut (`Ctrl + ~` or `Command + ~`) to open GameConfig Window

![Screenshot 2024-07-26 093159](https://github.com/user-attachments/assets/11ac42bb-3ea1-489b-afe6-00fabd409ec0)

- Open the `GameConfig` script to add or edit configs,

![Screenshot 2024-07-26 093403](https://github.com/user-attachments/assets/10b0a2ce-7f34-48ea-b6fe-487b640c3cbf)

### DebugView

- Enable Debug View `true` in GameConfig window
- Swipe up on the edge (left or right) of the screen to open (shortcut in editor (`Alt+D` or `Option+D`))

![Unity_9YRD8rJRE1](https://github.com/user-attachments/assets/73692ff8-918a-4721-bd7b-c380d4a9cb14)