|
From: <tre...@us...> - 2007-11-24 15:41:36
|
Revision: 602
http://ogoglio.svn.sourceforge.net/ogoglio/?rev=602&view=rev
Author: trevorolio
Date: 2007-11-24 07:41:41 -0800 (Sat, 24 Nov 2007)
Log Message:
-----------
Added a little randomness to the location you land in a space, so that you don't always land on top of someone.
This is done in the javascript for the space UI and the landing position can be set if it's not wanted.
Modified Paths:
--------------
maven/trunk/ogoglio-server/src/main/resources/siteTemplates/spaceui.js
Modified: maven/trunk/ogoglio-server/src/main/resources/siteTemplates/spaceui.js
===================================================================
--- maven/trunk/ogoglio-server/src/main/resources/siteTemplates/spaceui.js 2007-11-24 12:43:06 UTC (rev 601)
+++ maven/trunk/ogoglio-server/src/main/resources/siteTemplates/spaceui.js 2007-11-24 15:41:41 UTC (rev 602)
@@ -1,7 +1,7 @@
var viewerWidth = 700;
var viewerHeight = 500;
var appletLoadingImagePath = appPath + "/icons/32x32/face-monkey.png";
-var startX = 0;
+var startX = Math.floor(Math.random() * 5) * (Math.random() > 0.5 ? 1 : -1);
var startY = 0;
var startZ = 0;
var startRX = 0;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|