https://github.com/extrawest/slot_machine_game_prototype
Flutter Slot Machine Game Prototype
https://github.com/extrawest/slot_machine_game_prototype
777 dart flutter flutter-web game prototype slot slot-machine
Last synced: 2 months ago
JSON representation
Flutter Slot Machine Game Prototype
- Host: GitHub
- URL: https://github.com/extrawest/slot_machine_game_prototype
- Owner: extrawest
- Created: 2023-01-16T11:42:30.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-16T11:46:00.000Z (over 2 years ago)
- Last Synced: 2025-03-30T17:46:38.536Z (6 months ago)
- Topics: 777, dart, flutter, flutter-web, game, prototype, slot, slot-machine
- Language: Dart
- Homepage: https://lucky-slot-machine-game.web.app/
- Size: 1.21 MB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Slot Machine Game
[]()
[](mailto:roman.ovsepian@extrawest.com)
[]()

## PROJECT INFO
- **Slot Machine Game based on Flutter v3.3.9**
- **Game is properly working on Android, iOS and WEB**## Features
- Slot machine (flutter_slot_machine package)
- Different lotties effects based on the prize type
- Shaders warming up## Demo
[Slot Machine Game](https://lucky-slot-machine-game.web.app)
### Installing:
**1) Clone this repo to your folder:**
```
git clone https://gitlab.extrawest.com/i-training/flutter/slot_machine_game
```**2. Change current directory to the cloned folder:**
```
cd slot_machine_game
```**3) Get packages**
```
flutter pub get
```## Firebase hosting
1. In order to add new build to Firebase hosting, follow these commands
```shell
firebase login
```
```shell
firebase init
```
2. Choose account, then choose Hosting as an option
3. Select Firebase project
4. Run:
```shell
flutter build web
```
```shell
firebase deploy
```### Integration test
In order to run integration test you have to:
1. Use test_driver located at `test_driver/integration_test.dart`.
2. Add enviromental variables API_KEY(for google maps) and IS_TESTING through --dart-define
3. (Optional) Use shader warming up to collect shaders to `flutter_01.sksl.json`So, to run integration test, run the following command:
Without shaders warming up
```shell
flutter drive --driver=test_driver/integration_test.dart --target=integration_test/app_test.dart
```With shaders warming up
```shell
flutter drive --profile --cache-sksl --write-sksl-on-exit flutter_01.sksl.json --driver=test_driver/integration_test.dart --target=integration_test/app_test.dart
```### To build release version with shaders warming up use the following:
Android
```shell
flutter build apk --bundle-sksl-path flutter_01.sksl.json
```
iOS
```shell
flutter build ios --bundle-sksl-path flutter_01.sksl.json
```Created by Roman Ovsepian
[Extrawest.com](https://www.extrawest.com), 2022
---