Skip to content

Commit

Permalink
new models
Browse files Browse the repository at this point in the history
  • Loading branch information
jifeon committed May 13, 2012
1 parent d83259f commit 1e1f13e
Show file tree
Hide file tree
Showing 59 changed files with 114 additions and 12,432 deletions.
14 changes: 5 additions & 9 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ module.exports = {

router : {
rules : {
'/' : 'site.index'
'/' : 'site.index',
'house' : 'site.house',
'first_person' : 'site.first_person',
'hospital' : 'site.hospital'
}
},

Expand All @@ -24,14 +27,7 @@ module.exports = {
http : {
port : 3000,
root_folders : {
WebPlayer : 'standalone/WebPlayer',
ai_files : 'standalone/ai_files'
},
basic_auth : {
message : 'Who are you?',
users : {
'admin' : 'LJUji9'
}
WebPlayer : 'standalone/WebPlayer'
}
}
}
Expand Down
23 changes: 22 additions & 1 deletion controllers/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,26 @@ function SiteController( params ) {


SiteController.prototype.index = function( params, client ) {
this.send_response( 'ai', client );
this.send_response( 'WebPlayer', client, {
obj_name : 'building'
} );
};


SiteController.prototype.house = function( params, client ) {
this.send_response( 'WebPlayer', client, {
obj_name : 'house'
} );
};

SiteController.prototype.first_person = function( params, client ) {
this.send_response( 'WebPlayer', client, {
obj_name : 'first_person'
} );
};

SiteController.prototype.hospital = function( params, client ) {
this.send_response( 'WebPlayer', client, {
obj_name : 'hospital'
} );
};
82 changes: 82 additions & 0 deletions standalone/WebPlayer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Unity Web Player | WebPlayer</title>
<script type="text/javascript" src="http://webplayer.unity3d.com/download_webplayer-3.x/3.0/uo/UnityObject.js"></script>
<script type="text/javascript">
<!--
function GetUnity() {
if (typeof unityObject != "undefined") {
return unityObject.getObjectById("unityPlayer");
}
return null;
}
if (typeof unityObject != "undefined") {
unityObject.embedUnity("unityPlayer", "WebPlayer.unity3d", 1100, 700);

}
-->
</script>
<style type="text/css">
<!--
body {
font-family: Helvetica, Verdana, Arial, sans-serif;
background-color: white;
color: black;
text-align: center;
}
a:link, a:visited {
color: #000;
}
a:active, a:hover {
color: #666;
}
p.header {
font-size: small;
}
p.header span {
font-weight: bold;
}
p.footer {
font-size: x-small;
}
div.content {
margin: auto;
width: 1100px;
}
div.missing {
margin: auto;
position: relative;
top: 50%;
width: 193px;
}
div.missing a {
height: 63px;
position: relative;
top: -31px;
}
div.missing img {
border-width: 0px;
}
div#unityPlayer {
cursor: default;
height: 700px;
width: 1100px;
}
-->
</style>
</head>
<body>
<p class="header"><span>Unity Web Player | </span>WebPlayer</p>
<div class="content">
<div id="unityPlayer">
<div class="missing">
<a href="http://unity3d.com/webplayer/" title="Unity Web Player. Install now!">
<img alt="Unity Web Player. Install now!" src="http://webplayer.unity3d.com/installation/getunity.png" width="193" height="63" />
</a>
</div>
</div>
</div>
<p class="footer">&laquo; created with <a href="http://unity3d.com/unity/" title="Go to unity3d.com">Unity</a> &raquo;</p>
</body>
</html>
1 change: 1 addition & 0 deletions standalone/WebPlayer/UnityObject.js

Large diffs are not rendered by default.

Binary file added standalone/WebPlayer/building.unity3d
Binary file not shown.
Binary file added standalone/WebPlayer/first_person.unity3d
Binary file not shown.
File renamed without changes.
Binary file added standalone/WebPlayer/house.unity3d
Binary file not shown.
6 changes: 3 additions & 3 deletions standalone/WebPlayer/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ p.footer {

div.content {
margin : auto;
width : 600px;
width : 1100px;
}

div.missing {
Expand All @@ -49,6 +49,6 @@ div.missing img {

div#unityPlayer {
cursor : default;
height : 450px;
width : 600px;
height : 700px;
width : 1100px;
}
Loading

0 comments on commit 1e1f13e

Please sign in to comment.