mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 13:07:26 +01:00
14 lines
157 B
Go
14 lines
157 B
Go
|
package main
|
||
|
|
||
|
func Foo() vec2 {
|
||
|
v := vec2(0)
|
||
|
for i := 0; i < 100; i++ {
|
||
|
v.x++
|
||
|
}
|
||
|
v2 := vec2(0)
|
||
|
for i := 10.0; i >= 0; i -= 2 {
|
||
|
v2.x--
|
||
|
}
|
||
|
return v
|
||
|
}
|