Jump to content

Recommended Posts

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.

 

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.

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...