Kremlin girls


    October? My soul is empty, but in the Apple app store smoke is a rocker. What is there just not. The local Cheka cleans the shelves and letters come to the developers.

    Dear friend,
    your King Towers app is out of date and we are removing it from our store.

    And so by letter once a week. Applications, dear to me as a memory of distant Obj-C, I tried to quickly rewrite to Swift. But here, another rocker was waiting for the hero. Xcode 8 entered the house with his new wife Swift 3.0. From the old bird code, nothing else worked. Having finished two mice, I was able to cut the text in half (do I become a programmer?) And mastered the bird language for the third time, but a new trouble - all the redirected applications did not start. Do you know why?

    Virus Pictures


    Because one cannot be so happy. Apple decided that jpeg and png files contain a hidden threat in the form of executable code. What is it ?! Therefore, it is necessary to clean the attributes of image files from old and new projects.

    To do this, I use the command (I had to become a bit Unix-oid)

    find . -type f -name '*.png' -exec xattr -c {} \;

    I still use it - Photoshop does not know about Apple's innovations and saves files in the old way. But on the nose of 2017. They that Habr do not read? Still use npm?

    Ok, back to the remote games. There is good news - discarded applications can be updated! I downloaded new versions of old programs. I admit, not all versions were approved - the Review Team began to actively miss new versions of banned applications. But 3 times I still managed to publish completely redone programs.

    Upgrade to Swift 3.0


    The old swift code is automatically converted to a new language; Xcode asks for your consent for this operation. I will not give examples of how things have changed. Okay, I'll show you one:

    // Swift from 20 century
    groundObama.layer.borderColor = UIColor.redColor().CGColor
    // Swift 3.0
    groundTrump.layer.borderColor = UIColor.red.cgColor

    Not difficult, but sometimes you get confused. And you’re even discouraged. At the same time ... okay, this opens up a broad topic, but I wanted to talk about a new game idea.

    I can only say that I like the new language.

    Google strikes back


    Since October 1, Google has pleased us with another letter - all your games with the old adMob.framework now do not bring money to the creator. That is, if you made a free application with ads from Google and it turned 2 years old - everything, krants, finish, fiasco - this product no longer makes money. This is unbelievable! That is, Google itself rejected 30% of the revenue from these applications. I did not believe it, but the fact is that instead of $ 50 a day from October 1, I began to receive only 20. Disaster. I immediately rushed to update old successful programs. Did not sleep 2 nights. broke 18 keys. Meanwhile, revenues returned to almost the same level. Not 50, but you can live. Nevertheless, I recommend everyone to jump to the new adMob engine.

    And so, while I was feverishly rewriting old games, a new idea occurred to me.

    New idea


    No need to laugh, I came up with a cool game. I think you will like it too. Why am I writing about the game here? Copyright, brothers, copyright. I hate copyrights and all mine is yours.

    But sometimes it’s nice to stake out an idea to brag about past merits to the girls in the beer bar. Or some bore on a habr suddenly starts to doubt your genius.

    In Soviet times, I used the USSR mail trick for copyright — you send a registered letter to yourself — in a letter, a diskette with the code and listing. The letter cannot be opened and thrown away after 20 years (the diskette has crumbled into dust, for sure). But, in which case (hello Clinton), in court you can prove who the real father is.

    Now everything is simpler - you publish an article on Habré and voila, you sleep peacefully. The publication on Habré (November 2011) helped me once and the case was won. Cognac is drunk.

    So, I’m talking about a new idea of ​​a puzzle game. First, just watch the gameplay video.



    The game is called Kremlins and was made by me in the style of Russian nesting dolls. Nesting dolls are stacked into each other, the goal is to collect all 6 nesting dolls and solve the next puzzle. The assembled nesting doll is removed from the board. The rules for folding nesting dolls are amazingly simple - you can shift nesting dolls of the same color onto each other. Easy, right? Have a nice weekend.

    It turned out pretty well, I generated a million layouts, prepared a server with two mysql tables and a couple of scripts to store the best results.

    He made the game quickly, tried to put it under the name of one of the remote applications - but Review Tim did not miss the next version. Like, too many changes. Release under a new name. I released it. By the way, if you are an Android developer, you can release a clone of the game without any doubts.

    A big plus in a modern apple store - applications are reviewed very quickly and approved in a day. No weeks of waiting. I made the first version of the game paid and even received 30 purchases, which is unbelievable! Usually 0. I apologize to buyers.

    Because today a new free version has been approved, and I dared to publish this opus. Good luck to everyone and have a good weekend!

    We have 22, Indian summer.

    Also popular now: