<div id='unityContent' style='width: 960px; margin: auto;'>
<h1>Save the Gifts!</h1>
<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!' height='63' src='http://webplayer.unity3d.com/installation/getunity.png' width='193'>
</a>
</div>
<div class='broken'>
<a href='http://unity3d.com/webplayer/' title='Unity Web Player. Install now! Restart your browser after install.'>
<img alt='Unity Web Player. Install now! Restart your browser after install.' height='63' src='http://webplayer.unity3d.com/installation/getunityrestart.png' width='193'>
</a>
</div>
</div>
<p>Every year I make a Christmas game for my far-flung relatives in lieu of a card. This one from 2012 was the first fully-fledged game I made in Unity. I started a non-holiday version with robots instead of presents but never got around to finishing it.</p>
</div>
<script>
var config = {
width: 960,
height: 600,
params: { enableDebugging:"0" }
};
var u = new UnityObject2(config);
jQuery(function() {
var $missingScreen = jQuery("#unityPlayer").find(".missing");
var $brokenScreen = jQuery("#unityPlayer").find(".broken");
$missingScreen.hide();
$brokenScreen.hide();
u.observeProgress(function (progress) {
switch(progress.pluginStatus) {
case "broken":
$brokenScreen.find("a").click(function (e) {
e.stopPropagation();
e.preventDefault();
u.installPlugin();
return false;
});
$brokenScreen.show();
break;
case "missing":
$missingScreen.find("a").click(function (e) {
e.stopPropagation();
e.preventDefault();
u.installPlugin();
return false;
});
$missingScreen.show();
break;
case "installed":
$missingScreen.remove();
break;
case "first":
break;
}
});
u.initPlugin(jQuery("#unityPlayer")[0], "/unity/gifts.unity3d");
});
</script>