A 2D animation that shows a menu with numerous food items that may be chosen from a dropdown menu and displayed to the user. The project is built on Unity version 2019.4.16f1.
Read the CONTRIBUTION.md before contributing.
- Star and Fork the repository.
- Clone the repository using the following command in Git:
git clone https://github.com/pranshi112/FoodMenu.git
- Navigate inside the cloned project using
cd FoodMenu
- You are now on the main branch. To start making changes, switch to a new branch using
git checkout -b <BRANCH-NAME>
- Install Unity LTS Release 2019.4.16f1 from the link here.
- Open the project folder in the Unity Editor.
- Navigate to
Scenes
folder and openSampleScene
. Do all of your work in 16:9 aspect ratio of the Game View. - You're all set! Go on making changes.
- Commit your changes in the local project using the following commands in Git:
git add . git commit -m <message>
- Push these changes to your forked repository using
git push origin <CURRENT-BRANCH-NAME>
- Go to your forked repository, reload, and click on the Compare & pull request button.
- Create the pull request with a detailed description of your changes.
For Windows build
- Navigate to
Build\WinBuild
folder and openFoodmenu.exe
.
For WebGL build
The correct way to run Unity-WebGL build locally is to use a simple server.
ALTERNATIVE 1: Servez
- Install Servez, a simple web server for local web development, from the link here.
- Run Servez and locate
Build\WebGL
in Folder to Serve. - Click Start and then Launch Browser. Now the WebGL build will run.
- To stop server, Click Stop in Servez.
ALTERNATIVE 2: XAMPP
- Install XAMPP, a open source Apache server distribution, from the link here.
- Run XAMPP and click Config on Apache module row and then click
Apache (httpd.conf)
. - Replace DocumentRoot "C:/xamppm/apache" and <Directory "C:/xamppm/apache"> with
Build\WebGL
's absolute path. - Save and close it. Then start Apache server and click Admin.
- To stop server, Click Stop in XAMPP Control Panel.
ALTERNATIVE 3: Live Server
- Install Visual Studio Code from the link here.
- Run Visual Studio Code, Go to
File -> Open Folder
, locateBuild\WebGL
. - Go to Extensions from left toolbar and install Live Server extension.
- Then, right click on
index.html
from Visual Studio Code and click Open with Live Server.
ALTERNATIVE 4: SimpleHTTPServer
- Install latest python version from the link here.
- While installing, make sure to check the "Add Python 3.x to PATH" checkbox.
- Open your terminal and go to
Build\WebGL
or first go toBuild\WebGL
and type "cmd" in address bar and enter. - Type the following command.
If you didn't put any
# For python 3 python -m http.server <portNum> # For python 2 python -m SimpleHTTPServer <portNum>
portNum
by default, this will run on port 8000. - Then direct your browser to :
http://localhost:<portNum>
- To stop server, go to command prompt and press
Ctrl + C
.