Skip to content

Commit

Permalink
try diff imageflip structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Robertson committed Jan 17, 2023
1 parent ae7ae67 commit fbd615c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/metalix2/PiGames
module github.com/metalix2/pigames

go 1.19

Expand Down
3 changes: 0 additions & 3 deletions imageFlip/go.mod

This file was deleted.

File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"math"
"time"

"github.com/metalix2/PiGames/imageFlip"
"pigames/imageflip"
"github.com/itchyny/maze"

"periph.io/x/conn/v3/i2c/i2creg"
Expand Down Expand Up @@ -193,8 +193,8 @@ func drawEnding(w, h int, src, src2, src3 image.Image, prev_coords map[string]in

// Draw Avatar and it's Orientation
if dir > 0 {
draw.Draw(img, r1, flip(src), image.Point{1, 1}, draw.Src)
draw.Draw(img, r2, flip(src2), image.Point{1, 1}, draw.Src)
draw.Draw(img, r1, imageflip.Flip(src), image.Point{1, 1}, draw.Src)
draw.Draw(img, r2, imageflip.Flip(src2), image.Point{1, 1}, draw.Src)
} else {
draw.Draw(img, r1, src, image.Point{0, 0}, draw.Src)
draw.Draw(img, r2, src2, image.Point{0, 0}, draw.Src)
Expand Down Expand Up @@ -288,7 +288,7 @@ func drawCanvas(w, h int, src image.Image, prev_coords map[string]int, next_coor

// Draw Avatar and it's Orientation
if dir > 0 {
draw.Draw(img, r, flip(src), image.Point{1, 1}, draw.Src)
draw.Draw(img, r, imageflip.Flip(src), image.Point{1, 1}, draw.Src)
} else {
draw.Draw(img, r, src, image.Point{0, 0}, draw.Src)
}
Expand Down

0 comments on commit fbd615c

Please sign in to comment.