Update 'README.md'

This commit is contained in:
Marco Salazar 2021-10-09 18:46:47 +00:00
parent 9f99a6a731
commit 554e7ab269

View File

@ -4,13 +4,31 @@ An infitite runner game powered by Firo.
## Getting Started ## Getting Started
This project is a starting point for a Flutter application. To build follow tutorials on setting up a flutter development enviornment.
A few resources to get you started if this is your first Flutter project: Once you can build a default flutter application, you should be able to build the program.
- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) Simply git clone this repository, and open it up in an editor of your choice whether Android Studio or Visual Code, and if you have flutter and Dart plugins installed you should be able to build for any device.
- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
For help getting started with Flutter, view our If solely using the command line
[online documentation](https://flutter.dev/docs), which offers tutorials, 1) set up your flutter development enviornment
samples, guidance on mobile development, and a full API reference. 2) git clone the repository
3) go into repository with terminal
4) type: flutter pub get
5) type depending on what device you are building for:
```
flutter build apk --bundle-sksl-path flutter_01.sksl.json --release
// or
flutter build web --web-renderer canvaskit --release
```
To connect to the server in tournament mode, set the variables in main.dart to the correct values of the server
```
const SERVER = "http://serveripaddress";
const PORT = "portnumber";
```
If you are not interested in playing in tournament mode, simply set the following variable to true in main.dart
```
const NO_TOURNAMENT = true;
```