3 ms·
It reminds me of a funny story back when I was a student. We had a week-long group project in the first year whose theme was "a 360° pong". Our group decided t
by boricj 4y ago
It reminds me of a funny story back when I was a student.
We had a week-long group project in the first year whose theme was "a 360° pong". Our group decided that it meant the paddles had to travel in a circle around the playfield and I've decided that matrices and stacked 2D transformations were the way to go. The other students gave me blank stares, I basically said "trust me, you don't need to understand them to use them" and off we went coding.
We ended up with the most impressive pong clone out of all the groups, as nearly all of them had axis-aligned rectangular paddles going around a rectangular path, whereas ours had a stretched half-circle paddle going around a circle path always facing the center of the playfield, alongside extra features like walls and a level editor.
First class the Monday morning after, the math teacher announced that the next topic was matrices. We stared at each other in the group and grinned manically.
If anyone wants to stare at an old C codebase from 10 years ago by a bunch of first year students: https://code.google.com/archive/p/pong-norris/ https://code.google.com/archive/p/pong-norris/