Game Development Reference
In-Depth Information
Fig 8.18 A 3D object to display Twitter data.
Listing 8.12 Script to Get the Last Tweet for a Specific User
in Twitter and Draw with 3D Text
private var twitterTextURL: String =
" http://twitter.com/statuses/user_timeline/aardbeistudios.
json?count=1 ";
private var twitterPictureURL: String =
" http://a2.twimg.com/profile_images/739029753/ " +
"aardbei3300x259_reasonably_small.jpg";
var userImage: GameObject;
var lastTweet: TextMesh[];
function DivideLines(lineLength : int, original: String)
{
//empty all lines before starting
for(var j = 0; j < lastTweet.length; j++)
lastTweet[j].text = "";
Search Nedrilad ::




Custom Search