Added grid render.

Added particle toggle.
Added boundary shape adjustment.
This commit is contained in:
2025-12-05 09:22:20 -05:00
parent d37413a400
commit a15c89d769
4 changed files with 225 additions and 93 deletions

View File

@@ -234,9 +234,17 @@ func (g *Game) ManageFluidSim10Inputs() {
g.mdown = false
}
}
if inpututil.IsKeyJustPressed(ebiten.KeyB) {
for _, sim := range g.fluidsim10 {
sim.ToggleShape()
}
}
func (g *Game) ManageFluidSimGPTInputs() {
if inpututil.IsKeyJustPressed(ebiten.KeyV) {
for _, sim := range g.fluidsim10 {
sim.ToggleParticles()
}
}
}
@@ -244,6 +252,7 @@ func (g *Game) Initialize() {
g.fluidsim10 = append(g.fluidsim10, elements.NewFluidSim10())
g.fluidsim10 = append(g.fluidsim10, elements.NewFluidSim10())
//g.fluidsim10 = append(g.fluidsim10, elements.NewFluidSim10())
g.fluidsim10width = float64(g.fluidsim10[0].GetSprite().Bounds().Dx())
g.fluidsim10height = float64(g.fluidsim10[0].GetSprite().Bounds().Dy())