Friday, 21 December 2012

Re-Kindling

So I spent a lot of time on Monday talking to Chris about this Project the good news is I think we both know a lot more about my project. My main issues were mainly finding the best ways to complete certain areas, and generally how to link and manage large areas of the game.

I have quite a lot of stuff written on a piece of paper reminding me of things I have to do and why I am doing them (the 'why' aspect used to be missing out until I discovered I had a list of things to do, with no knowledge of why I was doing them). I Rushed and did quite a few of the things on my list a couple of days ago in order to strike while the iron was hot, it worked and now I am a LOT further forward with my project, and a little more enthusiastic too.

'Getters & Setters'

Most of my problems originated from the fact all of my objects didn't really know where they belonged and who their parents and family were (In a non coding term). To do this I just put in LOTS of 'getters' and 'setters' which are functions which basically get or set  information about each-other.

Additionally I added an array to each hub which holds all of the objects which are connected to it from other hubs (basically, INCOMING connections). Chris mentioned that I may need Incoming and Outgoing connections, but so far, just incoming seems to be doing the trick.

But what does this all mean? Well, you can now pick up an output plug and drag it around the screen; you can right click to drop it, or click on an input socket of the same colour to connect it. You cannot connect an input with an output if they are situated on the same hub.

This is a lot of progress, but I still need to implement disconnecting or re-connecting inputs and outputs; additionally I also need to further explore the colour scripting aspect of the game (very limited at the moment).

I must not forget to add a starting and end hub; it is a major part of the game which I haven't done yet - yet it will lead on to correctly sorting out power transferral.

No comments:

Post a Comment