Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Mobile Development > BOOK: Beginning iOS Game Development
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #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?
  #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.
  #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)?


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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.