Mozilla Game On: Hackable Javascript + HTML5 Game

I have submitted my entry to the Mozilla Game On competition under the ‘hackable games’ category. It can be played online now at: http://austinmarton.github.com/phys-ed/

PhysEd

I developed a basic platformer written from scratch in Javascript using HTML5 canvas and some jQuery. It has a ‘mod mode’ in which the user can view some of what is going on behind the scenes and change some of the physical parameters. Of course I ran out of time in the end but the competition was a great push to at least get a playable prototype out there.

It is released under GPLv3 so please check out or even fork the source code on github!

Advertisements

Javascript + HTML5 Implementation of Peg Solitaire Game

After spending an evening attempting to complete the peg solitaire game at a friends house I’ve written a version in Javascript using the HTML5 canvas. It’s a very simple implementation where I use the colours of the squares to determine their state. You can view the project on github or just try and play the game.

I’m not a web programmer (yet!) so please excuse my bad practices, but I will add more boards and fix the bugs in time.

USB NES controller using a keyboard brain

This is a little thing I made while procrastinating recently, it is similar to what I did with the controls on my first arcade machine – ripped a keyboard apart and wired the matrix up to switches. This time I used a USB keyboard and tried to put it all inside a NES controller. I have seen NES controllers being recycled all over the show so this isn’t really anything new, although using a generic USB keyboard means it works with Linux, Windows and Mac. I used the linux command “showkey” and a lot of trial and error to probe around and find the correct combinations to produce up down etc.

Making a Nintendo DS charger from a USB cable

I have just acquired a Nintendo DS original. It didn’t come with a charger but after inspecting the charger socket on the DS it looks very similar to a USB cable, enough so to fit a modified one!

  • I salvaged the end of a USB cable which I had cut up for something else. I used a male but a female could work with a bit of modification. The USB male is slightly wider than the socket on the DS so I cut off half of the shielding using small pliers:

    DS charger plug made from USB

    00042

    00043

  • As stated on the bottom of the DS, it requires 5.2V DC. I had a recently slaughtered Sanyo phone charger which puts out 5V DC which I decided to use. One could just as easily use the 5V from a USB port.
  • The USB cable I had was already cut in half, showing the familiar Red, Green, White and Black wires. The +ve and-ve terminals are reversed on the DS – the Red wire goes to the Negative and the Black wire goes to the Positive from the phone charger in my case. I just cut the rest of the wires short.
  • This is the final product!

    00047

    00045
    As you can see from the orange LED, it’s charging my DS splendidly.