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 - Munchor
Pages: 1 ... 163 164 [165] 166 167 ... 424
2461
« on: April 11, 2011, 05:05:26 am »
I'd rather just use the first two samples of code.
1line -1 if - 0 then - 0 ends >1 line - 1 if - 1 then - 1 end
EDIT:
Will you make dim(1) disable run indicator and "Done" message? Thanks, like DiagnosticOff in Axe.
2462
« on: April 11, 2011, 05:03:58 am »
Zeda: Maybe you could include BatLib App in the folder when you upload it  Awesome job eitherway.
2463
« on: April 11, 2011, 05:02:06 am »
Since Axe doesn't exist on the Prizm (and a rendering engine is going to be eating up some serious CPU), it's in Assembly.
Oh you didn't mention PRIZM in the topic, oh very well then
2464
« on: April 11, 2011, 05:01:33 am »
Zeda: That's awesome! I'm looking at the source now, very good job!
2465
« on: April 11, 2011, 05:00:11 am »
No, a game for the calculator that just happens to be 3D.
Then what language are you using (I assume Axe or Assembly  ).
2466
« on: April 11, 2011, 04:59:20 am »
I was beat (in optimization) by Zeda  I guess my next program may not be an example, but a demo, but I need ideas
2467
« on: April 11, 2011, 04:56:36 am »
A 3D Rendering Engine for the calculator? Is that the project?  I don't understand xD
2468
« on: April 10, 2011, 07:15:54 pm »
I made a new Example for you coders! Code: dim(1,56,4,22,"FDCB00AEC9" ;Disables run indicator, clears screen and disables done message 0->A While A!=45 ;Until pressing [CLEAR] AxesOff For(I,0,96 AxesOff dim(56,12,I,99 ;Draws vertical lines I+1->I End DispGraph getKey->A End Screenshot:  Notes: The dim(56 command is one of the best commands to use for graph screen management and it's very important you dominate it well. dim(56,4 will clear the screen and set axes to off, just like Fill(0 in a ReCode block. Yet again, if you have any questions on this, reply!
2469
« on: April 10, 2011, 05:44:44 pm »
Mimas is currently 16040 lines, not counting auto-generated files. That's by far the largest assembly program I've ever written.
How do you people deal with source code when it starts getting over 4000 lines long? I feel like once it starts reaching this length, I start losing time by searching through the code for routines. At these sizes, the scroll bar is almost useless.
etags. And occasionally grep.
And yeah, I'd say 4000 lines is too long for a single source file, no matter what language or editor you're using.
You win us all. And @SirCmpwn: Half of the tiDE code (or maybe even more) is code generated by the GUI designer, hence I'm not impressed with 26thousand lines.
2470
« on: April 10, 2011, 04:33:55 pm »
Bad to know it's the host problem :S
2471
« on: April 10, 2011, 03:28:34 pm »
2472
« on: April 10, 2011, 03:23:43 pm »
Here's a very similar example, but it uses ReCode and not Basic+BatLib. Code: dim(40 Fill(0 3->D ->E 0->A->B->C While A!=15 If A=9 Line(B,D,C,E,1 Line(B,D,C,E,2 DispGraph getKey->A=0 DS<(1 Line(B,D,C,E,2 B If A=3 +1 If A=2 -1 ->B C If A=1 +1 If A=4 -1 ->C If B>=99 0->B If B=97-D 96-D->B If C=65-E 64-E->C If C>=99 0->C End Stop Screenshot:  I have to say I think the samples are getting quite complex, so I'll make a few simpler ones too. Notes about this example: Attached is the code in a 8xp file. This was an example that focuses on ReCode and uses a lot of Zeda-made code.
2473
« on: April 10, 2011, 02:48:00 pm »
I just made a BatLib (almost no ReCode) program that draws a cursor and when the user presses [ENTER] it draws a rectangle of 8*8 in the place where the cursor is. A Paint program we might say. I'll make a ReCode example in a few minutes and post it here, it should be faster and much better (4*4 rectangle cursor). Code: dim(40 Fill(0 ;Inside ReCode blocks, this clears the screen, turns axes off Stop 6->D DelVar B0->C Lbl Y Repeat A=15 ;Will loop until pressing [CLEAR] If getKey=105 ;GetKey for drawing Then Goto Z End dim(29,B,8,C,8,2,99,10,3,43,29,B,8,C,8,2->A max(0,min(88,B+Dsum(DeltaList(A={2,3->B max(0,min(56,C+Dsum(DeltaList(A={4,1->C End Return Lbl Z dim(29,B,8,C,8,1 ;Draws Rectangle Goto Y ;This goes back to beginning of loop Probably it can be optimized, but I like it this way. Screenshot:  Enjoy it, if you have any questions, comment. EDIT: Here's some updated, optimized code: dim(1,56,4 6->D DelVar B0->C Lbl Y Repeat A=15 ;Will loop until pressing [CLEAR] If getKey=105 ;GetKey for drawing Then Goto Z End dim(29,B,8,C,8,2,99,10,3,43,29,B,8,C,8,2->A max(0,min(88,B+Dsum(DeltaList(A={2,3->B max(0,min(56,C+Dsum(DeltaList(A={4,1->C End Return Lbl Z dim(29,B,8,C,8,1 ;Draws Rectangle Goto Y ;This goes back to beginning of loop
2474
« on: April 10, 2011, 02:21:31 pm »
Added the source. But I'm really looking for ideas of thing to add, to help me learn the language.
I tried it, it looks good. However, GIF images are corrupted when added. I'd say a different cursor after pressing Del Image. Image lightness is changed when dragged (grabbed to be precise) so we know we're grabbing them. That should be a fair challenge, not too hard, not too easy.
2475
« on: April 10, 2011, 02:16:03 pm »
Can you give us the code? Seems nice. However, I recommend learning syntax in Command Line interface before developing GUI Applications.
Pages: 1 ... 163 164 [165] 166 167 ... 424
|