Author Topic: Your Projects - Post and Critique  (Read 119673 times)

0 Members and 1 Guest are viewing this topic.

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Your Projects - Post and Critique
« Reply #435 on: July 19, 2010, 03:49:49 pm »
About Mirage interrupts relating to axe...
I think that's what FnOn and FnOff do.

return-if?? cool
I should read the commands list more often.

So if It's is a subroutine, and you say Goto E, Lbl E still runs as a subroutine?
Vy'o'us pleorsdti thl'e gjaemue

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Your Projects - Post and Critique
« Reply #436 on: July 19, 2010, 03:56:42 pm »
No, it'll just goto it, and you won't be able to return to where you were (either going to somewhere else in the program if you had nested subroutines, or exiting from the program)
You'll still have to use sub( to call subroutines. (An exception to this, which you may or may not be able to take advantage of, is that "sub(E:Return" (If it's just a plain return) can be replaced with "Goto E" and everything will be fine)
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: Your Projects - Post and Critique
« Reply #437 on: July 19, 2010, 03:57:45 pm »
the commands list is your friend. print it out. keep it. read it. love it. cherish it. have it. always.

yes, you can nest as many subroutines as you want, practically. i think there's a limit but it's impractical to need to call that many subroutines. for example, this piece of code is entirely allowed:
Code: [Select]
0->X
Disp Sub(C)>Dec
Lbl M  .Multiply
X*2->X
Return
Lbl A  .Add
X+1->X
Return
Lbl S  .Subtract
X-1->X
Return
Lbl MA .Multiply then Add
Sub(M)
Sub(A)
Return
Lbl C  .Compute X*2, then X+2, then X*2, then X-3.
Sub(MA)
Sub(A)
Sub(M)
Sub(S)
Sub(S)
Sub(S)
Return  .This return is unnecessary, because it's the end of the program.

Edit: i feel like optimizing.

Code: [Select]
Disp 1->X>Dec

« Last Edit: July 19, 2010, 04:07:48 pm by nemo »


Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Your Projects - Post and Critique
« Reply #438 on: July 19, 2010, 04:08:34 pm »
I did print it out. I have one of those Avery [not-so-]Durable Reference binders with a notebook, documentation, and commands list.
The binder is MY friend.

Does ReturnIf take care of Fix tokens?
In the commands list, it says 'exit in this mode if changed.'
How can, say, Fix 2 and Fix 4 be done on exit?
Vy'o'us pleorsdti thl'e gjaemue

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: Your Projects - Post and Critique
« Reply #439 on: July 19, 2010, 04:11:35 pm »
No, ReturnIf does not take care of Fix tokens. you may want to post that in feature wishlists though, because that sounds like a good idea.

rather than   
Code: [Select]
ReturnIf getKey(15)

you could always do the following:   

Code: [Select]
If getKey(15)
Fix 2
Fix 4
Return
End




Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Your Projects - Post and Critique
« Reply #440 on: July 19, 2010, 04:12:48 pm »
Either hope the OS can deal w/it (bad idea), have something like
Code: [Select]
sub(M
Fix 0
Fix 2
Fix 4
Fix 6
.There may be more, but you get the point
Return
Lbl M
at the very beginning of your program, where Lbl M is the start of the code, or have the program Goto a Lbl that does the cleanup then returns for it. The second option is probably the best, since you can just add that one piece of code and not have to worry about modifying any other part of your code.
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Your Projects - Post and Critique
« Reply #441 on: July 19, 2010, 04:20:38 pm »
That's what I've been doing.
the If getkey(15) thing.

For clarification:
So, would ReturnIf end the program if it's put into, say, a subroutine made into a pause menu?
Or would it still act like a subroutine and go back to whatever it was doing before?
« Last Edit: July 19, 2010, 04:21:49 pm by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: Your Projects - Post and Critique
« Reply #442 on: July 19, 2010, 04:25:24 pm »
If ReturnIf is in a subroutine, it will just exit the subroutine. do you need to have the pause menu in a subroutine? if the subroutine isn't being called more than once, you could just have the subroutine's code in the main program. otherwise, using calcdude4se's method is probably best.


Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Your Projects - Post and Critique
« Reply #443 on: July 19, 2010, 04:25:56 pm »
If you used sub(, yes, it'd act like a normal subroutine.
Edit: ninja'd again! :P
« Last Edit: July 19, 2010, 04:26:24 pm by calcdude84se »
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Your Projects - Post and Critique
« Reply #444 on: July 19, 2010, 04:40:56 pm »
What does the Ninja'd thing mean?

Okay, something on topic. I'll try to save the thread.
I went to experinent with the left-right movement system in jetpack and combined it with papijump-like scrolling.
Idea.
If it's too hard, chande the values at the beginning of the source.
dplt=depletion rate.
gain=how much each line thing gives you
ftsw=fuel to start with
line on bottom is fuel gague.
the rest is self- explanatory.
got to go, session's about to time out.

Vy'o'us pleorsdti thl'e gjaemue

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Your Projects - Post and Critique
« Reply #445 on: July 19, 2010, 04:46:23 pm »
Looks interesting, I might look at it later.

As for what "ninja'd" means:
Quote from: Urban Dictionary
When posting on a forum, you submit a post only to find that someone has posted the same thing only seconds earlier.
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Your Projects - Post and Critique
« Reply #446 on: July 19, 2010, 04:50:04 pm »
Ninja'd means when you post something (generally an answer to someone's question) only to find out someone posted the same thing like a few seconds before.

Also that game seems really cool! I think if it had a title screen and increasing difficulty, you should submit it to ticalc.org. For some reasons it reminds me of Audiosurf, but with no music.

EDIT: Ninja'd :P
« Last Edit: July 19, 2010, 04:50:20 pm by DJ Omnimaga »

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Your Projects - Post and Critique
« Reply #447 on: July 19, 2010, 04:55:05 pm »
[offtopic]
Okay, there has to be a word for this, when somebody is naming something only to become an example of it...
DJ, you've been the example both times, with the bump to the thread about the hardest calc game ever and now, ninja'd while posting about what it means to be ninja'd.
Any ideas?
[/offtopic]

Okay, back on topic. Well, if I could think of something to post :(
Actually, I do have something to say. I agree with DJ that you should submit it to ticalc.org if it has a title screen and increasing difficulty. Good game! :)
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: Your Projects - Post and Critique
« Reply #448 on: July 19, 2010, 05:01:15 pm »
calcdude84se: coincidence? i'm not sure of the word. it is not irony. if someone says that i'm going to throw some furniture. although i don't really think there's a word. for when you name something but become the example... nothing in my vernacular. just coincidence, i guess.

and ontopic, that game looks pretty good. is that as fast as it runs?

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Your Projects - Post and Critique
« Reply #449 on: July 19, 2010, 05:05:38 pm »
Yeah, I guess coincidence is the best I'll get. With respect to irony, I find it to be quite the opposite.
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.