mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
7ee8d1aa5f
Because golang executes the init function after establishing the variables in the var block, the random number seed wasn't initializing until after the initial world state had gotten established (leading to an identical game of Life on every run). To fix this, we establish an empty world in the var block, and then populate it in the init function after the random number generator has been seeded. |
||
---|---|---|
.. | ||
main.go | ||
README.md |