2D Game/App, Core Graphic
Hi there,
I'm starting using the SDK, and I would realize a pong clone app using Core Graphic, for draw paddles, ball and score.
I read the documentation and trying draw path, rect and other things using Core Graphic and it's all ok.
Now my problem is that I need a cycle (60fps?) where I put the code for update coordinates of the paddles and ball and after it redraw all with the new data.
I always use "Utility Application" template and then import Core Graphic framework to the project.
ps sorry for my english
I'm starting using the SDK, and I would realize a pong clone app using Core Graphic, for draw paddles, ball and score.
I read the documentation and trying draw path, rect and other things using Core Graphic and it's all ok.
Now my problem is that I need a cycle (60fps?) where I put the code for update coordinates of the paddles and ball and after it redraw all with the new data.
I always use "Utility Application" template and then import Core Graphic framework to the project.
ps sorry for my english
If I understand your question, NSTimer is what you want.
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Core Animation Architecture in Games | Mattonaise | 3 | 4,543 |
Apr 6, 2011 03:56 PM Last Post: Mattonaise |
|
| What's wrong with Core Graphics and UI? | Lazarwulf | 1 | 2,861 |
Nov 12, 2008 12:33 PM Last Post: longjumper |
|

