{"action":"created","issue":{"url":"https://api.github.com/repos/paked/engi/issues/19","labels_url":"https://api.github.com/repos/paked/engi/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/paked/engi/issues/19/comments","events_url":"https://api.github.com/repos/paked/engi/issues/19/events","html_url":"https://github.com/paked/engi/issues/19","id":113097441,"number":19,"title":"Rendering of sprites","user":{"login":"matiwinnetou","id":335933,"avatar_url":"https://avatars.githubusercontent.com/u/335933?v=3","gravatar_id":"","url":"https://api.github.com/users/matiwinnetou","html_url":"https://github.com/matiwinnetou","followers_url":"https://api.github.com/users/matiwinnetou/followers","following_url":"https://api.github.com/users/matiwinnetou/following{/other_user}","gists_url":"https://api.github.com/users/matiwinnetou/gists{/gist_id}","starred_url":"https://api.github.com/users/matiwinnetou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matiwinnetou/subscriptions","organizations_url":"https://api.github.com/users/matiwinnetou/orgs","repos_url":"https://api.github.com/users/matiwinnetou/repos","events_url":"https://api.github.com/users/matiwinnetou/events{/privacy}","received_events_url":"https://api.github.com/users/matiwinnetou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-23T20:50:02Z","updated_at":"2015-10-23T22:00:20Z","closed_at":null,"body":"Having spend like hours looking at the code I seem to understand why I cannot render a tile from a tile map or a sprite from a sprite map.\r\n\r\n```\r\nfunc (r *Region) Render(b *Batch, render *RenderComponent, space *SpaceComponent) {\r\n\tr.texture.Render(b, render, space)\r\n}\r\n```\r\n\r\nThis function simply renders texture, but that is not what I want. When I, however, want to render a sprite it doesn't work with a ECS system. It looks like it's render method has been only implemented for *Batch.\r\n\r\nI don't get these batches but even if I did I think this is some legacy from the old forked engine, which does not seem to be ECS based.\r\n\r\nWould it make sense to make Sprite \"Renderable\" so that it satisfies the contract from Renderable type? For me this is the most natural progression but I don't get of this if it has not been implemented due to lack of time or I am missing something fundamental here.\r\n\r\nCan you open a Gitter channel please? Have you heard of gitter? It is perfect for OpenSource project, not Slack (IMHO). "},"comment":{"url":"https://api.github.com/repos/paked/engi/issues/comments/150703046","html_url":"https://github.com/paked/engi/issues/19#issuecomment-150703046","issue_url":"https://api.github.com/repos/paked/engi/issues/19","id":150703046,"user":{"login":"matiwinnetou","id":335933,"avatar_url":"https://avatars.githubusercontent.com/u/335933?v=3","gravatar_id":"","url":"https://api.github.com/users/matiwinnetou","html_url":"https://github.com/matiwinnetou","followers_url":"https://api.github.com/users/matiwinnetou/followers","following_url":"https://api.github.com/users/matiwinnetou/following{/other_user}","gists_url":"https://api.github.com/users/matiwinnetou/gists{/gist_id}","starred_url":"https://api.github.com/users/matiwinnetou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matiwinnetou/subscriptions","organizations_url":"https://api.github.com/users/matiwinnetou/orgs","repos_url":"https://api.github.com/users/matiwinnetou/repos","events_url":"https://api.github.com/users/matiwinnetou/events{/privacy}","received_events_url":"https://api.github.com/users/matiwinnetou/received_events","type":"User","site_admin":false},"created_at":"2015-10-23T22:00:20Z","updated_at":"2015-10-23T22:00:20Z","body":"I have first success to render a sprite.\r\n\r\nhttps://github.com/matiwinnetou/engi/commit/7a3bab3e9adcb294b7b5425fa62c08d818fbca16\r\n\r\nI wrote own method:\r\n\r\nin assets.go\r\n\r\nfunc (s *Sprite) Render(b *Batch, render *RenderComponent, space *SpaceComponent) {\r\n\tb.Draw(s.Region, s.Position.X, s.Position.Y, s.Anchor.X, s.Anchor.Y, s.Scale.X, s.Scale.Y, s.Rotation, s.Color, s.Alpha)\r\n}\r\n\r\nprobably totally wrong but first success :)"}}