Главная > Coding, Всячина > Duck Hunt: unraveling the mysteriesУтиная Охота: одной загадкой меньше

Duck Hunt: unraveling the mysteriesУтиная Охота: одной загадкой меньше

It’s long time I did not update my blog. There a lot of materials as always, it’s hard to find the time to compile them all together for complete blog article. Today I would like to write a sort of mini-post with elements momoirs that recently one thing has lost its mistery for me. It’s about the Duck Hunt application for legendary device named Dendy.
Dendy is an eight-bit tvset console, a clone of the japane Nintendo Entertainment System. It is connected to the TV-set usually with coaxial cable, after which the video signal is tuned up on one of the channels. Applications launche by means of removable cartridges that in fact represents the circuit board with chip ROM, storing the application code.Давненько не обновлял блог, материала как всегда полно, но собрать что-то воедино и запостить руки не доходят. Сегодня я хотел бы написать мини-пост с элементами мемуаринга о том, что недавно на этом свете для меня стало одной загадкой меньше. Речь пойдет о приложении Duck Hunt для легендарного девайса Dendy.
Dendy — восьмибитная телевизионная приставка, клон японской Nintendo Entertainment System, подключалась к телевизору обычным коаксиальным кабелем, после чего видеосигнал настраивался на одном из каналов. Приложения запускались с помощью сменных картриджей, которые из себя представляли по сути печатную плату с микросхемой ROM, хранящий код приложения.
Actually, I’ve never been a gamer, and moreover, I have never had a game console. I do not know why, but I can’t play video games for a long time and never could — it just becomes boring for me. However, there are rare exceptions among the games that can and hold my attention on them. One of such games was Duck Hunt for Dendy. As addition to the user interface controllers like joystick console was provided with a gun so you could shoot different targets on the display.
It was not clear for me how the gun determines that there is a certain target aimed by its optical sensor. As a response to this misuderstanding all my friends (far from electronics and software concept) were confused as well, but for another reason. They misunderstood, what exactly are you unclear with? — Here is the eye , its looking at the TV diplsay , there is flying duck, push the hook, the eye sees that you got a duck … Naive simplicity . My friends did not bother with the fact that, in order to determine whether the eye of the gun has got the duck or not , you need a complex mechanism of image recognition, it’s all obvious for them.
And now the essence of this post in a single illustration:

At the moment of pressing the trigger the TV screen goes black, and the areas over the targets become ​​white. This recognition algorithm is much easier)) In fact, it is possible to shoot a white sheet of paper, and you will always hit the target.
Вообще, я никогда не был геймером, и более того, у меня никогда не было игровой приставки. Не знаю почему, но играть в видеоигры долго я не мог (и не могу до сих пор) — быстро наскучивает. Однако, бывают среди игр редкие исключения, в которые могут и задержать мое внимание на себе. Одной из таких игр стала Утиная охота на той самой Dendy. Помимо интерфейса управления в виде джойстика приставка комплектовалась еще и пистолетом, которым можно стрелять по различным мишеням на экране.
Мне всегда было не понятно, каким образом пистолет определяет, что в его поле зрения попала нужная мишень. В ответ на мое недоумение все друзья (далекие от эелектроники и программирования) так же недоумевали, типа, да что тут непонятного? — вот глазик, он смотрит в телевизор, там летит утка, нажимаешь на крючок, глазик видит, что ты попал в утку… Наивная простота. Тот факт, что для определения попал ли глаз пистолета в утку или нет, нужен сложный механизм распознавания образов, моих друзей не беспокоил, для них все было очевидно.
И теперь суть поста в одной иллюстрации:

В момент нажатия на спусковой крючок экран телевизора становится черным, а области, в которых находятся мишени становятся белыми. Здесь алгоритм распознавания гораздо проще)) По сути, можно стрелять в белый лист бумаги, и всегда будешь попадать.

  1. wb77
    29 января 2014 в 21:32 | #1

    А при попадании в верхнюю утку, бывало ли так, что падала нижняя? )

Подписаться на комментарии по RSS