Thursday, October 27, 2011

Doubly Link List in Objective-C For PA4

For this Project I used doubly Linked List, to me it makes things easier. I have a Block class, BlockList class, then i have views for level1, level2 and level3. In the Block class i have all the data for a block and a function to initialize the Block values. Then in the BlockList class i have functions to draw Blocks in a list, find a block, add block to the list, clamp blocks in a list, reDraw the blocks in the list, memory clean up. So when i load up level1 view i just initialize the list with a number of blocks i want, then call specific functions from the list class. For example to draw blocks in the list, redraw the blocks this function is called in the level1 view gameLoop function, and when i move from one level to another i call the memory cleanup function.

I figure this way i have all the functions in one place then when i initialize levels i just initialize the list and call specific function. I just thought of sharing this cause it makes things easier.

so long and stay thirst my friends.

Thursday, October 20, 2011

Taps, Touches, Gestures

For the past few days i have been going over Chapter 15, on Taps, Touches, and Gestures. Also went over Chapter 14 on drawing Quartz. It is very interesting, i never thought will be some how easy to draw stuff like polygons. I played a lot with taps, touches and gestures because i am planning on using those when developing my final project. I am planning on creating a simple game for the final project hopefully i get to pull that off, it will be simple but it will be playable and fun that's my goal. I think it will be do-able and i am hoping to start setting up the views for the game as soon as possible so i can concentrate on the developing simple mechanics for the game.

Hoping to have a simple game at the end of the quarter for you guys to play.

so long and stay thirst my friends.

Thursday, October 13, 2011

Multiview Apps

After some hours of struggling getting the Multiview App to work right i finally got it to work right and that struggle made me understand how the whole Multiview shenanigan work. Victory for me and sad news for this whole thing. After wards i felt like doing everything to display a new view from a slider, button, to a label you name it, i just wanted to get everything to display the view. It to me a while to understand, but hey i got the job done at least.

During this process i encounter a problem with the Interface Builder that is worth mentioning to those Iphone/Ipad developers. The problem was that whenever i double clicked an XIB file in xcode, the Interface builder would not show up and this was just happening on my laptop. So i thought of just searching for Interface Builder from the Mac "Spotlight" and try and run it from there. I ran it and it showed up then i closed it, and try double clicking on the XIB file from xcode, lord and behold there it was it showed up. To those who might encounter this problem try what i did it might help. The crazy thing is that it was working before but all the sudden it stop.. What a day in a life of a developer..

So long and stay thirst my friends..

Thursday, October 6, 2011

Iphone Dev UI

This week i have just been going through the tutorials from the iPhone 4 Development book. I have been trying to get as much as better understand of the UI coding from the as simple as pressing a button and getting a simple feed back like yes you pressed me i know that simple is always better and easy does the job.

I also started working on the Multiview Application from the book trying to understand how to transition from one view to another. I know every iPhone Application as far as i know has multiview transitions, not even one but many. But for now i am just trying to get it were if i press a button i transition to another view. I know it will take a while but, i will get there slow but sure.

Hopping by the end of this week i will have a better knowledge of Multiview apps for iPhone dev.

So long and stay thirst my friend.