Re: Simple Raylib Example
- Posted by Icy_Viking Aug 17, 2019
- 1097 views
irv said...
For fun, I translated this to run under EuGTK in a window. Uses Cairo for the graphics:
https://openeuphoria.org/pastey/308.wc
You'll note that there is an unnatural result when the two collide. Someone want to fix that?
Two things I'd like to do:
1. Add more balls (the program is structured to make this easy)
2. Figure out how to check for collisions when more than 2 are bouncing! (not easy, I suspect!)
That was fun to look at the GTK example. The collision detection in mine isn't perfect, but it works. It would be very easy to add more balls and maybe even make a little small little game out of it.