GithubHelp home page GithubHelp logo

oasis's Introduction

OASIS

A 3D Pirate Battle Ship game built using WebGL and Three JS. The main goal of this game is to destroy all the enemy ships and collect treasure chests.

Player

The player can move freely in any direction and can even rotate around its own axis. Use W,A,S,D to control movement of the player and use Left, Right arrow keys to control the rotation of the player.
The player can also shoot canons with a cooldown period. To make it look realistic, they player ship shoots canons from its side, instead of front. The canons on direct hit with enemy ships, destroy them. To shoot canons press Space
Player has start health of 100 and after every hit with enemy or enemy canon ball, its health reduces a bit.
Lastly, Score of the player increases when we destroy an enemy ship or collect a treasure chest.

Enemy

The enemy spawns at random positions and they slowly approach the player (but at random speeds). Enemy ships shoot canon at player after a particular interval and cause damage to player ship on direct hit.
On direct hit with player or player canon ball, the enemy ship gets destroyed.

Game over Screen

When player health becomes 0 or player destroyes all enemy ships, a game over screen is rendered.

How to play the game

  • go to the game directory oasis and perform the following commands on terminal
$ npm run dev
  • now open http://localhost:3000/ in your internet browser and enjoy the game :)

Images

alt text alt text alt text alt text

oasis's People

Contributors

parth0248 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.