Render Targets


Smooth-scrolling render-target

Here we have switched from 1-pixel-wide solids to lines.   In order to avoid re-drawing dozens of lines, we first draw the entire playfield onto a render-target which is 3-screens wide, then we treat that render-target as a sprite, rendering a subset 1-screen wide and offset by our imaginary X position

Source Code for this experiment

https://github.com/Kehvarl/DR_Experiments/blob/851cd43e9fa1fb43b6552e03e97d80d8e...


Get Experiments

Leave a comment

Log in with itch.io to leave a comment.