UNPKG

rapidgame

Version:

A cross-platform commandline tool that prebuilds cocos2d-x libraries for Windows, Mac, Linux, Android and iOS. Also a game templating system.

32 lines (26 loc) 606 B
// // Created using [RapidGame](http://wizardfu.com/rapidgame). // See the `LICENSE` file for the license governing this code. // Developed by Nat Weiss. // public var quit = false; function Start() { renderer.material.color = Color(0, 0, 0, .25); } function OnMouseEnter() { if (quit) { renderer.material.color = Color(.5, 0, 0, .5); } else { renderer.material.color = Color(.32, .73, .86, .5); } } function OnMouseExit() { renderer.material.color = Color(0, 0, 0, .25); } function OnMouseUp () { if (quit == true) { Application.Quit(); } else { Application.LoadLevel("Game"); } }