2 ms·
That bouncing ball, is from GLBoing.c (can be found in glfw), like here: https://github.com/g-truc/ogl-samples/blob/master/external/glfw-3.1.1/examples/boing.c
by malkia 7y ago
That bouncing ball, is from GLBoing.c (can be found in glfw), like here: https://github.com/g-truc/ogl-samples/blob/master/external/glfw-3.1.1/examples/boing.c https://github.com/g-truc/ogl-samples/blob/master/external/g...
or luajit version:
https://github.com/malkia/ufo/blob/master/samples/glfw/boing.lua https://github.com/malkia/ufo/blob/master/samples/glfw/boing...
git clone https://github.com/malkia/ufo
cd ufo
luajit samples/glfw/boing.lua
(should work on Windows, may still work on Linux/OSX)
- simonebrunozzi 7y agoHacker News thread from 2016: "The Amiga Boing Ball Explained" [0] [0]: https://news.ycombinator.com/item?id=12330689 https://news.ycombinator.com/item?id=12330689
- egypturnash 7y agoThe bouncing ball is from the "Boing" demo, written in 1985 by two of the people who wrote much of the Amiga's OS. GLBoing is a clone of it from much later - at least 1992, what with that being the year the first version of OpenGL game out. The first 28 lines of your first link are a comment block saying just that.
- malkia 7y agoMust've forgotten about it really. Thanks! The commercial just reminded me when I was porting it to lua ages ago. (Never owned Amiga myself, but Apple ][)