Skip to content
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);
}