updated spm package
This commit is contained in:
parent
3f67a0a6de
commit
7373e47c1d
11 changed files with 594 additions and 475 deletions
|
@ -25,7 +25,7 @@ func InitBackground(width, height int) {
|
|||
for i := range particles {
|
||||
particles[i].Pos = rl.Vector2{X: float32(rng.Intn(width)), Y: float32(rng.Intn(height))}
|
||||
particles[i].Vel = rl.Vector2{X: (rng.Float32() - 0.5) * 0.2, Y: (rng.Float32() - 0.5) * 0.2}
|
||||
particles[i].Size = rng.Float32()*1.5 + 0.5 // Particles size ~0.5-2.0
|
||||
particles[i].Size = rng.Float32()*1.5 + 0.5
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue