Welcome GuestLogin

Programming Games Wiki

RSS RSS

Search

»

Explore


Share




JS Robots

RSS
Modified on 2012/05/11 22:59 by Administrator Categorized as Uncategorized
Image
JS Robots is a game played between programs which control simulated battle robots. Programs are written in JavaScript.

Table of Contents [Hide/Show]


   History
   Robots
   Arena
   Programming
   External Links


Edit

History

JS Robots was first released in 2009 by Warp Asylum.

Edit

Robots

Robots are damaged by collisions or when caught in an explosion. A robot is destroyed when it reaches 100% damage. A robot's maximum speed is 100.

Edit

Arena

The arena is 500×500 units with the origin at the top left. 0° is at the top, increasing clockwise.

Edit

Programming

  • scan(degrees,resolution)
  • cannon(degrees,range)
  • drive(degrees,speed)
  • damage()
  • speed()
  • loc_x()
  • loc_y()
  • rand(limit)
  • sqrt(number)
  • sine(degrees)
  • cosine(degrees)
  • tan(degrees)
  • atan(ratio)

Edit

External Links

  Name Size
- js-robots.png 1.23 KB
- jsrobots250.jpg 18.00 KB