Archive for the 'Web Development' Category

Tower Defense in AS3 - Part III

December 01st, 2008 | Category: Actionscript, Game Development, Programming, Web Development

I decided to take a slightly different approach to Phase III of this series than I had initially intended, since there was a little restructuring that needed to be done in order to support a cleaner and more efficient system. The intent was to have this post cover the basic solution to the towers themselves, but after getting back into the code, it made more sense to discuss stage structure, wave management and creep variety first. This way, we will actually have something on which to test our towers when we make them.

When you finish reading this post, you will have the ability to customize your waves via an XML file along with defining the path of the road — and therefore the creeps — in the same XML document. Allowing for customization in this way will pave the way for building a framework that can be enhanced for many different uses.
Read more

3 comments

Tower Defense in AS3 - Part 1

October 28th, 2008 | Category: Actionscript, Game Development, Programming, Web Development

In keeping with my desire to learn as much about how the game development world works, I have spent some time looking into developing simple games in Flash over the course of the last couple years. Recently, I renewed my pursuit of this game medium, and I have been striving to learn some of the ins and outs of Actionscript 3. Having written a handful of basic Flash applications in Actionscript 2 — from the loader and controls of a full media presentation to an MP3 player and dynamic slideshow — I feel I had a solid understanding of the principles of Flash, both in the timeline, layering and scripting realms.

However, when I began working with AS3, whole worlds began to open up as I saw the potential unleashed by implementing a much more true OOP support into the code base. One of the most useful things that AS3 encourages is the understanding and use of the layering hierarchy of sprites and movie clips on the stage. As you add children to specific sprites or movie clips, they inherit their parent’s visibility spectrum and appear truly as part of that element on the stage. This may well have been a feature of AS2 as well, but I never took the time to learn that aspect deeply enough, since I did most of my work from modifying timeline animations.

I decided some time ago that one of the best ways to learn Flash would be to write a game that implements many of the features, such as vector layering and stage positioning. Furthermore, with my addiction to Tower Defense (TD) style games, I thought it only fitting to develop one myself and share my learning progress with others who may also be interested in the same type of application. This post is the first in a series that will follow my progress from manually drawing the GUI on which the game will be played (this post) to creating the basic Creeps and Towers which will make up the substance of the game. For those who are anxious to get started and don’t want to read everything in detail, I will provide a download link at the close of each post with the full source for the project to that point.
Read more

3 comments

Writing a Reusable AJAX Handler

October 09th, 2008 | Category: Game Development, JavaScript, Web Development

Due to the number of questions I receive on various forums as well as the number of times I have run into the need for an AJAX response handler in my own work, I decided I would share one of my solutions in the hopes that it will save someone else some time as well. I assume, if you are reading this, that you have a basic knowledge of AJAX and the principles guiding the technology. In addition, basic understanding of how libraries such as jQuery perform AJAX queries and callback functions in JavaScript is a plus. For further reading on these prerequisites, check out this Google search and the jQuery docs.

After manually handling my responses in multiple projects, I finally decided to write a JavaScript object that could handle the XML responses for me and return me a usable object to my callback function. Enter the AJAX Handler object. I decided to let jQuery handle the actual requests for me, but I wanted a way to easily parse out my response, checking for errors and handle them accordingly. The result was something I have been able to use numerous times in different projects. To simplify things, let’s look at the code a piece at a time. At the bottom of this post, you will find the entire code. Read more

No comments

Tactics RPG via Google App Engine

October 08th, 2008 | Category: Game Development, Programming, Web Development

Tactics RPG screenshotWhile somewhat old news to some, the Google App Engine is an amazing tool allowing developers to tap into the scalability offered by the Google framework while developing entirely standalone applications. What’s more, along with the offer of the code base to build from, Google also allows developers to host their projects, at no cost, on the Google App Engine server (up to 10 applications per user, no less). I was excited to learn of the project initially, and the more I have delved into it, the more enthralled I have become.

For years now, I have wanted to have the means by which to develop a small tactics style RPG game, and while I have had the basic coding knowledge needed (not to mention buckets of ideas), it has been difficult to bring myself to the point of actually taking on such a daunting task. Having the opportunity to build on the data store and framework Google has offered with their App Engine has given me that extra little boost to begin development on one of my long time goals. Read more

