News on the go!
News:| Windmill Is a Quick and Dirty zx81 Animation |
| Programming: 10/30/17 - 22:32:49 Posted By: Steven |
Prep work. Going through this stash from ’98, I realized I'd meant them for my original ZX81 site. Not only were there programs, but I’d printed screenshots and listings. None, of course, found their way to my site. Heck, some I’d even typed in again. Oops. The cool part, though, is I now have a few more programs to share. Windmill power. Also, there is a power turbine that rotates along with the blades. The original idea was to show dots of electricity flowing, but I didn’t add it. I still think it would have been a nice feature, but otherwise looks fine. To be honest, the effect works better than I expected. The two animations, as simple as they are, are pleasing to watch. The blades have a bit of a lag to them that adds a bit to the effect. Although, I find the faster speeds look better. Problems and fixes. 130 LET S=S-(S-(SGN S*20))+ To be honest, the math is broke. No matter what you enter the answer is 20, except if you enter 1 or 20. In that case, you get 21. Of course, if the number doesn’t change, neither does the animation. I'm sure I tested it, but must not of bothered to dig deeper once I found it worked. Sure, I could have left the original version, but it bugged me having a broken program. It is already pretty short, so leaving such an obvious bug in it was problematic. Time for a fix. 130 LET S=(20-S)*2 In this version, the larger the number is, the smaller the delay. Perfect. This is exactly what I wanted. Now, if you enter in a speed it will change the rotation rate of the blades. To widen the difference between speeds, I multiplied the result by two. Not required, I found it worked best while testing. Future improvements. But, this was 1985. Not having the references I do today, I can forgive my vision. Yet, I’m confused by the interactive nature of the program. If I were to change something, it would be how you interact with the Windmill. First, I’d remove the the duration. Having a set time for the animation to run is silly and unnecessary. The abrupt ending to the animation is jarring. Removing it would look much better. Second, I could have removed the Removing the To be honest, the program still works well enough. The changes offered would make it better, they aren’t required. Yet, if you decide to try them, I’d sure like to see the result. Originally published at www.reids4fun.com on October 30, 2017. |
----------------------- All comments and posts are owned by the poster. [End News] | [Return Home] |