Make native-access Android wearable apps using Javascript: gyroScript is a new scripting language and framework for designing applications for wearables. Use Javascript to create native Google Glass apps that use the gyroscope and side touch pad. No need to learn and install Android SDK - or Java, monster!
Method Name | Description |
---|---|
bool TouchShortTap() | returns true if the side touchpad of Glass was touched |
Method Name | Description |
---|---|
void AddEsriMap(string type) | displays an esri map on the ground plane, where map type strings includes:
|
Method Name | Description |
---|---|
void GeoCubes(double minRadius,double maxRadius,int total,bool random) | Generates int total cubes between minRadius and maxRadius from the camera, optional random size |
void GeoCube(double minRadius,double maxRadius) | generates a single cube between minRadius and maxRadius from the camera |
void GeoCubeXYZ(double x,double y,double z) | generates a single cube at exactly the absolute position provided by x,y,z. See coordinate system. |
void GeoCylinders(double minRadius,double maxRadius,int total,bool random) | Generates int total cylinders between minRadius and maxRadius from the camera, optional random size |
void GeoCylinder(double minRadius,double maxRadius) | generates a single cylinder between minRadius and maxRadius from the camera |
void GeoCylinderXYZ(double x,double y,double z) | generates a single cylinder at exactly the absolute position provided by x,y,z. See coordinate system. |
void GeoSpheres(double minRadius,double maxRadius,int total,bool random) | Generates int total spheres between minRadius and maxRadius from the camera, optional random size |
void GeoSphere(double minRadius,double maxRadius) | generates a single sphere between minRadius and maxRadius from the camera |
void GeoSphereXYZ(double x,double y,double z) | generates a single sphere at exactly the absolute position provided by x,y,z. See coordinate system. |
Method Name | Description |
---|---|
void ResetScore() | Sets the score display to 0. |
void Score() | Increments the score |
Method Name | Description |
---|---|
void RaycastScreenCenter(double x,double y,bool showCursor) | Sets the raycast point to x,y in screen space. Optionally display a cursor indicating raycast point. |
bool RaycastNow() | performs a raycast from point defined in RaycastScreenCenter(), which allows HitCheck to detect if something was hit! |
bool HitCheck() | returns true if an object was hit |
void UnsetHit() | refreshes the internal hit variable |
void Relocate() | moves the last raycast object to a random position within the generated GeoCubes(), GeoSpheres(), or GeoCylinders() boundaries |
Method Name | Description |
---|---|
void BlowUp() | Sets the score display to 0. |
void SpawnFire() | Increments the score |
void PlaySound(string name) | Plays a Glass sound, where the string name is one of these:
|