remove ANOTHER fmt

This commit is contained in:
Octopus Octopus 2024-03-17 15:04:49 -05:00
parent fefe7c9dff
commit b7c7b057c7
2 changed files with 1 additions and 3 deletions

View File

@ -1,7 +1,6 @@
package main package main
import ( import (
"fmt"
"image" "image"
"math/rand" "math/rand"
@ -12,11 +11,10 @@ type bubbles map[string](*bubble)
func (b bubbles) draw(x int, y int) *gg.Context { func (b bubbles) draw(x int, y int) *gg.Context {
dc := gg.NewContext(x, y) dc := gg.NewContext(x, y)
for key, i := range b { for _, i := range b {
px, py := 0, 0 px, py := 0, 0
noCollision := false noCollision := false
for !noCollision { for !noCollision {
fmt.Printf("=== key: %v\n", key)
// the nature of pinging for points is that you can always end up with something // the nature of pinging for points is that you can always end up with something
// in between points if one is sufficently large and the other is sufficently small. // in between points if one is sufficently large and the other is sufficently small.
px, py = rand.Intn(x-i.SizeX)+i.SizeX/2, rand.Intn(y-i.SizeY)+i.SizeY/2 px, py = rand.Intn(x-i.SizeX)+i.SizeX/2, rand.Intn(y-i.SizeY)+i.SizeY/2

BIN
map

Binary file not shown.