Author Topic: Features Wishlist  (Read 693049 times)

0 Members and 21 Guests are viewing this topic.

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Features Wishlist
« Reply #2475 on: August 02, 2011, 01:59:38 pm »
A sprite editor is packaged with the Axe download ;)
Edit: it is only 8x8, though, IIRC. Others have created more versatile sprite editors, however.
« Last Edit: August 02, 2011, 02:00:10 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 Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Features Wishlist
« Reply #2476 on: August 02, 2011, 02:05:56 pm »
Not sure if I've posted this before, but even if I have it's definitely gotten lost (166 pages?!): A Pt-And( command to take the place of Plot2(. It's really useful in certain situations. I usually use a combination of Pt-On( and Pt-Change( to do the job, but Pt-And( would be twice as fast.




Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Features Wishlist
« Reply #2477 on: August 02, 2011, 02:28:33 pm »
Not sure if I've posted this before, but even if I have it's definitely gotten lost (166 pages?!): A Pt-And( command to take the place of Plot2(. It's really useful in certain situations. I usually use a combination of Pt-On( and Pt-Change( to do the job, but Pt-And( would be twice as fast.
Yeah, I'm sure you requested it before. :)  And, like last time, I agree; I would find it quite useful. :D

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: Features Wishlist
« Reply #2478 on: August 02, 2011, 02:35:04 pm »
Hi!

I am new in the forum :-)
I'd like to have a debug macro (#Debug / #Release) and #Debug(code) would mean the code is only executed in debug mode, or something like this.
I'm am for the 4 args loops too.

There is an error in the commandList :
DispGraphClrDraw(BUF1,BUF2)rr has been replaced by DispGraphClrDraw(BUF1,BUF2)r
Heya welcome to the forums. I hope you enjoy your stay (and calc programming) :)

On a side note I'M unsure if this is related or not but I wonder if there were future plans for the raycaster Axiom by Runer112?

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Features Wishlist
« Reply #2479 on: August 02, 2011, 04:03:56 pm »
You can do Pt-And already with the new Pt-Mask()r command.  Its way more versatile anyway because any situation you use an "And" mask with you're probably doing more than one sprite draw anyway.  The new command bit patterns handle all 3 of the original sprite methods plus transparency:

F B
1 1 = Black (Pt-On)
1 0 = Invert (Pt-Xor)
0 1 = White (Pt-And)
0 0 = Transparent
« Last Edit: August 02, 2011, 04:04:28 pm by Quigibo »
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Features Wishlist
« Reply #2480 on: August 02, 2011, 04:55:19 pm »
That does work Quigibo, but it's unnecessarily slow and bloated if the only logic they require is AND.


Also, in response to this:
I'd like to have a debug macro (#Debug / #Release) and #Debug(code) would mean the code is only executed in debug mode, or something like this.

I've always wanted a compiler feature like this, but what would be infinitely more useful is #If. It could handle debug stuff and much more, like easily changeable compiling options. For instance, my old raycasting project had to have like 8 different copies of the source for slight rendering variations. #If would allow me to combine them all into one and make working on such projects much more manageable.
« Last Edit: August 02, 2011, 04:56:08 pm by Runer112 »

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Features Wishlist
« Reply #2481 on: August 02, 2011, 05:09:39 pm »
Also, in response to this:
I'd like to have a debug macro (#Debug / #Release) and #Debug(code) would mean the code is only executed in debug mode, or something like this.

I've always wanted a compiler feature like this, but what would be infinitely more useful is #If. It could handle debug stuff and much more, like easily changeable compiling options. For instance, my old raycasting project had to have like 8 different copies of the source for slight rendering variations. #If would allow me to combine them all into one and make working on such projects much more manageable.
#If would be awesome.  I'd love to be able to use it; it'd make so many things so much simpler.

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: Features Wishlist
« Reply #2482 on: August 02, 2011, 10:44:05 pm »
What would #If do?
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Features Wishlist
« Reply #2483 on: August 02, 2011, 11:09:16 pm »
It's an If statement that is evaluated at compile time, only compiling the code inside the statement if the condition is true. One scenario in which it would be very useful is debugging. You could put something like this in your code to easily enable or disable a bunch of debugging outputs and not have the debug code bloat your program when you're not debugging.

Code: [Select]
.MYPROG
1→°Debug

.Some of your program

#If °Debug
ClrHome
Disp A►Dec,i,B►Dec,i,C►Dec,i,X►Dec,i,Y►Dec
While 1
EndIf getKey(0)
End

.The rest of your program


You could also use for many other things. To name a few:
  • To include different versions of a block of code and easily toggle which one is enabled
  • To make compile options if the piece of code is going to be used by others and you want them to easily modify it to suit their needs
  • To use optimized code if a define has a certain value
« Last Edit: August 02, 2011, 11:13:25 pm by Runer112 »

Offline ZippyDee

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 729
  • Rating: +83/-8
  • Why not zoidberg?
    • View Profile
Re: Features Wishlist
« Reply #2484 on: August 03, 2011, 03:46:48 am »
wouldn't that need to be #End at the end of that?
There's something about Tuesday...


Pushpins 'n' stuff...


Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Features Wishlist
« Reply #2485 on: August 03, 2011, 10:57:15 am »
Technically, yes, it should be preceded with an octothorpe. The question is do we want to make a new token for #End, which probably wouldn't be as obvious to find as End and wouldn't make as much sense without token replacements.
« Last Edit: August 03, 2011, 10:57:53 am by Runer112 »

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: Features Wishlist
« Reply #2486 on: August 03, 2011, 10:59:16 am »
It may also be possible to make use of the existing If construct with a constant condition. The compiler could then auto-optimize and get rid of the portion that is never run. Does this sound like a good idea?
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline p2

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 849
  • Rating: +51/-11
  • I'm back :)
    • View Profile
Re: Features Wishlist
« Reply #2487 on: August 03, 2011, 11:00:51 am »
wouldn't this be possible:
you write 7/8 and get 1
you write (1/4)+8.95 and get 9

so that it rounds decimals, but doesn't make an Error?
(for calculations in graphical-things)
*insert supercool signature*

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Features Wishlist
« Reply #2488 on: August 03, 2011, 11:03:19 am »
No, I think an actual #If is still necessary. There could be labels or data defined inside the subroutine that other parts of the program need regardless of whether or not the if statement is executed. And regardless of that, I think it's a good idea to continue the pattern of preceding compiler commands with an octothorpe.

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Features Wishlist
« Reply #2489 on: August 03, 2011, 01:55:47 pm »
The #If and #End would be super easy to code, but what would be good symbols for those to replace?

Also, octothorpe?  Haven't heard that used.  The convention I use when reading code aloud is:
Code: [Select]
# - Hash
! - Bang
* - Splat
/ - Whack

Its pretty old school from my lisp programming, but I love using it!  ;D
___Axe_Parser___
Today the calculator, tomorrow the world!