Screen Wrap Formula @derekbanas
Screen Wrap Formula  @derekbanas
Uploaded September 2026 | Updated December 2026, 3 hours ago
Fly off the right edge of an Asteroids screen and you come back on the left.That is one modulo per axis and then almost everybody stops there, and their ship teleports across instead of sliding across, because they wrapped the position and forgot the drawing.

A ship that is half off the right edge has to be visibly half on the left edge at the same instant, which means drawing it twice near a seam. In this one the wrong version runs beside the right one so you can watch the difference.

Then the payoff: the play area folds. Left edge onto right gives you a
cylinder, top edge onto bottom gives you a torus, and a torus has no edges at all. Your Asteroids screen was never a rectangle.

Game Shorts #4. One mechanic per video, then the full game in long form. Next up: rotation and thrust which is the rest of Asteroids.
Screen Wrap FormulaMultiply Anything By 11 InstantlyHappy Holidays : I Made You a PresentSchool Taught You Subtraction BackwardsTrigonometry 4 : Reference AnglesxTool D1 Laser Cutter and EngraverCalculus Chain RuleLinear Algebra 25 : Change of Basis MatrixMakeblock NextMaker Subscription Box 2After Effects 2021 Expression LanguageCalculus 1 Full CourseTransfer Learning with TensorFlow
Derek Banas |

Screen Wrap Formula

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER