Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Recursion?
#11
Maybe I should've said "the calculation of the factorial" ...
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#12
oh, yeah. :lol:
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Reply
#13
Recursive procedures are good for things such as flood-fill type image manipulation or pathfinding, but the stack size of the programming language (QB's is 256kb, I think) limits the number of times a proc can call itself. Therefore, it is best for one to implement one's own stack and put all the code in one procedure. This takes a little more code and effort, but allows processing of larger amounts of data.
Reply
#14
Recursion not good... My first game had the game loop in a sub and, of course, you never managed to get very far (you'd have to see the code to see what I mean but it's too long). Moral: put game loop in main module. Always.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)