August 22, 2010

codes for touch in iphone

Every user should control game easily. Game controlling can be doing with  keypress or touch or device(in iphone and some device).Which one you like?In iphone or even java you should use events for every user command .In  this article we  focused on touch events and codes. a touch can be occurred in interface that i discussed in previous article. For any touch and interface you should define function and connection from interface to function. if you want use button button have many touch event like touch cancel,touch down,touch up inside and etc.With right click in button in mainwindow you’ll see events, select one...
Read more »

August 12, 2010

using interface in opengles(part2: functions)

In this parti’ll describe how you can run your interface on base of  game objects move. Every code for running your game main windows,should be added in EAGLVIew class. in opengles is better that you add more windows to games for performing menus and games and etc but in this project it isn’t necessary .In project that we build before you know that  ES1Rendere and ES2Renderer class have code for render engine in opengles1 and opengles2 .All new Iphone device support opengles2. Now we want control speed of colored box (see in previous project).we  add two lable and  button to windows like this image Now we define two...
Read more »

August 7, 2010

using interface in opengles (part 1)

in this tutorial  i’ll describe opengles template that using in game developing and add interface to it.You can use text and image and etc without any coding in iphone games.Just for more change in text and images in during  game you need coding. first we create new project in Xcode and select opengles template like this image    then select name for project .i select “test” for my project you can select another. Xcode opened window like this image for you that you see test project and folders of it. As you see test have 6 folder (classes,shaders,other sources,resources,frameworks and products).In resource you can see...
Read more »

August 3, 2010

Introduction to iphone programming

Xcode is  best tool for Iphone and Ipad and Mac programming.You can used so many interfaces  easily in programming and connect them to source as you want also with simulator for test your apps.see here for more info.In this picture you see xcode 3.2.3 ide with iphone sdk 4.0 Every project in Xcode at last have one windows(or view) .In windows we can add some library like button,label,slide and…For this purpose we should expand resource folder in left sidebar and open MainWindow.xib or MainView.xib .Interface builder tool opened and show a blank window.It is same windows that you see in iphone app. next drag your library from...
Read more »

August 2, 2010

come back with new article

sorry for my delay in updating . But i come back with new articles.this article are about 3d game programming for Iphone.wait for more image link...
Read more »

Pages 71234 »