mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-27 20:28:54 +01:00
d110716dc0
Closes #1950
20 lines
235 B
Go
20 lines
235 B
Go
package main
|
|
|
|
func Foo() vec2 {
|
|
v := vec2(0)
|
|
for i := 0; i < 100; i++ {
|
|
v.x += float(i)
|
|
if v.x >= 100 {
|
|
break
|
|
}
|
|
}
|
|
v2 := vec2(0)
|
|
for i := 10.0; i >= 0; i -= 2 {
|
|
if v2.x < 100 {
|
|
continue
|
|
}
|
|
v2.x += i
|
|
}
|
|
return v
|
|
}
|