Skip to content

Commit

Permalink
Update README.md to recent changes (#1247)
Browse files Browse the repository at this point in the history
* Update README.md to recent changes

* Fix typo

* Remove backend's docs

* Add mdbook generation to makefile

* Remove simulating_latency.md

* Update summary

* Remove mix config
  • Loading branch information
ncontinanza committed Dec 15, 2023
1 parent cd4f0fa commit f9f9d98
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 373 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
.PHONY: gen-client-protobuf gen-protobuf
.PHONY: gen-client-protobuf gen-protobuf docs

gen-protobuf: gen-client-protobuf

gen-client-protobuf:
protoc --csharp_out=./ communication/messages.proto
mv Messages.cs client/Assets/Scripts/Messages.pb.cs
mv Messages.cs client/Assets/Scripts/Messages.pb.cs

docs:
cd docs && mdbook serve --open
41 changes: 7 additions & 34 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@
- [Licensing](#licensing)
- [Requirements](#requirements)
- [Suggested Development Environment](#suggested-development-environment)
- [Project Setup](#project-setup)
- [Unity Setup](#unity-setup)
- [Project and Unity Setup](#project-and-unity-setup)
- [Running the Backend](#running-the-backend)
- [Useful Commands](#useful-commands)
- [Documentation](#documentation)
- [Contact and Socials](#contact-and-socials)

Expand Down Expand Up @@ -73,20 +71,14 @@ Set up your environment with the following steps:

Your code should now autocomplete.

## Project Setup

Ensure Docker is running and execute the following commands:
## Project and Unity Setup
- Open a terminal and clone the project:

```bash
git clone https://github.com/lambdaclass/curse_of_myrra
cd curse_of_myrra/server
make db
make setup
```

## Unity Setup

- In Unity Hub, click on the add project button and select the `client` folder.
- In Unity Hub, click on the add project button and select the `curse_of_myrra/client` folder.
- Choose the correct editor version and download the [Top Down Engine](https://assetstore.unity.com/packages/templates/systems/topdown-engine-89636) by [More Mountains](https://moremountains.com). Include it in the `Assets/ThirdParty` folder after purchasing the license.
- To test the game, select the scene in `Assets/Scenes/TitleScreen` and run it by clicking the play button.

Expand All @@ -95,31 +87,13 @@ make setup
For local testing, use the [game backend](https://github.com/lambdaclass/game_backend). Ensure Docker is running and execute:

```bash
git clone https://github.com/lambdaclass/game_backend
make db
make setup
make start
```

Remember to set ```localhost``` as the server.

## Useful Commands

```bash
make tests
```

Will run Elixir and Rust tests

```bash
make format
```

Will format Elixir and Rust code.

```bash
make prepush
```

Will format your code and run Credo check and tests.

## Documentation

Explore our documentation [here](https://docs.curseofmyrra.com/) or run it locally. To run locally, install:
Expand All @@ -139,7 +113,6 @@ Open: [http://localhost:3000/](http://localhost:3000/ios_builds.html)

Some key documentation pages:

- [Backend architecture](https://docs.curseofmyrra.com/backend_architecture.html)
- [Message protocol](https://docs.curseofmyrra.com/message_protocol.html)
- [Android build](https://docs.curseofmyrra.com/android_builds.html)
- [IOs builds](https://docs.curseofmyrra.com/ios_builds.html)
Expand Down
4 changes: 0 additions & 4 deletions docs/src/SUMMARY.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
# Summary

- [Backend Architecture](./backend_architecture.md)
- [Message Protocol](./message_protocol.md)
- [Game Settings](./game_settings.md)
- [Data Fileguides](./data_fileguides.md)
- [Android Build](./android_builds.md)
- [IOS Build](./ios_builds.md)
- [WebGL Builds](./webgl_builds.md)
- [Fluid gameplay in an online environment](./fluid_gameplay.md)
- [Simulating high latency](./simulating_latency.md)
- [Common Pitfalls](./common_pitfalls.md)
- [Unity Animations](./animations.md)
- [Skill animations](./skill.md)
Expand All @@ -18,4 +15,3 @@
- [Client Player feedbacks](./client_feedbacks.md)
- [How to add new Feedbacks](./how_to_add_feedbacks.md)
- [How to add documentation](./add_documentation.md)
- [Metrics and monitoring](./metrics-and-monitoring.md)
220 changes: 0 additions & 220 deletions docs/src/backend_architecture.md

This file was deleted.

46 changes: 0 additions & 46 deletions docs/src/benchmarking.md

This file was deleted.

13 changes: 0 additions & 13 deletions docs/src/metrics-and-monitoring.md

This file was deleted.

Loading

0 comments on commit f9f9d98

Please sign in to comment.