I want to make my own game rendering style, but I want to know how to present a sprite on specific coordinates in SFML. I know that you can do things like Make a function that takes a window and sprite from context. {// set straight position, then grab it} / Pre> Then you can call it like this: which is as simple as: sprite.setPositon (20, 56) , but I like it more like
window.drawAt (mySprite, 20, 56) I want to do it, because it will be very easy.
drawAt (window, image, 20, 56);
window.drawAt (mySprite, 20, 56);
No comments:
Post a Comment