Spline , Curve editor with pygame ( catmul rom spline ) with pygame python
- "R" : to show boundary lines
- "F" : to show wireframe mode
- "Q" : to change the Theme
- "Esc" : to quit without saving the tracks modification
- "Enter(Return) or P" : to the parameter panel
- "WASD or Arrows keys" : to control the car
For a much better ai of self driving car , you should try to get maybe four output for brake, accelerate, left and right
instead of just left and right as i did. Although this might take a lot of time to train but it definetly the better way to do it.
If you want a track with a higher resolution and a higher control point , you can change this parameters in the constants file
Also When you load your saved data try to check if the N_points and spline_resolution are the same with the variables of the saved tracks,
if they are not the same this might cause the saved track to look weird , to solve that issue you just have to change the n_points and
spline resolution in the constants file to the value store the SavedTrack[“variables”], …
sorry for the 🍝 code , enjoy✌️