Vincehood Posted February 27, 2021 Share Posted February 27, 2021 Hello, I attach a small program that address my basic requirements for some game controls: - disc left or right only -> sprite turns left or right - bottom button only -> sprite flights straight up - bottom button + disc left or right only -> sprite flights in upper left or right direction - high button: fire However I would like the controller to behave in the following way: - no auto-fire/auto-flight when the buttons remain pressed - bottom button needs to be pressed multiple times in order to fly up (against gravity effect) What design pattern do you recommend to achieve such control effects? An additional question: can simultaneous press of bottom and high buttons be detected? It does not look like my program can achieve that at least Thanks! /V controller_test.bas Quote Link to comment Share on other sites More sharing options...
mr_me Posted February 27, 2021 Share Posted February 27, 2021 The intellivision controller uses three bits for the side buttons. Each button uses two of those bits. If all three bits are used you know two side buttons have been pressed simultaneously. 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.