Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Possibly Related Threads…
Thread Author Replies Views Last Post
  Mini Space Invaders Pete 11 1,147 09-20-2025, 01:14 PM
Last Post: bplus
  Space Ship Game aadityap0901 4 782 12-26-2024, 02:13 AM
Last Post: bplus
  The Space Globe NakedApe 4 1,050 09-04-2024, 10:49 PM
Last Post: bplus
  Multi-Spacewar! v0.66 - improved ship + shot motion madscijr 0 541 11-08-2022, 10:36 PM
Last Post: madscijr
  Space Lander james2464 22 4,120 10-01-2022, 01:23 AM
Last Post: TerryRitchie

Forum Jump:


Users browsing this thread: 1 Guest(s)