{"action":"opened","issue":{"url":"https://api.github.com/repos/beller0ph0nt/ScalperTest/issues/1","labels_url":"https://api.github.com/repos/beller0ph0nt/ScalperTest/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/beller0ph0nt/ScalperTest/issues/1/comments","events_url":"https://api.github.com/repos/beller0ph0nt/ScalperTest/issues/1/events","html_url":"https://github.com/beller0ph0nt/ScalperTest/issues/1","id":68243825,"number":1,"title":"Проблема при случайном выборе первоначальной скорости объекта","user":{"login":"beller0ph0nt","id":11505806,"avatar_url":"https://avatars.githubusercontent.com/u/11505806?v=3","gravatar_id":"","url":"https://api.github.com/users/beller0ph0nt","html_url":"https://github.com/beller0ph0nt","followers_url":"https://api.github.com/users/beller0ph0nt/followers","following_url":"https://api.github.com/users/beller0ph0nt/following{/other_user}","gists_url":"https://api.github.com/users/beller0ph0nt/gists{/gist_id}","starred_url":"https://api.github.com/users/beller0ph0nt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beller0ph0nt/subscriptions","organizations_url":"https://api.github.com/users/beller0ph0nt/orgs","repos_url":"https://api.github.com/users/beller0ph0nt/repos","events_url":"https://api.github.com/users/beller0ph0nt/events{/privacy}","received_events_url":"https://api.github.com/users/beller0ph0nt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-14T02:37:50Z","updated_at":"2015-04-14T02:37:50Z","closed_at":null,"body":"В настоящий момент скорость выбирается из диапазона от [-10; 10].\r\nНеобходимо убрать из этого диапазона 0, иначе игровой объект может не двигаться по одной из осей координат (Хотя возможно это нормально).\r\nдля реализации этого метода можно использовать массив с нужными элементами, а\r\nиндекс элемента генерировать случайным образом.\r\nlocal m = {-2, -1, 1, 2}\r\nprint(m[math.random(#m)])"}}