📜 ⬆️ ⬇️

-Radar-. Not an ordinary iPhone puzzle

What is on the radar,% username%?



Under the cut a small story about creating a simple little casual under the iPhone.

')
Prehistory

Once upon a time I came across an interesting Z-Rox flash game on the Internet.

The idea of ​​the game is simple to ugliness, but at the same time surprisingly good.
This is a kind of one-dimensional puzzle, an unknown character is scanned from top to bottom and all you see is a thin horizontal strip that constantly changes its width. By the way, this also explains the name of the game, consonant with the well-known word Xerox.
These dashed dashes need to guess what kind of character.
Hopefully explained is available, although it's easier to just try it yourself.


The game is English-speaking, contains 100 levels, but this is not the point, this is only a preface.

Now to the point

I have a hobby - programming for the iPhone, or rather the iPhone OS.
A lot of ideas, free time is zero, I want to try everything, I want to do everything. Of course, it’s not enough to bring to mind very little, it’s not possible to stay with one project for a long time, it becomes boring and it’s harder to motivate yourself.
Therefore, I am particularly attracted to ideas that are very interesting and, at first glance, simple to implement.

That's why my eyes lit up when I stumbled upon this toy once again. I realized that there is practically nothing to implement.
One png with a transparent strip in the middle, followed by a UILabel with letters of the alphabet, numbers and Unicode characters from top to bottom. The alphabet is large, unicode too, 100 levels will be typed at once.

One confused, ugly somehow.
The idea is wonderful, but I did not come up with it, and I did not want to steal stupidly.
But my hands itch!
In the end I decided to write to the developer of the original game and asked him head on: “what if I borrow an idea?”. Well, no, of course not so in the forehead and not in such words, but he asked.
He answered quickly. In short, he told me thanks for respecting the work of others and added that he himself is working on a toy port for iPhone and other platforms.

Well, no luck, my hands itch no longer ... for a couple of days.
After all, literally at the same time, a colleague at work suggested instead of scanning with a strip to drive a sector in a circle, as on a radar.
At first I didn’t undertake the implementation, then it seemed that the original idea with the strip was the most original and any attempts to move away from it already made the game not so interesting.
But I decided to try.

Several weeks of coding in the evenings, running through focus groups “colleague” and “family”, inept picking photoshop to give the program at least some appearance, 3 versions wrapped back by Apple (using copyrighted pictures) and in the final the game gets upstairs.


Link to the game in the AppStore

I'm still sure that everything in the application is very simple.
However, some people get stuck at 2nd level, and one only man managed to get stuck on the first one and write about it in his review.

Some facts



UPD:
Thank you so much for comments and advice on firmware support 3.1.
Indeed, setting the Target Platform, Weak linking for iAd and conditional coding using NSClassFromString solved the problem.

Special thanks for the feedback in the AppStore indicating the flaw in multitasking support.

Just collected and sent for review a version that:
  1. Works on firmware since 3.1
  2. Competently supports multitasking (progress is saved and animation restarts)
  3. Gives much more than before OpenFeint points for achivki

Source: https://habr.com/ru/post/90707/


All Articles