and it was a painful experience. It took me 6 hours to decipher how to draw a box on the screen. I know that I could have used predefined helper functions and I could have also used a static image but that would not have been the point. This allowed me to do two things. First I learned how to write a function (not fun but I worked it out) and second learned how to create make and close pathes. I also learned that the draw function that actually does the drawing does it once. I also learned that it seems like the context once built only does one fill as opposed to draw fill draw fill. Possibly this is an optimization in xCode that is screwing me up as this is not my desired result or, more likely I am still doing something wrong. In any case when I sit down to work it out this weekend I am sure that it will devour a good chunck of my time. Once I get the board drawn correctly then I will figure out how to draw x’s and o’s. After that I need to sense a touch so that I can place an x or an o in the correct square. And then I will need to build actual game logic to at least detect a win. I think at that point I will have enough proof fo concept to work on my next concept which will require the accelerometer. A lot of work still needs to be done and I need to teach my brother how to do this as well. Which will be another exciting adventure.
Pages
-
Categories
- Categories
-
Archives