Saturday, October 23, 2010

Nearly Done With New Title Screen

Decided to put in some time to implement a proper physics-based character controller for walking. It was a bit tricky... but I'm fairly happy with the results. Hooked up a basic SFX and music system too. Just a bit more polish left and on to more things! Build is available for download here too (you can try move the players around if you want). Music is from Jorge Boscan and sound effects generated by as3sfxr!

Friday, October 1, 2010

It's A Cold Night To Be Out...

Here is a really brief video of what I have been up to. It's the new title screen. It might not seem like much, but a whole heap of work has gone into this under the hood. There's the new deferred rendering, new behaviour tree for AI (a patrol behaviour is driving the dog back & forth), reworked serialization system, and just generally much, much, much cleaner code. It took awhile... but I think it will show its true worth in the future. More updates to come very soon!

If you want, you can download the build too. I have only tested this on like two computers though. ;-)

UPDATED: Changed the video (and download)... now with actual balloons! :)


Thursday, September 30, 2010

How-To Embed RSS Feeds

If you ever feel the need to embed an RSS feed in a webpage (like my BitBucket feed on the right), maybe this Javascript snippet will be helpful (just remember to replace the bits marked in red). It uses the Google AJAX Feed API, which is pretty nifty!

<script src="http://www.google.com/jsapi/?key=GOOGLE AJAX API KEY" type="text/javascript"></script>

<div id="feedControl"></div>

<script type="text/javascript">
  function loadFeedControl() {
    var feed = new google.feeds.Feed("FEED URL");
    feed.setNumEntries(16);
    feed.includeHistoricalEntries();
    feed.load(function(result) {
      if (result.error) {
          return;
      }

      var container = document.getElementById("feedControl");
      if (!container) {
          return;
      }

      for (var i = 0; i < result.feed.entries.length; i++) {
        var p = document.createElement("p");
        p.innerHTML = result.feed.entries[i].content;
        container.appendChild(p);
      }
    });
  }

  google.load("feeds", "1");
  google.setOnLoadCallback(loadFeedControl);
</script>