OpenGL ES/ Objective-C Game Tutorial part 8: Touch recognizer

preview_player
Показать описание
In this tutorial series we will try to make a game from scratch for IOS with OpenGL
ES and Objective-C.

Рекомендации по теме
Комментарии
Автор

No, in the update method in the sprite class, the first thing you call should be

InitWithData
Автор

Change = GLKMatrix4MakeOrtho(0, 640, 0, 1136, 0, 0); in viewDidLoad to = GLKMatrix4MakeOrtho(0, 640, 0, 1136, 1, 1000); you may have to change some coordinates too.

InitWithData
Автор

Thank you so much! i = GLKMatrix4MakeOrtho(0, 640, 0, 1136, 1, 0); for some reason the iPhone doesn't recognize it unless you put value 1 in the near z

Idogamingonps
Автор

Hey i dont know if you will respond but please do. I have a problem the pnd doesnt show up on the iphone. I use the simulator it works fine but when i build it on my iPhone it wont work.

Idogamingonps
Автор

My code spawns a rocket every time you press the screen?

ewanbains
Автор

Are you clearing the screen with glClear(..)?

InitWithData
Автор

This? : glClearColor(1.0f, 1.0f, 1.0f, 1.0f);

ewanbains
join shbcf.ru