From a9223797530233857487eb362b28c59caf693158 Mon Sep 17 00:00:00 2001 From: faiface Date: Fri, 28 Apr 2017 18:11:29 +0200 Subject: [PATCH] fix two typos in comments in platformer example --- platformer/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platformer/main.go b/platformer/main.go index 73974cd..ee2971e 100644 --- a/platformer/main.go +++ b/platformer/main.go @@ -116,7 +116,7 @@ func (gp *gopherPhys) update(dt float64, ctrl pixel.Vec, platforms []platform) { gp.vel += pixel.Y(gp.gravity).Scaled(dt) gp.rect = gp.rect.Moved(gp.vel.Scaled(dt)) - // check collisions agains each platform + // check collisions against each platform gp.ground = false if gp.vel.Y() <= 0 { for _, p := range platforms { @@ -213,7 +213,7 @@ func (ga *gopherAnim) draw(t pixel.Target, phys *gopherPhys) { if ga.sprite == nil { ga.sprite = pixel.NewSprite(nil, pixel.Rect{}) } - // draw the correct frame with the correct positon and direction + // draw the correct frame with the correct position and direction ga.sprite.Set(ga.sheet, ga.frame) ga.sprite.SetMatrix(pixel.IM. ScaledXY(0, pixel.V(