-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #85 from oakmound/release/2.2.0
Release/2.2.0
- Loading branch information
Showing
19 changed files
with
195 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package move | ||
|
||
// ShiftX will ShiftX on the vector of the mover and | ||
// set the renderable and space positions to that of the updated vector. | ||
func ShiftX(mvr Mover, x float64) { | ||
vec := mvr.Vec() | ||
vec.ShiftX(x) | ||
mvr.GetRenderable().SetPos(vec.X(), vec.Y()) | ||
sp := mvr.GetSpace() | ||
sp.Update(vec.X(), vec.Y(), sp.GetW(), sp.GetH()) | ||
} | ||
|
||
// ShiftY will ShiftY on the vector of the mover and | ||
// set the renderable and space positions to that of the updated vector. | ||
func ShiftY(mvr Mover, y float64) { | ||
vec := mvr.Vec() | ||
vec.ShiftY(y) | ||
mvr.GetRenderable().SetPos(vec.X(), vec.Y()) | ||
sp := mvr.GetSpace() | ||
sp.Update(vec.X(), vec.Y(), sp.GetW(), sp.GetH()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.