MelbourneHighSchoolRobotics / ev3sim

A simulator for soccer robots programmed with ev3dev.
https://ev3sim.mhsrobotics.club
Other
11 stars 8 forks source link

Split soccer code into multiple files. #223

Closed glipR closed 3 years ago

glipR commented 3 years ago

Not going to do the same thing for rescue @jtbui20 , the code for that is way too ugly.

I think the best way to move forward is:

Soccer: This preset (and rescue) were made before pygame_gui was added to the project. Since then adding UI to the presets has been made a lot simpler, see for example the code in https://github.com/MelbourneHighSchoolRobotics/ev3sim_custom_presets/blob/main/colorSensing/preset/preset.py (Some of the boilerplate in there around button theming can be removed but i cbf. So it's probably best if we do redesign soccer to build the ui from scratch using the new system.

Rescue: That entire script is just one big prototype, so once you are ready lets discuss on paper or whiteboard what you want the ui to be / how it should function, then I can help rewrite that mess (And you can write the ui portion in a file similar to ui.py in this PR).