ekiefl / pooltool

A sandbox billiards game that emphasizes realistic physics
https://pooltool.readthedocs.io
Apache License 2.0
234 stars 37 forks source link

Making a drill session custom layout #131

Open st4ycool opened 3 months ago

st4ycool commented 3 months ago

Hey! I tried to make a drill layout to exercise but failed to find the right place to do it. Could you please give a hint on how to do it most simply?

ekiefl commented 2 months ago

You'll have to be more specific.

yuriianikin-nc commented 2 months ago

Aim was to just put balls in a particular layout. E.g. six balls near each corner.

And the level up would be to spawn a ball after each pot

ekiefl commented 2 months ago

Sorry, that's not easy right now.

You could make a specific layout with the infrastructure provided in pooltool/layouts.py and then make a specific game with the infrastructure provided in pooltool/game/. Finally, change line 543 of pooltool/ani/animate.py to select your new practice mode.