Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7869499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T01:20:30+00:00 2026-06-03T01:20:30+00:00

I am developing an iPhone game with Cocos2d-iphone. I want my game to only

  • 0

I am developing an iPhone game with Cocos2d-iphone.

I want my game to only be available to the iPhone 4 AND iPad. Retina enabled for iPhone 4. I don’t want the game to run on older devices.

Cocos2d will always ask me for -hd and non-hd files. If I don’t provide the SD files, I get errors. I don’t want that: is there a way to disable Cocos2d from trying to retrieve SD files, and only get -hd suffixed files by default?

Oh, and when the game is run by an iPad, the graphics will be the -hd ones as well. So the point is, I only want to have -hd files in my project.

What are the proper steps to edit Cocos2d’s source for such?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T01:20:35+00:00Added an answer on June 3, 2026 at 1:20 am

    If you are using cocos2d version >= 2.0, then you can change the value of a global variable found in CCFileUtils.h:

    static NSString *__suffixiPad =@"-hd";
    

    (Its default value is @"-ipad".)

    If you are using cocos2d version < 2.0, then you can find here a category that I wrote to be able to transparently use -hd images created for the iPhone 4 on the iPad 1/2.

    Actually, it does more than that, but if you add it to your project, then “-hd” images will be “automagically” used on the iPad 1/2 instead of their SD versions (which you could also not include in your project).

    Let me know if you have any issues integrating this code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Background: I'm developing a game for the iPhone/iPad using cocos2d-iphone. Our engine provides the
I am developing a game for iPhone retina enabled. This game has alot of
I am currently developing a card game for the iphone using cocos2d. I am
I am developing a game with cocos2d-iphone and I am going to add in
I am developing an iPhone game with cocos2d-iphone. I am particularly interested in how
I am new to cocos2d and im developing my first iphone game. The requirement
So I'm developing an iPhone game using cocos2d. I'm using pushScene to transition from
I'm developing an iPhone game using cocos2d. As the player moves around and scores
I'm developing a game for iPhone using COCOS2D . In that, I need to
Im developing an iPhone game, and I want to know how to draw vector

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.