Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
19 June, 2013, 17:24:37 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: 1 ... 28 29 [30] 31 32 ... 36   Go Down
  Print  
Author Topic: Your Projects - Post and Critique -  (Read 32615 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
Darl181
Vy'o'us pleorsdtu tlh'e gjaemue.
Coder Of Tomorrow
LV12 Extreme Poster (Next: 5000)
*
Offline Offline

Gender: Male
Last Login: Today at 09:37:15
Date Registered: 10 June, 2010, 00:32:08
Location: {I*9+L₁+1},{I*9+L₁+3}
Posts: 3298


Total Post Ratings: +269

View Profile WWW
« Reply #435 on: 19 July, 2010, 21:49:49 »
0

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?
Logged




 
Spoiler for Stuff:



OS 2.43  Boot 1.02  Hardware Rev. B

OS 1.04.32

OS 3.1.0.392  Boot1 3.0.99  Boot2 3.10.16
Spoiler for Misc:
Quote
You'll understand / It's not a shame / To be always / Losing the game / Burma-Shave
"Dynamic userbars!"
Omnimaga radio
Our World of Text
Draw on websites
Then blow them up
In-browser flight simulator
Haxball: MMO soccer/air hockey game
  Draw with sand.  Yay?
The Game
You just lost the game
Zombo.com
light post color is #dfefff
dark post color is #cae4ff
quote box color is #6699ff
transparent color is...transparent 0.o
Spoiler for Forum search alternative (bookmarklet):
https://www.squarefree.com/bookmarklets/search.html
javascript:q=""+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);if(!q)q=prompt("No%20selected%20text;%20enter%20search%20term.").replace(/\s\+/g,"%252B");if(q!=null)location="http://www.google.com/search?q="+q.replace(/\s+/g,"+")+"+site:"+location.hostname;void(0);
calcdude84se
Needs Motivation
Members
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: 14 May, 2013, 16:12:14
Date Registered: 21 April, 2010, 04:20:59
Posts: 2207


Total Post Ratings: +62

View Profile
« Reply #436 on: 19 July, 2010, 21:56:42 »
0

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)
Logged

"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Bug me about PartesOS. I might just need reminding.
nemo
LV9 Veteran (Next: 1337)
*********
Offline Offline

Last Login: 04 April, 2013, 01:12:57
Date Registered: 16 May, 2010, 03:55:30
Posts: 1198

Total Post Ratings: +83

View Profile
« Reply #437 on: 19 July, 2010, 21:57:45 »
0

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:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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.


1
2
Disp 1->X>Dec

« Last Edit: 19 July, 2010, 22:07:48 by nemo » Logged


Darl181
Vy'o'us pleorsdtu tlh'e gjaemue.
Coder Of Tomorrow
LV12 Extreme Poster (Next: 5000)
*
Offline Offline

Gender: Male
Last Login: Today at 09:37:15
Date Registered: 10 June, 2010, 00:32:08
Location: {I*9+L₁+1},{I*9+L₁+3}
Posts: 3298


Total Post Ratings: +269

View Profile WWW
« Reply #438 on: 19 July, 2010, 22:08:34 »
0

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?
Logged




 
Spoiler for Stuff:



OS 2.43  Boot 1.02  Hardware Rev. B

OS 1.04.32

OS 3.1.0.392  Boot1 3.0.99  Boot2 3.10.16
Spoiler for Misc:
Quote
You'll understand / It's not a shame / To be always / Losing the game / Burma-Shave
"Dynamic userbars!"
Omnimaga radio
Our World of Text
Draw on websites
Then blow them up
In-browser flight simulator
Haxball: MMO soccer/air hockey game
  Draw with sand.  Yay?
The Game
You just lost the game
Zombo.com
light post color is #dfefff
dark post color is #cae4ff
quote box color is #6699ff
transparent color is...transparent 0.o
Spoiler for Forum search alternative (bookmarklet):
https://www.squarefree.com/bookmarklets/search.html
javascript:q=""+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);if(!q)q=prompt("No%20selected%20text;%20enter%20search%20term.").replace(/\s\+/g,"%252B");if(q!=null)location="http://www.google.com/search?q="+q.replace(/\s+/g,"+")+"+site:"+location.hostname;void(0);
nemo
LV9 Veteran (Next: 1337)
*********
Offline Offline

Last Login: 04 April, 2013, 01:12:57
Date Registered: 16 May, 2010, 03:55:30
Posts: 1198

Total Post Ratings: +83

View Profile
« Reply #439 on: 19 July, 2010, 22:11:35 »
0

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   

1
2
ReturnIf getKey(15)

you could always do the following:   


1
2
3
4
5
6
If getKey(15)
Fix 2
Fix 4
Return
End


Logged


calcdude84se
Needs Motivation
Members
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: 14 May, 2013, 16:12:14
Date Registered: 21 April, 2010, 04:20:59
Posts: 2207


Total Post Ratings: +62

View Profile
« Reply #440 on: 19 July, 2010, 22:12:48 »
+1

Either hope the OS can deal w/it (bad idea), have something like

1
2
3
4
5
6
7
8
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.
Logged

"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Bug me about PartesOS. I might just need reminding.
Darl181
Vy'o'us pleorsdtu tlh'e gjaemue.
Coder Of Tomorrow
LV12 Extreme Poster (Next: 5000)
*
Offline Offline

Gender: Male
Last Login: Today at 09:37:15
Date Registered: 10 June, 2010, 00:32:08
Location: {I*9+L₁+1},{I*9+L₁+3}
Posts: 3298


Total Post Ratings: +269

View Profile WWW
« Reply #441 on: 19 July, 2010, 22:20:38 »
0

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: 19 July, 2010, 22:21:49 by Darl181 » Logged




 
Spoiler for Stuff:



