Somethinghitme

My Code, demos and ideas.

Quick Sort algorithm comparison

Wednesday, Apr 21, 2010

I've been trying to do regular programming exercises lately just to stay sharp and recently I decided to take on sorting algorithms. I used my current language of choice (javascript) and set out to implement the quick sort algorithm. Below is the portion of my code that completes this...

Read Article →

How to get the week in a month for a date with Javascript

Wednesday, Apr 14, 2010

Working on my calendar application and I needed to get what week in the current month a day occurs on. Unfortunately I couldn't find anything like this in the JavaScript Date object so this is the function I came up with...

Read Article →

Canvas Lunar Lander update

Monday, Apr 12, 2010

Game is still coming along, it now supports zooming, which was actually a little bit tricky to figure out. Only a few more things left to add before its a full fledged game.. or clone of a game that is. Check out the progress of JSLander. Now supported in any browser that supports the canvas element...

Read Article →

Javascript Sorting by date time

Monday, Apr 12, 2010

Im currently working on a web based calendar and I needed to sort my event object by date real quick. So the first thing I did was a quick search on sorting an object by date time. Google becomes such second nature I immediately think of doing that first sometimes before fleshing out a whole solution in my mind...

Read Article →

Lunar Lander Canvas Game

Thursday, Apr 8, 2010

Working on a lot of things lately but noticed I haven't made a post in quite a while. Heres a quick look at one of the random games I'm making using JavaScript and the Canvas element. Its essentially a clone of Lunar Lander. As it is right now you can't actually crash, and if you successfully land on one of the pads, your drops from the top again...

Read Article →

Dynamic rotated sprite sheets with JavaScript

Sunday, Feb 7, 2010

Been working on the single player canvas game this week and got a few cool things accomplished in terms of performance. The main thing I was working on was trying to reduce the slowdown on real time image rotation. What I ended up coming up with was creating rotated sprite sheets on the fly in memory...

Read Article →

New Canvas game im working on

Tuesday, Feb 2, 2010

A while back I posted a link to a Flash game I was working on, it was going to be multiplayer using Nanoba. Unfortunately I gave up on it pretty quickly, I'm not a big fan of Flash and I wanted to learn something totally different, so I decided to try and remake the game using Canvas...

Read Article →

Snowfall Plugin Updated

Monday, Dec 21, 2009

Updated the snowfall plugin that was released yesterday with a few more features. The primary new feature allows you to specify which elements you want the snow to appear in. An example of this can be seen below. View a full page demonstration. In addition to snowing within elements there are some more options available, properties available are...

Read Article →

Jquery Snowfall plugin

Saturday, Dec 19, 2009

Plugin has been updated to 1.4 please go here for more up to date information. Got bored today and decided to put together a quick snow plugin for Jquery. On my site Undeadgames.com the members look forward to the snow every year. I decided to replace the older one we were using, it was nice overall...

Read Article →

Terrain Generation with Canvas and JavaScript

Monday, Dec 7, 2009

The idea of creating height maps with JS and canvas came from an idea I started for a different website I'm developing. This small project has taught me many things (some of the unfortunate things I learned is I still suck at math, and I have many JS skills to brush up on). I just couldn't bring myself to give it up so I also implemented a very slow very light voxel engine...

Read Article →