![]() |
Forum Index : Microcontroller and PC projects : CMM2: Has anyone done a rolling credits demo I can pinch?
![]() ![]() |
|||||
Author | Message | ||||
vegipete![]() Guru ![]() Joined: 29/01/2013 Location: CanadaPosts: 1128 |
That's exactly what I wanted see. Thanks! You could name it "Transporter(here,there,...)" Then we could beam our pixels around. Note, your CSubs gave me grief until I changed the parameters to integers. Then all was golden. Now I know. Visit Vegipete's *Mite Library for cool programs. |
||||
mkopack73 Senior Member ![]() Joined: 03/07/2020 Location: United StatesPosts: 261 |
Ok, I know I beat this drum a lot, but.... This would be a PERFECT thing as a reusable library! Add options for different effects (scroll up, paged with dissolve/fade, etc.) Caller sets the page to write to before calling the function, function draws the current version of the screen, returns... User merges that with whatever other stuff they want on the screen, then copies to page 1. Wash, rinse, repeat for however many frames you want to do it across.. Or something along those lines... I bet a LOT of people would make use of it in their games... |
||||
Sasquatch![]() Guru ![]() Joined: 08/05/2020 Location: United StatesPosts: 377 |
Excellent point! I need to remember to make that more clear in the comments! The demo looks great by the way, I hope thwill can use this in the "welcome tape" -Carl |
||||
Sasquatch![]() Guru ![]() Joined: 08/05/2020 Location: United StatesPosts: 377 |
I am trending towards making these subroutines a bit more "general purpose" As noted above, I need a bit more information from the CSUB - MMBasic interface. [/Rant mode ON] I'm not sure exactly what you mean by "reusable library". If you are asking that everyone write code the way you want or expect, then you have an uphill battle for sure. For me this is just a hobby that I do for my own education and enjoyment. I have my own coding style and anyone is free to use it for any purpose or not. If you want to write something different nobody is going to complain about it. If you want to package these into some kind of library be my guest, just please leave the attribution intact and you might want to wait until we are finished so that you don't have to repeat as changes and updates are made! [/Rant mode OFF] -Carl |
||||
mkopack73 Senior Member ![]() Joined: 03/07/2020 Location: United StatesPosts: 261 |
All I'm saying is that if this was formulated as something that can provide a nice capability in a generically reusable way, then others could simply import the functions and code as an .inc file, and use it. That means instead of everyone having to roll their own way of doing this, they could just use yours. That's 1 less thing they have to figure out how to do if they're writing a game for example... The more libraries we have that provide capabilities like title screens, high score management/display, 3D rendering libraries, joystick handling library, mouse libraries, etc. the quicker everyone can write games because they can build on top of those things instead of us all reinventing the wheel over and over and over. That's all I'm saying...If you don't want to take it to the same level of what I consider a "well architected" library, that's fine. I'm just suggesting doing something along those lines so moving forward everyone can benefit from your great efforts here and it's quick and easy to use without a ton of effort by whomever wants to use it...and rather than copy/pasting the code they simply do an import to pull it in. Do you have to follow the suggested guidelines I’ve come up with? Of course not! They are simply SUGGESTIONS based on best practices and experience and thinking ahead to the community dealing with bigger and more complex code bases. There’s nothing FORCING you to follow any of them! You could certainly make the library and do it however the heck you like :) or not at all. Once you guys finish, if you would like me to convert it over just let me know and if I’m not buried under the mountain of projects I’m currently under I’ll be happy to do it for you. And OF COURSE Full attribution back to you maintained (and probably should be required to anyone using the library as well). Imagine if somebody wrote some killer super efficient sorting implementation that was crazy fast but VERY complex to implement. And let's say you had a need for that in your program. Would you rather just pull in theirs and use it (knowing it's already working, it's fast and been debugged), or would you want to spend a ton of time rolling your own when you know you have 100 other things to make your program work? Likely you'll want to use somebody else's implementation as a library so you can get on with the meat of your effort (the other 100 things). As others run into the same problem and start using that same implementation, that sorting library ends up being the defacto community standard for doing that task.. Edited 2020-10-09 14:01 by mkopack73 |
||||
![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |