jQuery and Browser based games

No Comments

t-and-c-surf-designs

Surfs Up!

I have been playing with the jQuery animate functionality a bit today and it occurred to me that jQuery would likely be the perfect library to build a browser based game on top of..

I did a little browsing about the web, and sure enough.. someone thought of it before me.

The games I would want to create would be less animated than this one.. but I could totally see a Masters of Orion remake as a browser based game using the jQuery library..   Or any number of other turn based games..  You could even make them multiplayer fairly easily..

As computers get faster, and as browser trend towards threaded javascript engines.. Why the hell not?! At this point I think it would be just as easy/difficult to create a game via a webbrowser as it would via any other medium..

More

jQuery Windows

1 Comment

Example Windows

Example Windows

So as part of my on-going exploring and learning of jQuery I want to create a window system.  This will let me explore the wonderful world of jQuery as well as create something functional and useful for my work project.

This window system will need to be dragable, droppable, completely resizable via all standard and expected methods.  It will need to be able to have x number of configurable buttons within the border both left and right, have other customizable data within the top header..

I want to make it so that each window is basically a container, and thus can contain anything.. including other windows.

More

jQuery Lightbox

No Comments

Lightbox Test

Lightbox Test Image

I have been playing with the javascript library jQuery for a couple days now.. My intent is to learn the ins and out’s of it for a project at work.  So far I like what I am seeing.

I need to learn a “best practices” as there are many ways to do things in jQuery and I am very likely going about some of it incorrectly..  But, there is only one way to try things and that’s to jump off the deep end!  So far it’s cake.. Something I have wanted for my site for a while now was a lightbox implementation.  And while WordPress has quite a few lightbox like plugins, I thought it would be interesting to create my own using jQuery such that ANY link (on any website) with an attribute of rel=”lightbox” would be opened as a lightbox. This is the file I’m actively developing on;

http://rsow.com/files/jquery.lightbox.js

And the image above will be my lightbox test image for the time being.  Clicking the image will close the lightbox. More

WPMU Theme Update

2 Comments

Update:  It works in all browsers now.. Yaaaayy!!   Though IE does this strange ass selection thing that I need to figure out how to stop..  Next; I make it save your preferences then on to implementation!

So its been several more days and I have spent quite a bit of my spare time working on this theme conversion.. I can almost say its complete, but not quite yet.

http://info.rsow.com/projects/fffredesign/

My colorChooser system is about 90% done in Firefox and Safari, and about 70% done in Opera and IE. I’m not at all surprised that it’s not working correctly in IE, but the fact that Opera has the same error was a little shocking. Usually Safari and Opera work in parallel when it comes to javascript. Meaning if it works in one, it works in the other and vice versa.. I’ve managed to break that paradigm with this bit of code.. hehe.. It will be interesting to see what the issue is.. More

Theme Conversion Update

1 Comment

Well as some of you know I have been working on a joint WordPress MU and Invision Power Board theme based on the joomla theme Chromatophore.. I thought I would give an update — It’s going well all things considered, but its taking me a little longer than I had for seen to get the color chooser logic working correctly.

You can see my progress here:

http://info.rsow.com/projects/fffredesign/

I’ve run into some interesting javascript foibles that I have had to deal with and have also taken this opportunity to start on my own javascript toolbox.

More

Javascript Obfuscation

6 Comments

Code obfuscators will strip out the unnecessary characters like white space, tabs, newlines and comments. The modern flock of javascript obfuscators will also go through and replace every command and variable in the file with some random key that points to an array which then gets eval’d back out at run time. Generally speaking the code you see in an obfuscated javascript file looks like completely gobbledygook which is sorta the point.

My stance on it is simple; Don’t do it — If you ever catch me encoding or obfuscating my javascript, come kick me square in the jimmy.. I simply cannot abide by people who think they need be secretive with javascript.. And lets be completely honest here, that’s what it’s about. More

Older Entries Newer Entries