https://github.com/der3318/flipping-cubes
Unity3D - Simple Puzzle Game
https://github.com/der3318/flipping-cubes
puzzle-game unity3d
Last synced: about 2 months ago
JSON representation
Unity3D - Simple Puzzle Game
- Host: GitHub
- URL: https://github.com/der3318/flipping-cubes
- Owner: der3318
- License: mit
- Created: 2020-08-02T09:49:13.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-05T16:13:04.000Z (over 4 years ago)
- Last Synced: 2025-01-13T18:33:49.867Z (3 months ago)
- Topics: puzzle-game, unity3d
- Language: ShaderLab
- Homepage:
- Size: 1.99 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 🧩 Flipping Cubes




This is a simple puzzle game intrudocued and demonstrated by Mr. Chien in Taiwan Puzzle Community (TPC) 2020. Players try to move the combination of four cubes to some specific targets by flipping them iteratively.

### 📜 Rules
1. Flip the cubes using keyboard.
2. For each stage, try to move the cubes to the correct place with corresponding colors.
3. The moving area is restricted to the map itself and the remaining spaces.
4. The less steps you use, the better ranking you get.### ▶️ Getting Started
Pre-built binaries can be found in [released zip](https://github.com/der3318/flipping-cubes/releases/download/v0.2.0/FlippingCubes.zip). Double click FlippingCubes.exe to start a game. Game stages and score board can be added or modified by changing the txt configuration files:| GameSettings/ | Usage |
| :- | :- |
| Background.jpg | background image including score board area |
| ScoreBoard.txt | all the socres are stored here having one socre per line |
| Stage{0,1:D3}.txt | stage info indicating the target postion of red, green, blue and yellow cube respectively |### ⚙ Unity Scripts
The game is built under Unity3D engine. Here is an overview of the main scripts:| Assets/ | Description |
| :- | :- |
| [Cubes.cs](https://github.com/der3318/flipping-cubes/blob/master/Assets/Cubes.cs) | input control, boundary check and flipping logic |
| [GameMap.cs](https://github.com/der3318/flipping-cubes/blob/master/Assets/GameMap.cs) | dynamic map genration with different styles of tiles |
| [GameSettings.cs](https://github.com/der3318/flipping-cubes/blob/master/Assets/GameMap.cs) | global game settings, status and IO operations |
| [ScoreBoard.cs](https://github.com/der3318/flipping-cubes/blob/master/Assets/ScoreBoard.cs) | score board updating |
| [StepCount.cs](https://github.com/der3318/flipping-cubes/blob/master/Assets/StepCount.cs) | step counting |### 🔗 Referenced Resources
| Name |Site | Description |
| :- | :- | :- |
| VectorStock | https://www.vectorstock.com/ | background image |
| CoolText | https://cooltext.com/ | font family |
| IconFinder | https://www.iconfinder.com/ | launcher icon |