Render sprites from sprite sheets (no animation yet)

This commit is contained in:
stevenhowes
2022-01-17 22:36:05 +00:00
parent fa13e4c97b
commit 2bf460b999
5 changed files with 80 additions and 5 deletions
+5
View File
@@ -7,6 +7,11 @@ type Vector struct {
Y float64
}
type VectorInt32 struct {
X int32
Y int32
}
func vectorAdd(v1, v2 Vector) Vector {
return Vector{
X: v1.X + v2.X,