Skip to content

Commit 0faa6b6

Browse files
committed
remapped seed randomizer key
1 parent 23cf7dd commit 0faa6b6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/builtin-goodies.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Noise3D(x float64, y float64, z float64) float64
5454
There are 3 builtin keybindings to control the seed:
5555
- "Up Arrow": increments the seed
5656
- "Down Arrow": decrements the seed
57-
- "Num Pad .": sets a random seed
57+
- "/": sets a random seed
5858

5959
This builtin capability was inspired by [vsketch](https://github.com/abey79/vsketch), which has a GUI control with
6060
similar functionality that I found invaluable when experimenting with designs.

sketch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func (s *Sketch) UpdateControls() {
130130
controlsChanged = true
131131
fmt.Println("RandomSeed decremented: ", s.RandomSeed)
132132
}
133-
if inpututil.IsKeyJustReleased(ebiten.KeyNumpadDecimal) {
133+
if inpututil.IsKeyJustReleased(ebiten.KeySlash) {
134134
s.RandomSeed = rand.Int63()
135135
s.Rand.SetSeed(s.RandomSeed)
136136
controlsChanged = true

0 commit comments

Comments
 (0)