2D Vectors: Position, Velocity & Normalised Diagonal Movement
This lesson is part of the course
In this lesson
You turn key inputs into movement vectors, measure their length with SQRT, normalise them so diagonals are not faster, and move a player frame by frame.
Buy the course once for $9.99 to unlock every lesson and lab, the final exam and the certificate – lifetime access, no subscription.
Lessons in this course
- 2D Vectors: Position, Velocity & Normalised Diagonal Movement Locked
- Frame-Rate Independence: Speed × Delta Time at 30, 60 and 144 fps Locked
- Acceleration, Friction & Top Speed Frame by Frame Locked
- Easing Curves: Linear, Ease-In, Ease-Out, Smoothstep & Sine Locked
- Collision Checks: Circles, Boxes & Hit Counts Locked
- Aiming & Rotation: Angle to Target, Rotating Points & Turn Speed Locked
- Damage Formulas: Attack vs Armour, Crits, DPS & Time to Defeat Locked
- Difficulty Curves: Enemy Stats per Level, Spawn Rates & Time to Defeat Locked