Skip to content

Instantly share code, notes, and snippets.

@Cosrnos
Created February 12, 2014 02:31
Show Gist options
  • Save Cosrnos/8948940 to your computer and use it in GitHub Desktop.
Save Cosrnos/8948940 to your computer and use it in GitHub Desktop.
LynxJS Sample Component
/*
* Lynx Project
* Started August 2013
* ------------------------------------------------------
* This file is covered under the LynxJS Game Library
* License. Please read license.txt for more information
* on usage of this library.
* ------------------------------------------------------
* Component Name: SampleComponent
* Author: Cosrnos
* Description: This is a sample component for LynxJS!
*/
(function(){
var name = "SampleComponent";
var auth = "Cosrnos";
var desc = "This is a sample component for LynxJS!";
var build = function(){
this.HelloWorld = function()
{
Lynx.Log("Hello World!");
}
};
Lynx.Component(name, auth, desc, build);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment