bkumanchik Posted July 7 Share Posted July 7 can you call a procedure from an included file in cvbasic? I can't seem to get it to work. Brian Quote Link to comment https://forums.atariage.com/topic/369021-call-a-procedure-from-an-included-file-in-cvbasic/ Share on other sites More sharing options...
+nanochess Posted July 8 Share Posted July 8 11 hours ago, bkumanchik said: can you call a procedure from an included file in cvbasic? I can't seem to get it to work. Brian There shouldn't be any problem. An included file is like having the source in the same file. Maybe you have a syntax problem? A snippet of code would be useful. Quote Link to comment https://forums.atariage.com/topic/369021-call-a-procedure-from-an-included-file-in-cvbasic/#findComment-5497528 Share on other sites More sharing options...
bkumanchik Posted July 8 Author Share Posted July 8 I will get it ready, and send it to you, thanks! Quote Link to comment https://forums.atariage.com/topic/369021-call-a-procedure-from-an-included-file-in-cvbasic/#findComment-5497850 Share on other sites More sharing options...
bkumanchik Posted July 8 Author Share Posted July 8 I decided to try one more thing and it worked - I moved my include to the end of my file! Thanks for the response, here is the finished (working code) Brian invader.zip 1 Quote Link to comment https://forums.atariage.com/topic/369021-call-a-procedure-from-an-included-file-in-cvbasic/#findComment-5497855 Share on other sites More sharing options...
bkumanchik Posted July 8 Author Share Posted July 8 I love this, I have purchased all of your books and created this demo for the Intellivision and the Colecovision, now I have to tackle the Atari 2600 1 Quote Link to comment https://forums.atariage.com/topic/369021-call-a-procedure-from-an-included-file-in-cvbasic/#findComment-5497857 Share on other sites More sharing options...
+nanochess Posted July 9 Share Posted July 9 I'm glad you managed to get it working. Cute little game! I now see what you did. If you include a sprite at the start of the game, technically you are inserting data in the path of execution, so it will crash. Sometimes I forget to say that the execution goes from the first line of source code, and there shouldn't be any data there (like DATA or BITMAP). Another mistake would be starting the program with a PROCEDURE, because it would start execution at the first line of the procedure. It shouldn't be too difficult to do it for Atari 2600, the first demo game in the book (shooting a fly with a spaceship, talking about being overkill) is somewhat similar. Quote Link to comment https://forums.atariage.com/topic/369021-call-a-procedure-from-an-included-file-in-cvbasic/#findComment-5498065 Share on other sites More sharing options...
bkumanchik Posted July 9 Author Share Posted July 9 Thanks for the advice, I'll post my progress 😉 Brian Quote Link to comment https://forums.atariage.com/topic/369021-call-a-procedure-from-an-included-file-in-cvbasic/#findComment-5498183 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.