SFML community forums
General => General discussions => Topic started by: burningprodigy on July 08, 2012, 11:17:52 am
-
I'm creating a rogue-like tile-based 2d RPG game. What I want to know is, say there are sprites outside the screen which are drawn with the `App.Draw()` method. Now, will the `Draw()` method automatically not draw the sprites which are off-screen, or will I have to personally write code to prevent the drawing of off-screen sprites? I've made some games with Java2D and Swing, there the toolkit automatically does not draw off-screen images, does SFML do the same?
(https://dl.dropbox.com/u/51527234/a1.png)
-
You have to write it yourself. ^^
(very easy for tile-based game)