2 comments

Wordle: Creative Word Clouds

October 08th, 2008 | Category: Programming, Web Development

Wordle of Guahan Web home page
A friend has recently posted about Wordle on his blog, and after reading the post and trying out the site for myself, I thought I would be remiss not to make a small post about this amazing tool myself.

This creative idea uses a Java applet to read any word grouping you care to type, or you can simply point the tool to a website which offers an RSS or ATOM feed. From there, the app takes over: creating a stylistic word cloud that is quite aesthetically pleasing. With multiple color schemes, layout options, fonts and other details to allow for personal manipulation of the cloud, you can find the balance that is right for you. The image posted above was the first random creation that was generated by Wordle when pointed at this site.

Enjoy!

2 comments

The Makings of a Successful Social Network

August 28th, 2008 | Category: Web Development

As a web developer, I have noted the increasing rise in popularity and demand of the social networking site. The idea of a website that is, for all intents and purposes, entirely self sustaining is a tempting prospect to anyone seeking to start a site. However, along with the demand has come an inordinate amount of questions regarding the most successful ways to build a site and drive traffic. I have noted that in many cases, the author of the question gets the cart before the horse, as it were.

Successful websites do not typically just come to be on a wing and a prayer (with a few notable exceptions). Instead, they are the bi-product of hours, weeks, and in some cases months or years of dedicated time and planning. A successful social network is no different. The planning and preparation involved before the development actually begins is paramount to seeing your brain child through to fruition.

Read more

No comments

Google Resources Abound!

May 19th, 2008 | Category: JavaScript, Web Development

I have always been a fan of Google’s products as I have been made aware of them, and on very few occasions have I had anything negative to say about them. I recently have started using yet another assistance provided by Google that is, in my opinion, one of the single most helpful and creative tools to be offered free of charge to the development community. I speak of none other than the Google Web Toolkit. This Java application allows you to build quite extensive AJAX utilities from within the tool itself. What I find very interesting about it is that you literally write your application in Java (using a GUI that is provided with the Toolkit, if you choose), and the Toolkit then generates your markup and JavaScript for the final product.

Read more

No comments

JavaScript Libs and OOP

May 13th, 2008 | Category: JavaScript, Web Development

Those of you who work on client side scripting to any degree (XHTML, CSS, JavaScript, etc) are probably well familiar with some of the more common JavaScript libraries available. I have looked into different ones to some degree, and I have used a handful of them extensively before settling on one that best fits my needs. You see, as a developer, I love to conceive of my own patterns and objects to do things within my page, but I also don’t like having to delve into the innermost workings of the DOM unless absolutely necessary for optimization. This being said, for large scale applications like Content Management Systems (CMS) or administration panels, I like to use a themed, all inclusive solution like the Yahoo! User Interface Library (YUI) or ExtJS (an extension of YUI); however, when working with basic DOM manipulation or personal projects that require a lightweight solution, I have become enamored with the jQuery library.
Read more

No comments

Happy New Year!

January 14th, 2008 | Category: Game Development, Personal Life, Web Development

Well, I suppose it is high time to write my next entry. I never intended to take a two month lapse in writing, but then again, when does anyone plan to leave their blog unmanned for that length of time? Holidays, children and work all combined over the new year to make for a rather hectic time. I’ll address each of these throughout this post, so if it gets to be a rather lengthy read, I apologize in advance.
Read more

2 comments

Why Bother with Web Compliance and Accessibility?

November 28th, 2007 | Category: Web Development

Well, I suppose this has been a long time in coming, but I have recently been in a circular debate on one of the forums I regular: attempting to reason with an inexperienced developer that embracing the need for compliance and accessibility within our design process actually frees us up to expand our web presence. The argument spawned from the simplistic inquiry about how to lock a font size down to the degree that users were not able to increase or decrease font size. My initial response was to gently chide the user in question by reminding him that we are dealing with an end user product with web design, and we need to create our product to give the user the most flexibility rather than forcing them to adhere to rigid guidelines defined by our lack of creativity. Upon receiving a very juvenile and My-way-or-the-highway-esque response, I decided to take a big step back and review the big picture behind the need for accessibility and compliance in web.
Read more

No comments

Next Page »