• 2 Posts
  • 4 Comments
Joined 11 months ago
cake
Cake day: October 20th, 2023

help-circle




  • Thank you very much. The following is for any future visitor who ends up here with a similar question.

    One of my challenges with this example code is that the make-ball function was in a let*. The original example authors were using a move-ball function in their main game loop. So, inspired by your suggestion I wrote a color-ball function with a setf for the color slot of the shape object. Then I wrote an upd-ball function that just called move-ball and then color-ball internally using the ball object created in the let. Then, it all works great. If I adjust the “move-ball” function and recompile the ball speed changes, and if I adjust the “color-ball” function the color changes.

    Since you were kind of enough to respond, do you have a recommendation among the raylib wrappers (or the sdl or allegro wrappers or others, including yours) that you recommend as being particularly beginner friendly and also encouraging of good habits for someone learning some simple graphics manipulation with CL?