Skip to content

Commit

Permalink
How to play it
Browse files Browse the repository at this point in the history
  • Loading branch information
aashrafh authored Jan 6, 2020
1 parent 82820d7 commit ad91aef
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@
- [About](#about)
- [Demo](#demo)
- [Install](#Install)
- [How To Play](#play)

## 🧐 About <a name = "about"></a>
A 3D space game. Travelling along the space trying to avoid rocks and obstacles. The ship can avoid the rocks by moving right, or left. Collision with the rocks affects its health by decreasing total health by ONE and every second with no collision with the rock your score increase by ONE.

## 🧐 Demo <div name = "demo" align="center" width=1189>
## 🎥 Demo <div name = "demo" align="center" width=1189>
![GIFDemo](https://github.com/aashrafh/SpaceTrippers/blob/Game/demo/demoGIF.gif)
![ImageDemo1](https://github.com/aashrafh/SpaceTrippers/blob/Game/demo/demo-img-1.png)
![ImageDemo4](https://github.com/aashrafh/SpaceTrippers/blob/Game/demo/demo-img-4.png)
Expand All @@ -44,8 +45,15 @@ A 3D space game. Travelling along the space trying to avoid rocks and obstacles.
1. Install [Node.js](https://nodejs.org/en/) and [Visual Studio Code](https://code.visualstudio.com/).
2. Open the folder in Visual Studio Code.
3. Open a terminal (Terminal > New Terminal).
4. run `npm install` . If it failed for any reason, try again.
5. run `npm run watch` .
4. Run `npm install` . If it failed for any reason, try again.
5. Run `npm run watch` .
6. Ctrl + click the link shown in the terminal (usually it will be http://localhost:1234).

**Note:** you can use yarn to enable caching so that you don't download all the packages with project. You can download yarn from [yarnpkg.com](https://yarnpkg.com/lang/en/). Then replace `npm install` with `yarn install` and `npm run watch` with `yarn watch`.

## 💭 How To Play <a name = "play"></a>
The aircraft is running "to infinity and beyond" :runner: so your job is to avoid the obstacles to get survive for as much time as you can so can get a point for every second of avoiding the rocks.
1. Click on the canvas using the mouse to get into the game.
2. Use ```J``` to moving ```left```.
3. Use ```L``` to move ```right```.
4. Press ```ESC``` to exit play mode.

0 comments on commit ad91aef

Please sign in to comment.