mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
gofmt -s -w
This commit is contained in:
parent
d488fd7fcb
commit
c30918261b
@ -95,13 +95,13 @@ var (
|
|||||||
// 2. try to go straight (index+0)
|
// 2. try to go straight (index+0)
|
||||||
// 3. try to turn right (index+1)
|
// 3. try to turn right (index+1)
|
||||||
dirCycles = [2][3]int{
|
dirCycles = [2][3]int{
|
||||||
[3]int{1, 0, 3}, // cw
|
{1, 0, 3}, // cw
|
||||||
[3]int{3, 0, 1}, // ccw
|
{3, 0, 1}, // ccw
|
||||||
}
|
}
|
||||||
|
|
||||||
// dirs contains vectors for the directions: east, south, west, north
|
// dirs contains vectors for the directions: east, south, west, north
|
||||||
// in the specified order.
|
// in the specified order.
|
||||||
dirs = [4]vec2{vec2{1, 0}, vec2{0, 1}, vec2{-1, 0}, vec2{0, -1}}
|
dirs = [4]vec2{{1, 0}, {0, 1}, {-1, 0}, {0, -1}}
|
||||||
|
|
||||||
// neighbors defines neighboring cells depending on the moving
|
// neighbors defines neighboring cells depending on the moving
|
||||||
// direction of the squiral:
|
// direction of the squiral:
|
||||||
@ -109,8 +109,8 @@ var (
|
|||||||
// index of 1 -> squiral moves horizontally.
|
// index of 1 -> squiral moves horizontally.
|
||||||
// These neighbors are tested for "collisions" during simulation.
|
// These neighbors are tested for "collisions" during simulation.
|
||||||
neighbors = [2][2]vec2{
|
neighbors = [2][2]vec2{
|
||||||
[2]vec2{vec2{0, 1}, vec2{0, -1}}, // east, west
|
{{0, 1}, {0, -1}}, // east, west
|
||||||
[2]vec2{vec2{1, 0}, vec2{-1, 0}}, // south, north
|
{{1, 0}, {-1, 0}}, // south, north
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user