kevin6569 Posted March 23, 2020 Share Posted March 23, 2020 I am slowly working through Oscar's book and cannot wrap my head around FRAME command. He uses it in the game 'Monkey Ball' to chech which MOB to display when the controller is pressed. Thanks Kevin Quote Link to comment Share on other sites More sharing options...
carlsson Posted March 23, 2020 Share Posted March 23, 2020 FRAME is an internal counter that automatically counts up to 65535 frames, i.e. number of times you have reached vertical refresh. What is done in Monkey Moon is using that counter to determine which MOB to display: FRAME/4 to get a change of MOB every fourth frame, and then AND 3 to get a number 0-3 that says which MOB to change into. By relying on the FRAME counter you can get relatively smooth movement without having to run your own delay counters. By the way, you're posting in a subforum once used for the IntyBASIC contest from 2018. Possibly you want to post your topics one level higher, directly in the Intellivision Programming subforum. 2 Quote Link to comment Share on other sites More sharing options...
kevin6569 Posted March 23, 2020 Author Share Posted March 23, 2020 Thank you for the clarifications - I will direct my future questions (I'm sure I'll have more) one level up. Thank you for the quick response! 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.