Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Mobile Development > BOOK: Beginning iOS Game Development
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning iOS Game Development
This is the forum to discuss the Wrox book Beginning iOS Game Development by Patrick Alessi ; ISBN: 978-1-1181-0732-4
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning iOS Game Development section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 20th, 2012, 10:09 PM
Registered User
Points: 23, Level: 1
Points: 23, Level: 1 Points: 23, Level: 1 Points: 23, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2012
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Making the ball in Blocker game more smooth (Chapter 6)

I tried the Blocker game in Chapter 6 on iPhone simulator, and on real, physical devices iPhone 4S and the New iPad. There is a phenomenon that, I see the ball moving about 3 pixels each time, but sometimes, it won't move for a split second, and then it moves for 5, 6 or 7 pixels, if feels like. So the movement is a bit jagged at times.

I don't see it happening in Angry Birds. Could it be the way how sub-view is rendered in the main view. Would the same issue be there if we use a "frame buffer" so we paint everything all at once? How can it be improved so that animation of the ball is very smooth?
Reply With Quote
  #2 (permalink)  
Old April 21st, 2012, 04:11 AM
Authorized User
Points: 50, Level: 1
Points: 50, Level: 1 Points: 50, Level: 1 Points: 50, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2011
Location: Ottawa, On, Canada
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Default

I don't have the book with me but I think it's because they're using Quartz 2D for the example instead of Open GL ES that you would typically use for better performance.

I thought I remembered that the author indicated that somewhere as well but maybe that was another book I read.
Reply With Quote
  #3 (permalink)  
Old April 21st, 2012, 04:19 AM
Registered User
Points: 23, Level: 1
Points: 23, Level: 1 Points: 23, Level: 1 Points: 23, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2012
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It is actually using the sub-views to display the things on screen and adjust their offset. No drawRect is used to redraw everything but I wonder how smooth animations will be if using sub-views... can the animation be smooth... will every frame of the 60fps require redrawing everything (by iOS)?
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
please help on chapter 2 making connection. bugfree BOOK: Expert SQL Server 2005 Integration Services ISBN: 978-0-470-13411-5 0 July 19th, 2009 09:35 PM
Ball movement problems lyndonh BOOK: Professional XNA Game Programming: For Xbox 360 and Windows ISBN: 978-0-470-12677-6 2 January 18th, 2008 05:25 AM
Why won't Mac's play ball Adam H-W Javascript 5 November 27th, 2006 09:59 AM
Ball class in C# devcon5 VB.NET 2002/2003 Basics 0 April 2nd, 2006 12:13 AM
Making a game ranking LiamUk PHP How-To 4 July 30th, 2004 06:21 AM



All times are GMT -4. The time now is 01:07 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.