This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Messages - Builderboy
Pages: 1 ... 326 327 [328] 329 330 ... 375
4906
« on: January 23, 2010, 06:44:19 pm »
Well there are certain scenarios where Repeat is more usefull than while. The simplest example that comes to mind is this
While 1
Repeat Ans GetKey->K End
...
End
Repeat is actually better than while in this situation because we DO want it to enter the loop, regardless of what ans was in the first place. Using while, we would have to make sure that ans was not 0 before we enter.
4907
« on: January 23, 2010, 04:41:29 pm »
Yeah, i used recursion in one of my old games, and it ended up running really slow.
4908
« on: January 23, 2010, 04:38:22 pm »
Yeah, i tried Bubble Bobble (the app) on the nSpire and it ran about 3 times slower, and crashed a lot
4909
« on: January 23, 2010, 04:37:57 pm »
Right, thats why i suggest that you put the subroutines at the top, to preserve speed
4910
« on: January 23, 2010, 01:37:23 pm »
Yeah, note that this method is really only used when you have a large chunk of code that needs to be used in many different places over the span of your program, and trying to reorganize your entire engine around that limiting factor would be either a hassle or downright impossible. Obviously if you only ever call the routine once in your program it would be faster and easier to just recall the code to that spot
4911
« on: January 23, 2010, 11:54:19 am »
Possibly, let me check...
4912
« on: January 23, 2010, 02:37:29 am »
I didn't get a readme but yeah, I am getting pretty close, I just need some time to sit down and concentrate on it. Props for adrictionality (word? Lol) and I just noticed the backgrounds were changing! Wow that's so cool. Love the attention to detail!
4913
« on: January 23, 2010, 01:52:58 am »
Hmmm, I'm not sure what you mean, but I'll try to throw together some alternate control schemes and see which ones you like. And Dj, in the finial version you will be able to specify control keys. In the meantime though, i can implement WASD and arrows, but what key should be crouch that is close to the arrow keys? I can't do shift or ctrl, Greenfoot doesn't have the support
4914
« on: January 23, 2010, 01:44:55 am »
I think it might have been in the long lost Portal 2 thread. But yeah, this has been really usefull in the past
4915
« on: January 23, 2010, 01:38:38 am »
I'm trying to beat the first level . But one thing i can say right now is GREAT graphics, greyscale, and a flashy menu with simple yet awesome controls. The ingame physics/animation/artwork is great, and gives it a kind of oldschool feel to it, which is excellent. Controls are simple enough, arrows and 2nd for now, can't wait to get further
4916
« on: January 23, 2010, 01:31:57 am »
So this is a small bit of code that takes advantage of Memory leaks in order to run 'Sub-Routines' that you can place within your programs! This can be advantageous for people who want to compile their games into a single program to clear up Program menus
Goto M //Start of Subroutine section. We want it to be at the top of the program, as all subroutines are accessed via lables //This code is skipped due to the Goto M statement Lbl A //Subroutine A Disp "This is a fun sub" Disp "Its over 9000" End
Lbl M
Disp "Main program foo'!" //This is where normal program execution starts
For(F,-1,0) //The tricky bit. The first time the for loop loops, F=-1 and the if statement is true. Goto A If F //Once the sub is executed, it reaches an End which it THINKS is the same end that ends the For loop Goto A //since the loop is still looping, control jumps [i]back into the for loop[/i] End //F is now 0 and the condition is false. Exit for loop :)
The code works by exploiting the fact that the TiOS cannot tell the difference between individual End's, and that jumping using Goto's does not clear Loop stacks. Whenever the OS encounters an End, it will automatically assume that the End is paired with the most recent loop, and act accordingly.
4917
« on: January 23, 2010, 12:44:54 am »
That is neat! Its like final types in Java At first i was trying to use the lowercase letters that are accessed with programs like Omnicalc and MirageOS, but eventually I figured out that these vars were located under the Vars/Stats menu.
4918
« on: January 23, 2010, 12:41:19 am »
Hmmm, i'd have to try, but I think i might be good.
4919
« on: January 23, 2010, 12:40:20 am »
Oooh yay! This is a great idea! Can't wait to add some things i know, and maybe learn some things i don't ^^
4920
« on: January 22, 2010, 07:52:06 pm »
Oh boy! That means i can upload large vids! I never knew that! That is a cool video though, shows just how fast a game can be beaten
Pages: 1 ... 326 327 [328] 329 330 ... 375
|