Join us on Discord!
You can help CodeWalrus stay online by donating here.

I need help with Axe Parser [Can I Axe you a question?]

Started by CKH4, January 06, 2015, 09:49:36 PM

Previous topic - Next topic

0 Members and 4 Guests are viewing this topic.

CKH4

So I'm trying to learn buffers for 8lvl grayscale. I got 4 level working with the main buffer, L1 and L3.

If anyone knows about buffers and stuff I would really appreciate your help.

Edit.
I got laggy 6lvl working on L1 thru L4. Then the calc crashed when I went to exit. (it was wabbitemu so it's all good)
  • Calculators owned: TI-83+, TI-84+


pimathbrainiac

Well, I'm bach here too!

CKH4

#2
Ok thanks. I'd use that but I'm looking for a solution not based for pictures. I'm just using rect( right now.

Edit.
Is there a reason why it crashes?
  • Calculators owned: TI-83+, TI-84+


CKH4

Does anyone know how to loop the edges of the screen so that stuff drawn off the screen is shown on the other side?
  • Calculators owned: TI-83+, TI-84+


aetios

That's not supported in Axe. You'll need to write your own routine for this,
Something like this might work:

pt-on(x,y,[sprite])
if x>88
  pt-on(x-96,y,[sprite])
end

Modify the code as needed for the other side of the screen.
ceci n'est pas une signature

CKH4

Thanks, that's exactly what I'm looking for.
  • Calculators owned: TI-83+, TI-84+


aetios

#6
No problem, glad I could help :D Note that this will slow down slightly when you are drawing on the sides. If you want constant (and precise) performance, you should remove the if condition and draw the extra sprite regardless of whether or not it is on screen, but generally this shouldn't be needed.
ceci n'est pas une signature

CKH4

#7
I've also noticed that I need a line somewhere else to reset the coordinate.

Edit.
Ugh. I'm doing 4-lvl grayscale as well, so much typing to do.
  • Calculators owned: TI-83+, TI-84+


Snektron

Quote from: CKH4 on January 08, 2015, 05:06:54 PM
Ugh. I'm doing 4-lvl grayscale as well, so much typing to do.
why not use the default 4-lvl grayscale?
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


CKH4

  • Calculators owned: TI-83+, TI-84+


Duke "Tape" Eiyeron

DispGrah^r^r (^r is the radian r)
  • Calculators owned: A lot.

CKH4

Ok, but how does that affect screen looping? Also isn't that also only 3lvl? I'm going to try to use for( loops to simplify it for now instead of typing 12 pt-off(.
  • Calculators owned: TI-83+, TI-84+


Snektron


:ClrDraw^rr .clear both buffers
:Pxl-On(x,y) .dark gray
:Pxl-On(x,y)^r .light gray, use both for black
:DispGraph^rr .draw buffers in 4 level grayscale

  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Duke "Tape" Eiyeron

You have to refresh fastly enough the screen to make the grauscale correct. DisppGraph^r yields a 3-gray render and ^r^r 5)4.
  • Calculators owned: A lot.

CKH4

#14
Yeah, I'm using the main buffer, L1 and L2. When I used dispgraph^r^r it was only 3lvl and when I used dispgraph^r it just overlaid them.
  • Calculators owned: TI-83+, TI-84+


Powered by EzPortal