View ResponsiveObject
-- =================================================================== | |
-- RESPONSIVE OBJECT | |
-- =================================================================== | |
-- Version 1.0.0 | |
-- | |
-- little module/API for furniture and decorations to respond | |
-- if a player enters it proximity radius and trigger animations | |
-- | |
-- Config Parameters: | |
-- see sample file |
View include_once.js
/** | |
* to includes script/css files only if there are not loaded yet. | |
* | |
* @param url url of the resource | |
* @param type js or css (empty default is js) | |
*/ | |
function include_once(url,type) | |
{ | |
var tagname; | |
var urlattr; |
View ANTNewsBot.xml
<!-- | |
=========================================================================== | |
ANT News Bot | |
=========================================================================== | |
Sample files are provided below. | |
Folder structure: | |
/ | |
/ant | |
/ant/ant-contrib (external ant lib) |
View ANT_hompage_deploy_snippets.xml
<!-- | |
=========================================================================== | |
Some ANT Snippets combine, minify and JS and CSS files. | |
=========================================================================== | |
For deploying homepages with ANT. | |
Properties: | |
dir.src=your source folder | |
dir.deploy=your deploy folder | |
--> |
View gist:5169966
/** | |
* ========================================================================= | |
* Hexagon | |
* ========================================================================= | |
* simple hexagon class for processing.js | |
*/ | |
class Hexagon | |
{ | |
// center of the hexagon | |
float centerX; |