Thursday 25 August 2011

Saving and loading with the editor

I've had one hell of a time updating the editor, most of all with the saving and loading part of it.

Saving was fairly simple. It just exports an array (in a dynamic text box) which you can then copy and paste anywhere. However, the loading wasn't as simple. When I came up to it, I realised that I didn't actually know how to take data from an input text field and turn it into an array. After a quick Google, I decided on using the ".split();" method. Basically, it divides a string (for instance, a sentence) into letters. This was perfect for the loader, as it just split up the inputted data into readable chunks.

However, the next problem was much worse. I realised after discovering some bugs that the ".split();" method turned all of my number values into text values, which meant I couldn't put in a much needed "+1", as it just came out as "31" (that is the number gained from the .split(); method (3) and the +1).

I eventually found a solution by reworking some stuff, but God. Gave me a headache.

Wednesday 17 August 2011

Character Creation Update!

Been working quite a bit on getting the character creation sorted. You can now choose your character's hat/hair, his facial features, his head colour, his body colour and his leg colour. Here are a few images of it:





The graphics aren't final; they'll be going through some changes. A lot more hats/hair and faces will be added as well. You'll notice the big "SECRET!" area - that's something else that I've been working on, but I'm keeping it secret until a later date. :3

Sunday 14 August 2011

Holiday, customisation, poster

A lot's been going on since last post! I went on holiday for 2 weeks and didn't tell anyone, which is why there has been a sudden lack of posts.

On the theme of game development, I've been progressing with the character customisation screen. It's working great at the moment - all I have to do now is program the colour pickers in.

I also made a poster yesterday:


Nifty! Just some editing practice based on a friend's comic.