Advertise here




Advertise here

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID
Please do not post the same thing multiple times. The board software automatically flags certain posts as needing moderator attention. This happens the most often for new users. I'm pretty sure this is made clear at the time you attempt to post. Posting the same thing over and over again just makes that many more posts the moderators have to weed through later. This makes us sad. Don't make us sad. If your post/thread doesn't appear, just wait a while. Don't post it again. If it hasn't shown up by the next day, then you can try again. I normally go through posts in the mornings, and try to check a few times throughout the day, but I'm not here 24/7. There will typically be a significant delay before posts are approved. Just be patient.

What programming language should I use to make an iPhone game?

I'm relatively new to iOS programming and I'm wondering if I should use Objective C or Cocos2d. Any help?
Post edited by piggins on

Replies

  • baja_yubaja_yu Posts: 6,166Super Moderators, Registered Users
    Cocos2d isn't a programming language. But it is a popular framework for making 2D games. Ray Wenderlich has a very good book on Cocos2D for iOS. You can look it up on Amazon.

    But the definitive answer to your question would be: It depends on what kind of game.
  • ryanlawrence171ryanlawrence171 Posts: 23Registered Users
    Use” Cocos2d” framework, It’s not programming language. Developer is using it to develop iPhone 2d game…
  • Nick JohnsonNick Johnson Posts: 8New Users
    Use Objective C as programming language...
    cocos2d as framework..
    Or u can directly use iphone application development services to develope iphone apps.
  • baja_yubaja_yu Posts: 6,166Super Moderators, Registered Users
    maole;439543 said:
    Any programming language will do as long as you are comfortable in dealing with it.
    No.
  • jhonsmith1jhonsmith1 Posts: 4New Users
    As programming language use Objective C language and cocos2d as framework..
  • MicRaiSMicRaiS Posts: 5New Users
    piggins;438582 said:
    I'm relatively new to iOS programming and I'm wondering if I should use Objective C or Cocos2d. Any help?
    Objective-C, cocos 2d or C#
  • wahnesswahness Posts: 139Registered Users
    frankly, if i were you i'd use c++ with a light objective-c interface. c++ will run faster and fit into a smaller space than objective-c. that said, objective-c and cocos2d is a tried and true method. but it sounds like you aren't just new to ios programming, but to programming in general. otherwise, you would know what objective-c was (or be able to find out with a simple web search) and would be able to look cocos2d up and see that it's not a language. maybe you should just learn to program first.
  • kapps11kapps11 Posts: 718Registered Users
    wahness said:

    frankly, if i were you i'd use c++ with a light objective-c interface. c++ will run faster and fit into a smaller space than objective-c. that said, objective-c and cocos2d is a tried and true method. but it sounds like you aren't just new to ios programming, but to programming in general. otherwise, you would know what objective-c was (or be able to find out with a simple web search) and would be able to look cocos2d up and see that it's not a language. maybe you should just learn to program first.

    I agree with learning to program more simple things than jumping straight in to games. But as far as obj-c and c++, its actually pretty easy to intermix the two. The box2d physics framework that works with cocos2d is a great example of this. Just change the file extension to .mm and you can mix and match c++ and obj-c code as much as you want. Best of both worlds!
  • HemiMGHemiMG Posts: 350Registered Users
    There's also Cocos2d-x if you want to code in pure C++. Well, relatively pure C++, you'll still need a little Obj-C to for coding with it on iPhone. But Cocos2d-x has the advantage of working with quite a few more platforms than just iOS if you ever want to port it over to Android or others.
    Obj-C is a bit easier to learn, I think, so it really depends on how badly you want to get on other platforms in the future. There are also a couple of Cocos2d-x tutorials on Ray Wenderlich's website. Though not as many as he has for Cocos2d.
  • pigginspiggins Posts: 13New Users
    I now have a relatively good understanding of Objective C. How different are Cocos2d and Objective C? How long approximately would it take me to learn Cocos2d relatively well with a knowledge of Objective C? By the way, kkkkkkk: I checked out your game and it's really good but I was wondering where you got the images for the backgrounds and other things in your app. Did you make them, find them online (if you did this can you please give me a website or something; I'm willing to pay), or do yo have a person?
  • kkkkkkkkkkkkkkkk Posts: 106New Users
    I made them using Cinema 4d. they are basically part of a small film I made called timenonsquitur

    I am not very happy with my game.. I think I could've made a better job creating a story or a myth behind it if you like...

    it's a bit all over the place...

    I am torn now If I should keep adding levels to it. or just move on to a new project..


    On your question... Cocos2s is a bunch of classes / objects if you like.

    stuff that do things. working together.


    the idea is that you read the .h decelerations and you understand what exactly each class does..

    I didn't use cocoa because I am an idiot..

    you just download the thing. unzip it. and you open the cocos2d-ios.xcodeproj

    and play with the examples.

    see it as a library with examples .. you see something you like.. you include that to your project. and modify it..

    it's better to read the code. STUDY IT HARD understand it and then implement it.

    (I assume that you've read one of the many books that are written for cocoa.)

    they say in there how to setup your first cocoa app. and how to implement the objects etc.

    download a book on your iphone and read it on the bus.

    in a few months you ll be fine.

    if you drive a car. buy a bus. :)

    Post edited by kkkkkkkk on

    Image and video hosting by TinyPic

  • pigginspiggins Posts: 13New Users
    I checked out your film and it's amazing by the way. Except I'm not artistically inclined in any way, shape, or form and you seem to be really good at art. Can I use Cinema 4d to get (not make) individual images? Or do you by any chance know a website that I can use? I've already made the majority of a game using Objective C, and will look into learning Cocos2d. What kind of extra classes are there in Cocos2d?
  • kkkkkkkkkkkkkkkk Posts: 106New Users
    thanks for your kind words..

    About C4d, ...I am afraid that you can't extract ready images other than basic shapes it gives you however good tools to compose, meshes ..textures, it's not that hard to learn the program if you have a good teacher. (I would say a month..) but if you try learn it by your self.. it's going to take you much much longer... I don't know any websites for free graphics, but I would recommend you approach a female artist - painter, and ask her to create the art for you. take a look at this game: sr. mistu. Girls have a different sensibility that men lack..

    about cocos2d.

    if you open the cocos2d-ios.xcodeproj you can select and run all the basic examples that show what the framework provides,

    It's not just simple classes it's hundreds of objects combined together in examples to do many interesting and useful things. (effects-particles-sprites-menus and many many more) It also gives you a more clear access to OpenGL ES, and a good physics engine so that you don't have to write everything from scratch.
    it's basically the hard work of many combined together for all to use.
    it's a toolset of basic arsenal that you will have to build when you are making a 2d game. it's good to know how to do it. but since there not many different ways to invent the wheel, it's wise to use existing knowledge.


    Image and video hosting by TinyPic

    piggins
  • HemiMGHemiMG Posts: 350Registered Users
    raywenderlich.com/tag/cocos2d/ is a site with a whole ton of Cocos2d tutorials that will hold your hand a little more than simply reading the examples that come with it. I would suggest hitting the "older posts" link a few times to get to the basics.
    Since you have a decent understanding of Objective-C, it shouldn't be too hard to follow along with the tutorials, as long as you read them in a logical order and don't try to start with the advanced stuff.
  • pigginspiggins Posts: 13New Users
    Thanks both of you for your advice on how to learn Cocos2d.
    HemiMG: Do you by any chance know any websites that I can use to get good graphics? How do you get your graphics? There are some specific images that I need like asteroid images. I'd be willing to pay for images if you know any websites or software.
  • HemiMGHemiMG Posts: 350Registered Users
    I do my own graphics, which isn't really ideal because I'm not that great at it, aside from 3d graphics which I'm fairly decent at. I did the asteroids for Landing Party using...I don't remember which 3d program now. I also did the spaceship, which I don't think looks bad. I believe it was modeled in Electric Image Modeler, which is long since out of production. I did the people using Poser, they don't look bad, but they are too small to really look good. Custom graphics can get pretty expensive quick and I haven't grown comfortable enough with sales to not fear losing money that I don't really have, so I haven't hired any out yet. I'm hoping the release of CatHide will help fund more professional graphics, because I do think that they are essential to good games, and critical to the types of games that I want to be creating.

    As for websites, there is opengameart.org, which has a bunch of free graphics. You can search the jobs sections here, and at Toucharcade and find some graphics artists, they won't be free, but you said you don't mind paying so its worth getting a quote. I recently bookmarked a graphics designer's site at shadow-embryo.com, his work looks amazing. I don't know what he charges.

    You can also search the questions over at gamedev.stackexchange.com for sprites and graphics. Many people have asked over there about good places to get graphics, so a search of the questions should bring up some decent answers.

    Before I found Shadow Embryo's site, I had a few graphics designers bookmarked on Elance, you can generally get work done pretty cheap there. But with sites like that you need to be extra careful that the designer isn't just ripping someone else off and selling works that don't belong to them. The prices people are willing to pay on that site have went down so much over the years that good provider and good buyers have a harder time finding each other.
    piggins
  • pigginspiggins Posts: 13New Users
    Thanks so much HemiMG. Opengameart.org is a great website and had exactly what I needed. Elance seemed good too but I don't know how reliable it really is. The more legitimate designers on Elance were out of my price range but thanks for that too. By the way, the spaceship and people in your app are amazing.
Sign In or Register to comment.