Skip to content

Create README.md #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# [Angry Coders Game](http://angrycoders.codingblocks.com/)

Opening above link you'll get the following screen
![Angry Coders Game Home Page](/HomePage.jpg)

* **Run Code** Button evaluates your code and runs it accordingly.

* **Reset Level** Button restarts the game for this level.

* **Next Level** Button takes you to a random next level

* You need to *write the code* for the two functions to get *Angle* and *Velocity* at which the ball should be thrown so that it hits the bird.

Extra Information:

gravity = 1000
mass=10
Helper Functions:
function degreeToRadian(deg){
  return deg*(Math.PI/180);
}

function radianToDegree(rad){
  return rad*(180/Math.PI);
}

function sin(deg){
  theta = degreeToRadian(deg);
  return Math.sin(theta);
}

function cos(deg){
  theta = degreeToRadian(deg);
  return Math.sin(theta)
}

function tanInv (val) {
  var rad = (Math.atan(val))
  var deg = radianToDegree(rad)
  return deg;
}

function squareRoot(no){
  return Math.sqrt(no);
}