Seeing as I only have two days until my schooling officially starts, I am currently figuring out what I should learn for the upcoming few semesters. The maze is complete for now, with a new font that can be more easily read. I could add on a couple more elements, but they may not be implemented in time for class to start.
Until then, I've decided to go back to a 68K program I had been working on and study some portions of Unreal that I am unfamiliar with, such as the specific workings of a quaternion (the vector/scalar, and translating to axis/angle and a rotation matrix for easier understanding) and inverse kinematics in Unreal's examples, in which a figure does jumping jacks on stairs by calculating the offset of the foot from the object via a (costly) Tick-based trace to the ground, and using the offset to displace the joint at that point.
As for 68K, I fixed a simple program involving playing a sound and moving a square by setting eight more sections of code (each to change the current direction and move in that direction) before halting and shutting off the sound properly so it wouldn't keep playing after SIMHALT. Luckily, a faculty member pointed out the existence of a help section in Easy68K that actually listed all the trap tasks, so I was able to utilize trap task 73 (controlling a standard sound player and stopping all sounds by putting the number 3 in register d2) and understand how the rectangle was created (d1 = lowerX bound, d2 = lowerY bound, d3 = upperX bound, d4 = upperY bound) for moving in specific directions. The only thing I'd have to get more comfortable with is pushing things on the stack more often; I push the rectangle coordinates on the stack whenever I utilize another trap task (such as clearing the screen with #11), so by pushing more on the stack I can add more variables for more complex programs. Who knows? Down the line when school starts, I can even draw a sprite in due time. That will wait until Monday...
No comments:
Post a Comment