belsua / ByteQuiz

An educational android multiplayer game about computer fundamentals developed in Unity and Photon
https://thisellie.itch.io/bytequiz
1 stars 0 forks source link
csharp photon unity

ByteQuiz

An educational Android quiz game project

Table of Contents

Prerequisites

Getting Started

Follow these steps to set up and run the project on your local machine.

Cloning the Repository

  1. Open a terminal/command prompt.
  2. Navigate to the directory where you want to store the project.
  3. Run the following command to clone the repository:
git clone <repository_url>

Replace <repository_url> with the URL of your Git repository.

Setting Up the Project

  1. Add the project by going to:
Unity Hub > Add > Add Project from Disk > <Select the directory>
  1. After opening the project change the build platform to Android:
File > Build Settings > Platform (Android) > Switch Platform

Running the Project

  1. Don't forget to open a scene before running the game.

Contributing

If you'd like to contribute to the project, please follow these steps:

  1. Clone the repository to your local machine using the following command:
git clone <repository_url>

Replace <repository_url> with the URL of the Git repository.

  1. Create a new branch with a descriptive name for your feature or bug fix:
git checkout -b <branch_name>

Replace <branch_name> with the name of your new branch.

  1. Make your changes to the project files.
  2. Stage your changes for commit:
git add .

This command stages all changes. You can also specify individual files to stage.

  1. Commit your changes:
git commit -m "Brief description of your changes"
  1. Push your changes to the remote repository:
git push origin <branch_name>

Replace <branch_name> with the name of your branch.

  1. Open a pull request on the original repository through the GitHub website.
  2. Wait for your changes to be reviewed and merged.
  3. Sync your local repository with the remote repository:
git checkout main
git pull origin main

Replace main with the name of your main branch if it's different.

  1. Delete the feature branch:
git branch -d <branch_name>

Replace <branch_name> with the name of your branch.

Adding Questions

Go to /Assets/Resources/Single Player Quiz for accessing the questions for each topic. Here is the list of the topics provided:

  1. Elements of Computing System (EOCS)
  2. History of Computing (HOC)
  3. Binary System (BS)
  4. Introduction to Programming (ITP)

You may also access the question class at /Assets/Scripts/Classes/PlayQuestion.cs.

In addition, this is the properties a question have:

public string questionText;
public Sprite questionImage;
public string[] answers;
public int correctAnswerIndex;