September 1, 2011

Xcode 4.1 and lion

Xcode 4.1 and lion

In my new series of post I decided to write something about xcode 4.1


and lion os that i use in next post.

Xcode 4.1 can use in snow leopard also but you should download deferent version

For snow leopard .From Xcode 4 you see great change especially in interface of program.

You can add library to program in 4 device orientations (portrait upside-down landscape left and right) without add any more code.

With new interface you can use deferent editor without leave of xcode .New editor help you to have easier programming. You can switch between editors with click on view and editor in toolbar.I don’t want explain more about xcode and lion because you can find them in apple site.

clip_image004I write this post because if you have problem in xcode and lion discuss it in comment of this posts. In next post you’ll see articles about location based game.

Bye for now and wait for your comments.


Read more »

August 5, 2011

about my blog new version and game and application

hi dear friends

sorry for my late in posting but i working in games coding and like to come to you with

new codes and app and games.

it is my pleasure to see your ideas and project for android and iphon and pc

and help you about it

wait for your comment
Read more »

September 1, 2010

my new game will be published

thanks for your comments ,

as soon as I'll  publish my java 3d  game

and some discussion about games and developing

  send your comment about that what you want from mobile game

and which games you like and  are you played games in mobile or no.

wait  for your comments
Read more »

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 of them and connected it to window select function you create for this image

For other part of windows you shoul add more code .A code like it can be use
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
with this code you can define point for your touch .
CGPoint  lastPoint;
and in part of program that you can use it for detect your finger.
CGPoint gamePoint = [touch locationInView:self.view];
you can get coordinates of point.
in next post we discussed detailed about game making and also i’ll add more source code.
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 function increasespeed and decreasespeed and a lable with name label in EAGLView EAGLView.h inside interface we add UILabel *label ;

then add

- (IBAction)increasespeed:(id)sender;
- (IBAction)decreasespeed:(id)sender;

after  interface definition Then linked two button + and – to them..Now we add some code in function .for example for decreasespeed function we add this code(is same for increasespeed )

   - (IBAction)decreasespeed:(id)sender {

     [renderer setspeed:(speed)];
     [renderer render];// is necessary for seeing change


setspeed is function that should defined in ES1Renderer and ES2Renderer and ES1Renderer and ES2Renderer after interface defination add

-(void)setspeed:(int)Speed; . do it for ESRenderer after @protocol defination.

Now in ES2Renderer.m and ES1Renderer.m add following code


it is all you need. now see your app!



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 MainWindow.xib (is main topic of post).Select window .You can add some text and images and other library .see this image


In opengles codes forced some change in main window after run it.With any code you

can change interfaces also .after run your program you can see this window like it.


i add label(my game 1)to opengles sample project that you can chage font and size of text and others that you want.

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 right
side to your windows . If you can’t see library should select tool menu and
then library.
Now build and run your apps .In next post I'll describe opengles tempelete that
is best choose for create 3d games for Iphone .and show how using interface
builders and codes in Xcode. 
Read more »