I know this is already super well known to most people but it was so easy to implement, I just HAD to share it. Basically, find the distance between two points and if that distance is shorter than the the two radii added together, they intersect. To implement in your favorite programming language, simply subtract … Continue reading Circular collision detection
NSpire game development framework
Update: Open Source'd! https://code.google.com/p/nspire-gamekit/ Been busy working on a homebrew game development framework for NSpire calculators. On top of that, I'm building a Plane port. So far, it works and I'm quite happy with it 😀 Features (so far): Super easy to use - handles the game loop for you efficiently. Just set FPS and … Continue reading NSpire game development framework
Collision detection on iOS
I started developing plane for iOS recently. It's a hacked up port of the original game I made when I was young. It was an excellent way to learn the iOS SDK and Objective-C. Anyway, down to business... The initial collision detection I implemented was a very crude one that simply checks if the bounding … Continue reading Collision detection on iOS
Making a small, quiet print server
I had a spare laptop laying around gathering dust since the hard drive died. I did reuse it at one point for a media center and server but it was too high maintenance and I already had a PS3 to stream media. So, I decided it was going to be a print server now. Unfortunately, … Continue reading Making a small, quiet print server
Sorting out CSS float collapses
As an amateur web developer, one of the first problems I encountered was that floated elements with non-floated parent elements will cause the parent to collapse. This can cause headaches later on. There are many solutions to this problem - a small list can be found in this thread on StackOverflow. The solution I used … Continue reading Sorting out CSS float collapses
A proper movie player for TI NSpire calculator
Update5: Yeah, found the problems in libmpeg2. It was nothing wrong with the library (well, except some signedness issues), it was my linker which didn't correctly update the function pointers in the arrays. A quick workaround was to convert everything into switch statements. The signedness issue was to do with the state enumeration. STATE_INTERNAL_NORETURN was … Continue reading A proper movie player for TI NSpire calculator
Rick Roll on the TI-NSpire calculator
It's the school holidays, and again, I have been left really bored. So, I dug out my CAS calculator, put Ndless on and began writing programs. Eventually, I came up with calculator RickRoll. I hacked up some programs and put it on the calculator that allowed to me to watch videos (though they are extremely … Continue reading Rick Roll on the TI-NSpire calculator