QB Asteroids Update Available ( Finally! )

–> Here <– is the latest version of my version of the arcade classic asteroids game written using the Canvas tag introduced in Html5.
New features added this time are :

1. Big UFO makes an appearance. Note : It doesn’t actually shot yet.
2. Hyperspace works. You should not appear inside any object.
3. You now start the game with 3 lives. You will only re-appear after losing a life when it is safe to do so ( as with hyperspace you will not appear inside an object ).
4. When objects are destroyed debris is produced.

Comments / emails are always welcome.

Let me know what you think.

Asteroids…. oooo… so close

Well since my last update things have been very busy and I just havent had the time to work on the Asteroids game.
I have made some progress which I hope to upload very soon.
The latest source code now has a hyperspace ( that will not drop you in the middle of a rock… or anything else ). I have UFO’s making an appearance ( but not shooting ). The game now actually has more lives.. you start the game with three.
Small improvements I admit but things which bring me ever closer to a completed game. Watch this space.. but dont hold your breath unless you can safely do so for days.

QB Asteroids – Looking more polished

With the limited time available I have managed to make more progress with the game. This is now a playable game ( I did say playable and not fun ). This means you start a game, you play it, if your score is good enough you can enter your initials for the high score table. The rocks now break into meduim and small sizes.

Whats left to do ? Plenty. You only get 1 life currently. There are no UFO’s. The collision detection is not good. You’ll notice that for the ship. There may also be a bug in around the high score table logic. All the new code is still quite sloppy so it will need a refactor ( once Im happy with how it is working ). Only tested properly in Google Chrome. Time is too short to test everywhere all the time.

Anyway.. click –> here <-- to try it out and do let me know what you think.

QB Asteroids – Now Resizable

I was thinking about the game and trying to find what the best size I should make it when it dawned on me that this is a vector game it can be any size I want.
A bit of digging around and a bit of tweaking the game now fills the window whatever size it is. Well.. it fills it as best it can without distorting.
I still had a bit of time left over so I had a first stab at firing shots and even collision detection between the rocks and shots. This gave me a bit of a headache because FireFox has decided to implement the isPointInPath command differently to the other browsers. Once again after some surfing I found out that a very simple tweak to the code gets it working in all the browsers again. Phew !. You basically have to reset the transformation matrix before making the check. So head on over to check it out.. or just click -> Here <-

QB Asteroids – Looking a bit more like a real game

What with this being a bank holiday weekend I finally found some time to re-visit the Asteroids prototype code I wrote a while back.
Since I wrote the original I learnt a bit more about JavaScript so I decided to pretty much start again from scratch. The code is a bit more OO this time.

It still doesn’t actually constitute a game yet but it has been written from the outset to be a fully fledged game. It has various stages from the intro page to the main page, high scores, play game, and enter initials. On screens where the ship is visible you can fly around but thats about it. Pressing the Fire Key will cycle through the game stages.
It can and does now write text and numbers onto the screen. All of which are made up of lines just like the game.
I’m quite pleased with it. I hope you like the progress I have made. I hit a few issues which I had to workaround but the result is that it works in all the big browsers ( FireFox, Chrome, Opera, Safari ) except IE.

Click on the image if you want to give it go.


QB Invaders Update

Very little progress has been made.
The latest version of the code is starting to produce a bit of code smell and I’m not happy with it. It will need a rewrite.

In the meantime if you go to the page you can find the lastest version of the game.

Note : I am drawing a shield on the screen but it doesnt interact with anything yet. That is next on the list of things to do.

Note2 : It has only really been tested with the chrome browser however I did notice the other day that in firefox the base shot is slightly offset. I need to look into why that is.

More Html5

I’ve had a bit more spare time to look into Html5. The asteroids game was vector graphics. Now I wanted to try raster graphics. To this end I have started on my old favourite Space Invaders. A simple game but it have does have raster graphics, quite a few sprites on the screen at any one time and the bases are destructible. A nice selection of things covered.
Sound will not be covered. As mentioned before sound is not properly defined and until some sort of standard is defined I’m not going to waste time trying to write around what we currently get between the browsers.
The page is very much work in progress and doesn’t look anywhere close to finished. But bear with me.

Android Development – Its a start

So I finally got round to setting up my laptop for some Android Development. I then created a ‘Hello World’ application and had a look round round at all the files that were needed.
Hmmpphh.. I’m gonna need to do some investigation. I did try to get a splash screen up.. every app needs a splash screen right ?.
It sounds like something simple and I’m sure it is but when this is your first Android app AND you havent touch Java for many years ( Im guessing around 10 at least ) its not so simple.
Suffice to say I did some searches on the web… found some examples… got my head round what it involves… made the changes to the manifest and created a new layout and wrote some code and…. (drumroll)… it didnt work (cue sad trombone sound).
I did get a chance to do some debugging but I never did get it working properly. Then I ran out of time.
Still… some progress huh ?… and it gives me more time to think of an idea for an actual app that I can write… idea’s anyone ?

Pandora seen peeking out of the Box

It looks like the OpenPandora Team have done it and it look fab. Congratulations !

Its a Pandora and its real.

Its a Pandora and its real.

What?.. You have never heard of it. Shame on you! Maybe you should click on the link and see out what these amazing guys have achieved.

I remember pre-ordering one of these back in 2008… September/October I think it was. I have kept quiet ever since. Occasionally seeing how they are progressing and never doubting they will get there in the end.

Now I’m all  excited again. It may not be here for Christmas but it looks like it will arrive soon.

Phone fun

Well work has been really busy so I have been unable to find any spare time for doing anything useful. I did however find time to get a new phone. OK.. so my old one pretty much disintegrated so it was wasn’t entirely by choice but By ‘Eck I’m glad I did. Just got myself a Motorola Dext. Its an Android phone and it really is pretty darn good.

I can now add Android development as another thing to add on my ToDo list.