There’s a little problem in the config.h file.
There’s no need to swap the dimensions of the screen cuz the storyboard has already in Landscape mode.
Great tutorial!
Noticed a bug. While this code may have worked at the time, if the app is locked in landscape mode, then kScreenHeight is actually going to be the width of the screen. I tried the code as written and nothing was displayed. After about an hour of trying to figure out what was wrong, I realized that kScreenHeight needs to be swapped with in kScreenWidth, and vis versa in the GameController.m file.
Now the tiles are displayed as in your picture.
Perhaps I altered something somewhere that made my app different. Or perhaps something has changed in recent versions of iOS. I have no idea.
Best,
Alex
Hey Alex, great discovery I don’t think the tutorial code should cover this kind of edge cases - its goal is to introduce you to some basic game techniques when using UIKit like sound, particles, and visual effects. Beyond these it’s up to you to make it a production-ready application
This tutorial is more than six months old so questions are no longer supported at the moment for it. We will update it as soon as possible. Thank you! :]