In the spirit of Terry's Tutorials - GUARDIAN Alien Space Ship Game
#6
(10-05-2022, 12:54 AM)mnrvovrfc Wrote: QB64PE is so fast we don't even care about defining anything as integer! The "default SINGLE" type is good enough to declare variables that would hold numbers. Now somebody is going to want to run performance tests to compare variables, integers to floating-point. This is what I've actually learned in this tutorial, but great job with the game building and teaching.

Good ol' QJurassic days. I used DEFINT i to y just to speed things up a bit back then. Nice trick, but not needed in QB64; however, I was going to include variable typing and TYPE variables somewhere in this project. Normally, if I see I'm getting into a lot of code, I switch it all up to TYPE variables. That's especially good practice when passing variables to subs and functions because it can pass several variables as a type rather than a long list of elements in the sub or function call.

Thanks for the comment, and the memories. (Now I sound like Bob Hope, talk about Jurassic.)

Pete
Reply


Messages In This Thread
RE: In the spirit of Terry's Tutorials - Alien Space Ship - by Pete - 10-05-2022, 01:11 AM



Users browsing this thread: 6 Guest(s)