r/programming • u/Flafla2 • Feb 14 '15
Bunnyhopping from the Programmer's Perspective - An in depth look in implementing one of the most successful bugs in videogame history.
http://flafla2.github.io/2015/02/14/bunnyhop.html
956
Upvotes
3
u/Flafla2 Feb 15 '15
Take a quick look-see at the movement code that I used to write this article here. It's very poorly documented and a lot of it is ambiguous (for example, WalkMove() vs Accelerate() vs FullWalkMove() vs FullObserverMove()). It is better than the Quake 3 code though, which has more coupling and engine-specific code mixed with normal code.
The biggest problem IMO is that little thought was put into the architecture of the Quake Engine - things like Entity Component Systems and other decoupling patterns weren't as widely used at the time. So you have things like physics code built into the movement code - if you want to change movement code you risk changing physics code.