mirror of
https://github.com/lloeki/ld48-29.git
synced 2025-12-06 02:54:40 +01:00
clean compute
This commit is contained in:
parent
656ced6742
commit
98ebd8cfda
1 changed files with 2 additions and 2 deletions
|
|
@ -103,8 +103,8 @@ func spriteQuad(x int, y int, w int, h int) {
|
|||
|
||||
x1 := x * unit
|
||||
y1 := y * unit
|
||||
x2 := x * unit + w * unit
|
||||
y2 := y * unit + h * unit
|
||||
x2 := x1 + w * unit
|
||||
y2 := y1 + h * unit
|
||||
|
||||
rx1 := float32(x1) / float32(size)
|
||||
rx2 := float32(x2) / float32(size)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue