Skip to content

Commit

Permalink
Add helper function
Browse files Browse the repository at this point in the history
  • Loading branch information
unitoftime committed Jan 7, 2025
1 parent b9cf736 commit 3036696
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions render/sprite.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,17 @@ import "github.com/unitoftime/flow/glm"
//cod:component
type Transform struct {
glm.Vec2
Rot float64
Height float64
// transform.Transform
}
func TransformFromPos(pos glm.Vec2) Transform {
return Transform{
pos,
0,
0,
}
}

// // Represents multiple sprites
// type MultiSprite struct {
Expand Down

0 comments on commit 3036696

Please sign in to comment.