Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
nck974 committed Sep 15, 2023
1 parent 0d5e16c commit 0ca3e67
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 2 deletions.
49 changes: 47 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,48 @@
# Photo quiz
# Memories

A small project to create a game with questions that on successful answer show some set of photos.
<img src="assets/logo/logo.png" alt="Logo" width="300">

This app is a small configurable quiz game written in flutter. It allows to build your own game by just adding your questions and providing images or texts that will be given to the user upon successful completion.

The game runs completely online and no data is shared with anyone.

The game was build with the intention of sharing memories in photos by asking questions.

## Prerequisites

Have flutter installed.

## Usage

1. Create a copy of `assets/questions.sample.json` into `assets/questions.json`. The structure of the file is as follows:

```json
{
"level": 1,
"question": "When did something happen on x day of y year?",
"correctAnswer": "nothing"
},
{
"level": 2,
"question": "How was something on other place?",
"correctAnswer": "good",
"gift": {
"name": "You won a gift!",
"conditions": "Only applies on x days."
}
},
```

If gift is provided no image will be looked up. Otherwise a folder with the number of the label containing images shall be placed in `assets/images_resized`. There is a python script in `tools` to resize the images. Having too large images will slow down the loading on old devices.

1. Configure the folders of the images you have added in the `pubspec.yaml`.
1. Build the app `flutter build apk --release`.
1. Copy the created bundle to the device, for example using adb `adb -s <your_device> install build\app\outputs\flutter-apk\app-release.apk`.

## Project status

This app was developed as a one time project, no active development is intended, it can be used as it is. Bugs may be reported, no new features are expected in the short term.

## Example

<img src="docs/screenshots/example.gif" alt="screenshot" width="500">
Binary file added docs/screenshots/example.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0ca3e67

Please sign in to comment.