Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Sprite out of Screen

Author
Message
pepebotellas
14
Years of Service
User Offline
Joined: 22nd Jan 2010
Location:
Posted: 26th Jan 2010 18:27
Hi,
I have used SDL for some time and decided to try DarkGDK. So far I am liking it a lot.

I remember that on SDL, if your sprite was out of screen, you shouldn't draw it because bad things could happen. ( I can't remember what exactly)

How about on DarkGDK? suppose my screen is 500x500, and I move my sprite out of the boundaries, will there be any side effect? or is DarkGDK smart enough to detect this and deal with it accordingly.

I know I could simply hide the sprite and stop moving it once it reaches the border, but it will simplify a couple of things if I can just forget about it and assume that it won't break anything.
Hassan
15
Years of Service
User Offline
Joined: 4th May 2009
Location: <script> alert(1); </script>
Posted: 26th Jan 2010 18:30
i dont think it's a problem to make a sprite outside the screen

Login to post a reply

Server time is: 2024-11-20 05:23:40
Your offset time is: 2024-11-20 05:23:40