Built-In Namespace _global_
| Method Attributes | Method Name and Description |
|---|---|
|
Helper function which is automatically called to launch JSGameSoup on a canvas.
|
|
|
lineOnLine(l1, l2)
Helper function which tests whether two lines intersect.
|
|
|
pointInPoly(pos, poly)
Helper function which tests whether a point is within a particular polygon.
|
Method Detail
FindAndLaunchCanvasJSGS()
Helper function which is automatically called to launch JSGameSoup on a canvas.
Finds all canvas tags in the document,
calls the function named in the attribute 'jsgs',
passes a new JSGameSoup instance to that function,
fps is set in the attribute called 'fps'.
Modified version of processingjs' init.js example script.
Defined in: jsgamesoup.js.
Defined in: jsgamesoup.js.
lineOnLine(l1, l2)
Helper function which tests whether two lines intersect.
Defined in: collisions.js.
Defined in: collisions.js.
- Parameters:
- l1
- is a line of the form [[x1, y1], [x2, y2]]
- l2
- is a line of the form [[x1, y1], [x2, y2]]
pointInPoly(pos, poly)
Helper function which tests whether a point is within a particular polygon.
Defined in: collisions.js.
Defined in: collisions.js.
- Parameters:
- pos
- is a point of the form [x, y]
- poly
- is a polygon defined as a list of points of the form [[x1, y1], [x2, y2], ... [xn, yn]]
