https://github.com/mrk21/minecraft-clone
Enjoying creating a game like Minecraft!
https://github.com/mrk21/minecraft-clone
unity
Last synced: 2 months ago
JSON representation
Enjoying creating a game like Minecraft!
- Host: GitHub
- URL: https://github.com/mrk21/minecraft-clone
- Owner: mrk21
- License: mit
- Created: 2017-04-21T14:44:50.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-05-09T18:13:38.000Z (about 6 years ago)
- Last Synced: 2025-01-20T04:18:56.578Z (over 1 year ago)
- Topics: unity
- Language: C#
- Homepage: https://minecraft-clone.mrk21.app
- Size: 1.35 MB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Minecraft Clone


## Dependencies
### Middlewares/Tools
* Unity: 6000.0.37f1
* ImageMagick
* Ruby
* direnv
* Docker: >= 27.3.1
* docker-compose: >= v2.29.7-desktop.1
### Optional
* gettext
* for envsubst
### Assets
* [UniRx](https://assetstore.unity.com/packages/tools/integration/unirx-reactive-extensions-for-unity-17276): 7.1.0
## Setup
Execute the following commands on WSL:
```sh
# Set your config
cp .envrc.local.sample .envrc.local
vi .envrc.local
direnv allow .
# Activation
unity -createManualActivationFile
## Upload the manual activation file on https://license.unity3d.com/manual
unity -manualLicenseFile ${ULF_FILE}
# Import Assets
unity -executeMethod ImportAssets.Import
# Generate Texture
generate_texture
```
## Development
### Unity batch commands
```sh
# Create activation file
unity -createManualActivationFile
# Create activation file(for docker/CI)
unity -createManualActivationFile -username -password
# Activation
unity -manualLicenseFile ${ULF_FILE}
# Import assets
unity -executeMethod ImportAssets.Import /basePath /path/to/assets
# Build app
unity -executeMethod Builder.BuildWebGL
```
### WebGL
```sh
# Build docker image
docker compose build
# Build WebGL app
unity -executeMethod Builder.BuildWebGL
# Boot WebGL app
docker compose up
```
### Deploy to Firebase
```sh
make_firebaserc
firebase deploy
```
## Documentation
* [Minecraft clone design | mrk21 Kibela](https://mrk21.kibe.la/shared/entries/3d340747-4142-4568-9d78-d0ce494ca9d7)
* [Minecraft clone memo | mrk21 Kibela](https://mrk21.kibe.la/shared/entries/294c5ea1-70db-40ca-a455-7f3266158789)
* [【Unity】Unityでメモリリーク発生?原因と調査方法について – 株式会社ロジカルビート](https://logicalbeat.jp/blog/15426/)
* [UnityのPersonalライセンスで.ulfファイルをダウンロードする方法(2024/6時点)](https://zenn.dev/hirosukekayaba/articles/067693ad146d18)