Render Targets
Experiments » Devlog
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
Experiments
Playing around in DR, trying to solve little projects.
Status | In development |
Category | Other |
Author | Kehvarl |
More posts
- Making a better (mini) World (map)Mar 15, 2022
- Different generation modes and render targetsMar 07, 2022
Leave a comment
Log in with itch.io to leave a comment.