Monday, 21 December 2009

Chapter 10 Arrays PT2

Ok so I have been getting myself pumped for programming by thinking about the game/games I wish to make, and starting some of the graphics for the upcoming game! Also having a look round to see what others had done, making me a little jeolous, but in a good way!!!


Anyway, done some more of Chapter 10, learning about arrays, and they can be used just the same as variables! (Which i gathered) That really is the main thing covered in the section I. I also learnt how to store values into these arrays using this formula

  • arrayname(elementnumber) = value
I could not believe how easy it was! And to think that arrays are what stopped me learning soley on comunity tutorials! (Im glad it did as i wouldnt have the HODBP books now)

Anyway the element number is called the subscript, it can be a number or a variable, for instance

  • player1 = 1
  • highscores(player1) = 1000 
Would give the element 3 the value of 1000, a little more confusing than variables! But im sure I will get used to the format.


Well I think that is it for tonight, hopefully I will finish the array chapter eather tommorow or wednesday, then I begin Bull and Torch, and i have to program the entire thing just using the specs it gives me! No code to copy.


******* Off Topic *******

We had so much snow on friday, it is still here as I right this! We also got some more today, and hopefully even more tommorow! Though our lights have been flickering recently, and this happened yesterday just before a three hour long powercut >_<

See (write)  you all soon!

No comments:

Post a Comment