Continuing from: https://permadi.com/blog/2009/05/dashcode-invader-using-dashcode-to-create-a-game/ Base class for the objects in the game. Let’s consider what objects will be in our game. I can think of three-types: Player ship Enemy ship Bullet These objects have in commons these charateristics: They all have positions. They all can move (needs speed variable). Let’s call the base class GameObject from […]

Here are some samples and brief explanation of HTML5 Canvas text related functions. A HTML5 compliant browser (such as Firefox 3.5) is required in order for the examples to work. Basic Text   Use strokeText or fillText, both takes x, y and maximumWidth. The colors are determined by the fillStyle and strokeStyle <script language=”JavaScript”> function […]

I am using WordPress 2.9 for this example: Open Appearance -> Editor. Locate the php file that is being used to display categories.  It’s either Archieves.php or Categories.php.  You can echo something and open up a category page in the browser to see which one is being used. You can also edit the file in […]

This post is a continuation of Part 1, which can be found here: https://permadi.com/blog/2010/03/flash-as3-basic-xml-reading-and-parsing-example-part-1/ To make it easier, here’s again the example XML that we are using: Now let’s start putting these nodes in their intended places. To print the node and node, we can simply refer to it by using E4X notation like this […]

There are built in library to do RSS Feeds, but won’t it be nice to build our own and be able to customize the output.  PHP 5 or later is needed for this method because it uses SimpleXML. Below are some useful links that we use in this tutorial. SimpleXML overview and example: https://permadi.com/blog/2010/02/parsing-xml-in-php-using-simplexml/. SimpleXML […]

There are several method to parse XML data using PHP, one of them is using SimpleXML. SimpeXML requires PHP 5 or better but is one of the easiest way to parse XML in PHP, you can use object notation to refer to nodes. The SimpleXML API documentation is here: http://us3.php.net/manual/en/book.simplexml.php Example 1 Here we show […]

As web developers, it is crucial to test on various browsers. A common problem is testing multiple Internet Explorer versions on the same Windows system, since Internet Explorer overwrites previous version during upgrade.  Follow this links that explains how to install multiple versions: http://tredosoft.com/Multiple_IE http://labs.insert-title.com/Multiple-IEs-in-Windows_article795.aspx There is also a free software named IETester, from http://www.my-debugbar.com/wiki/IETester/HomePage […]

In this tutorial, we will continue building a simple space-invader type game. We will be continuing from the tutorial presented in Part1 at https://permadi.com/blog/?p=1131; however, we are making some major changes, and I’ll explain why. The first change has to do with restructuring the CSS code so that most of the objects within the game […]