I am making a game. At the beginning of the game I have to put all of my define sprites. This adds about 4000 ram right away. Is there any way to convert this into a subprogram to save space? Are there any other methods to fix this problem? Thanks
PT_ wrote:
You can use AsmComp( to compile a subprogram, and there you can put all your DefineSprite('s.
In my subprogram do I need to put the imaginary title?
Well, it doesn't hurt, but then it would just treat it as a comment. Normally a subprogram doesn't need the output program at the top.
PT_ wrote:
Well, it doesn't hurt, but then it would just treat it as a comment. Normally a subprogram doesn't need the output program at the top.
When I try and compile my main program it says “sub program not found”
Did you put a closing parenthesis after the name? If so, please remove that. I've already fixed that, but not made a release yet including that fix.
PT_ wrote:
Did you put a closing parenthesis after the name? If so, please remove that. I've already fixed that, but not made a release yet including that fix.
[u]
I do not have a closing parentheses
Does the subprogram exists? Did you put the 'prgm' token in front of it? AsmComp( takes a raw name, so
Code:
should work fine, as long as SPRSRC2 exists.
Code:
AsmComp(SPRSRC2
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.
» Go to Registration page
» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Advertisement