itch.io is community of indie game creators and players

Devlogs

Render Targets

Experiments
A browser project made in HTML5

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...


Download Experiments
Leave a comment