This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <memory> | |
#include <math.h> | |
#include <algorithm> | |
#include <vector> | |
#include <string> | |
using namespace std; | |
void padTo(string &str, const size_t num, const char paddingChar = ' ') | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
set_time_limit(0); | |
function download($Url) | |
{ | |
if (!function_exists('curl_init')){ | |
die('Sorry cURL is not installed!'); | |
} | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, $Url); | |
curl_setopt($ch, CURLOPT_USERAGENT, "MozillaXYZ/1.0"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--# Main | |
-- Sandbox | |
supportedOrientations(LANDSCAPE_ANY) | |
displayMode(FULLSCREEN_NO_BUTTONS) | |
--displayMode(OVERLAY) | |
--displayMode(FULLSCREEN) | |
function setup() | |
screen=vec2(WIDTH,HEIGHT) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Example: php5\php.exe buildaimodels.php "C:\\Games\\YourGame\\build\\Android\\eclipse\\jni\\AIModels" | |
*/ | |
echo "Generating list...\n"; | |
$dir = $argv[1] or "C:\\Games\\YourGame\\build\\Android\\eclipse\\jni\\AIModels"; | |
$dh = opendir($dir); | |
$txt = "//File generated by juax\n\n\n"; | |
$n = 0; | |
while (false !== ($filename = readdir($dh))) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Example: > c:\php5\php.exe shivaFileCount.php "c:\Stonetrip\ShiVa Editor Basic\Data\Games\7DFPS_13" | |
*/ | |
/** | |
* Scan Resources/AIModels for aim files | |
* @param string $dir | |
* @return array | |
*/ | |
function findAllAI ( $dir ){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--# Main | |
-- hombert Castle Fall | |
displayMode(FULLSCREEN) | |
supportedOrientations(LANDSCAPE_ANY) | |
-- Use this function to perform your initial setup | |
function setup() | |
w = WIDTH/1024 | |
h = HEIGHT/768 | |
useMusic = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--# Main | |
supportedOrientations(LANDSCAPE_ANY) | |
myimage = image(WIDTH,HEIGHT) | |
setContext(myimage) | |
function setup() | |
--backingMode(RETAINED) | |
toolbox = ToolBox() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- destructable | |
-- Use this function to perform your initial setup | |
function setup() | |
parameter.boolean("addWater",false) | |
defaultGravity = physics.gravity() | |
parameter.boolean("useGravity",false, function(v) | |
if v then | |
physics.gravity(Gravity) | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Boid = class() | |
-- constructor used by fish | |
function Boid:init( _location, _maxSpeed, _maxForce) | |
self.velocity = vec2( math.random( -maxSpeed, maxSpeed ), math.random( -maxSpeed, maxSpeed ) ) | |
self:createBoid(_location, _maxSpeed, _maxForce) | |
end | |
-- constructor used by bubbles | |
--[[ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "PrecompiledHeader.h" | |
#include "NetworkLogic.h" | |
#if defined _EG_MARMALADE_PLATFORM | |
# if defined I3D_ARCH_X86 | |
# if(defined _MSC_VER && !defined __clang__ && !defined __gcc__) | |
# define PLAYER_NAME L"Marmalade X86 Windows" | |
# else | |
# define PLAYER_NAME L"Marmalade X86 OS X" | |
# endif |