OS 2.43  Boot 1.02  Hardware Rev. B

OS 1.04.32

OS 3.1.0.392  Boot1 3.0.99  Boot2 3.10.16
Spoiler for Misc:
Quote
You'll understand / It's not a shame / To be always / Losing the game / Burma-Shave
"Dynamic userbars!"
Omnimaga radio
Our World of Text
Draw on websites
Then blow them up
In-browser flight simulator
Haxball: MMO soccer/air hockey game
  Draw with sand.  Yay?
The Game
You just lost the game
Zombo.com
light post color is #dfefff
dark post color is #cae4ff
quote box color is #6699ff
transparent color is...transparent 0.o
Spoiler for Forum search alternative (bookmarklet):
https://www.squarefree.com/bookmarklets/search.html
javascript:q=""+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);if(!q)q=prompt("No%20selected%20text;%20enter%20search%20term.").replace(/\s\+/g,"%252B");if(q!=null)location="http://www.google.com/search?q="+q.replace(/\s+/g,"+")+"+site:"+location.hostname;void(0);
nemo
LV9 Veteran (Next: 1337)
*********
Offline Offline

Last Login: 04 April, 2013, 01:12:57
Date Registered: 16 May, 2010, 03:55:30
Posts: 1198

Total Post Ratings: +83

View Profile
« Reply #442 on: 19 July, 2010, 22:25:24 »
0

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.
Logged


calcdude84se
Needs Motivation
Members
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: 14 May, 2013, 16:12:14
Date Registered: 21 April, 2010, 04:20:59
Posts: 2207


Total Post Ratings: +62

View Profile
« Reply #443 on: 19 July, 2010, 22:25:56 »
0

If you used sub(, yes, it'd act like a normal subroutine.
Edit: ninja'd again! Tongue
« Last Edit: 19 July, 2010, 22:26:24 by calcdude84se » Logged

"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Bug me about PartesOS. I might just need reminding.
Darl181
Vy'o'us pleorsdtu tlh'e gjaemue.
Coder Of Tomorrow
LV12 Extreme Poster (Next: 5000)
*
Offline Offline

Gender: Male
Last Login: Today at 09:37:15
Date Registered: 10 June, 2010, 00:32:08
Location: {I*9+L₁+1},{I*9+L₁+3}
Posts: 3298


Total Post Ratings: +269

View Profile WWW
« Reply #444 on: 19 July, 2010, 22:40:56 »
+1

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.



* Spacerun.gif (2143.86 KB, 192x128 - viewed 173 times.)
* SPACESRC.8Xp (1.65 KB - downloaded 62 times.)
Logged




 
Spoiler for Stuff:



OS 2.43  Boot 1.02  Hardware Rev. B

OS 1.04.32

OS 3.1.0.392  Boot1 3.0.99  Boot2 3.10.16
Spoiler for Misc:
Quote
You'll understand / It's not a shame / To be always / Losing the game / Burma-Shave
"Dynamic userbars!"
Omnimaga radio
Our World of Text
Draw on websites
Then blow them up
In-browser flight simulator
Haxball: MMO soccer/air hockey game
  Draw with sand.  Yay?
The Game
You just lost the game
Zombo.com
light post color is #dfefff
dark post color is #cae4ff
quote box color is #6699ff
transparent color is...transparent 0.o
Spoiler for Forum search alternative (bookmarklet):
https://www.squarefree.com/bookmarklets/search.html
javascript:q=""+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);if(!q)q=prompt("No%20selected%20text;%20enter%20search%20term.").replace(/\s\+/g,"%252B");if(q!=null)location="http://www.google.com/search?q="+q.replace(/\s+/g,"+")+"+site:"+location.hostname;void(0);
calcdude84se
Needs Motivation
Members
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: 14 May, 2013, 16:12:14
Date Registered: 21 April, 2010, 04:20:59
Posts: 2207


Total Post Ratings: +62

View Profile
« Reply #445 on: 19 July, 2010, 22:46:23 »
0

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.
Logged

"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Bug me about PartesOS. I might just need reminding.
DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Today at 10:47:05
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50634


Total Post Ratings: +2638

View Profile WWW
« Reply #446 on: 19 July, 2010, 22:50:04 »
0

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 Tongue
« Last Edit: 19 July, 2010, 22:50:20 by DJ Omnimaga » Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
calcdude84se
Needs Motivation
Members
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: 14 May, 2013, 16:12:14
Date Registered: 21 April, 2010, 04:20:59
Posts: 2207


Total Post Ratings: +62

View Profile
« Reply #447 on: 19 July, 2010, 22:55:05 »
0

[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 Sad
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! Smiley
Logged

"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Bug me about PartesOS. I might just need reminding.
nemo
LV9 Veteran (Next: 1337)
*********
Offline Offline

Last Login: 04 April, 2013, 01:12:57
Date Registered: 16 May, 2010, 03:55:30
Posts: 1198

Total Post Ratings: +83

View Profile
« Reply #448 on: 19 July, 2010, 23:01:15 »
+1

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?
Logged


calcdude84se
Needs Motivation
Members
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: 14 May, 2013, 16:12:14
Date Registered: 21 April, 2010, 04:20:59
Posts: 2207


Total Post Ratings: +62

View Profile
« Reply #449 on: 19 July, 2010, 23:05:38 »
0

Yeah, I guess coincidence is the best I'll get. With respect to irony, I find it to be quite the opposite.
Logged

"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Bug me about PartesOS. I might just need reminding.
Pages: 1 ... 28 29 [30] 31 32 ... 36   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.52 seconds with 30 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.