Author Topic: Features Wishlist  (Read 683615 times)

0 Members and 3 Guests are viewing this topic.

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Features Wishlist
« Reply #2850 on: December 17, 2011, 08:08:29 pm »
A  sprite command that would treat black as transparent and white as solid. Perhaps it could be called Pt-Black()?
Wat? You mean draw the sprite inverted?

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Features Wishlist
« Reply #2851 on: December 17, 2011, 08:15:31 pm »
Couldn't you just use Pt-Mask() ?

Offline LincolnB

  • Check It Out Now
  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1115
  • Rating: +125/-4
  • By Hackers For Hackers
    • View Profile
Re: Features Wishlist
« Reply #2852 on: December 17, 2011, 08:15:47 pm »
well that's relatively easy to write a subroutine yourself, just Logically XOR every byte of the sprite with 255.
« Last Edit: December 17, 2011, 09:23:56 pm by buttsfredkin »
Completed Projects:
   >> Spacky Emprise   >> Spacky 2 - Beta   >> Fantastic Sam
   >> An Exercise In Futility   >> GeoCore

My Current Projects:

Projects in Development:
In Medias Res - Contest Entry

Talk to me if you need help with Axe coding.


Spoiler For Bragging Rights:
Not much yet, hopefully this section will grow soon with time (and more contests)



Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Features Wishlist
« Reply #2853 on: December 17, 2011, 08:17:23 pm »
well that's relatively easy to write a subroutine yourself, just Logically OR every byte of the sprite with 255.

Wouldn't that return 255 all the time?  O.o What he wants is AND sprite logic.

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 #2854 on: December 17, 2011, 08:44:00 pm »
No, NOR logic.
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 Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Features Wishlist
« Reply #2855 on: December 17, 2011, 09:16:47 pm »
Mmm I believe AND logic is what you want, here is the truth table:

Sprite: Screen: Result:
000
010
100
111

As you can see, when the sprite is white (0) it forces the result to be white.  This emulates a solid white color.  When the sprite is black, the result is equal to the screen, which emulates a transparent color.  NOR logic would look like so:

Sprite: Screen: Result:
001
010
100
110

Where if the sprite was black, the result would be white, and if the sprite was white, the result would be an inverse.

Offline LincolnB

  • Check It Out Now
  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1115
  • Rating: +125/-4
  • By Hackers For Hackers
    • View Profile
Re: Features Wishlist
« Reply #2856 on: December 17, 2011, 09:25:07 pm »
Oops, I meant XOR. My bad, I modified the last post. XOR the sprite with 255 and do a Pt-On with that sprite. Although if you're logically altering L6 directly, AND logic should be good.
Completed Projects:
   >> Spacky Emprise   >> Spacky 2 - Beta   >> Fantastic Sam
   >> An Exercise In Futility   >> GeoCore

My Current Projects:

Projects in Development:
In Medias Res - Contest Entry

Talk to me if you need help with Axe coding.


Spoiler For Bragging Rights:
Not much yet, hopefully this section will grow soon with time (and more contests)



Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Features Wishlist
« Reply #2857 on: December 17, 2011, 09:29:29 pm »
That won't work either because Pt-On can only turn on pixels, not turn them off.

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 #2858 on: December 17, 2011, 09:32:07 pm »
Yeah, the best option is to work with the "Light" version of the screen and use the standard Pt-Mask()r, but right before the DispGraph, do a DrawInv.  If you don't clear the screen after that and need to continue working with it, just call another DrawInv to convert it back again to the light version.
« Last Edit: December 17, 2011, 09:32:38 pm by Quigibo »
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline LincolnB

  • Check It Out Now
  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1115
  • Rating: +125/-4
  • By Hackers For Hackers
    • View Profile
Re: Features Wishlist
« Reply #2859 on: December 17, 2011, 09:35:07 pm »
Oh, I was under the impression Freyaday wanted white pixels in the sprite to show up black on the screen, and black pixels to not show up. Guess not.
Completed Projects:
   >> Spacky Emprise   >> Spacky 2 - Beta   >> Fantastic Sam
   >> An Exercise In Futility   >> GeoCore

My Current Projects:

Projects in Development:
In Medias Res - Contest Entry

Talk to me if you need help with Axe coding.


Spoiler For Bragging Rights:
Not much yet, hopefully this section will grow soon with time (and more contests)



Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Features Wishlist
« Reply #2860 on: December 17, 2011, 09:43:31 pm »
Yeah, the best option is to work with the "Light" version of the screen and use the standard Pt-Mask()r, but right before the DispGraph, do a DrawInv.  If you don't clear the screen after that and need to continue working with it, just call another DrawInv to convert it back again to the light version.

Couldn't you work with the Pt-Mask routine normally without resorting to inverting the entire screen? If I remember correctly it does support sprites that are white and transparent. 

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 #2861 on: December 17, 2011, 09:55:51 pm »
Oh wait, you're right.  You just have to change the sprite beforehand to map transparent to 0,0 on the sprite+mask and white to 0,1 which is easy because you don't have to do that at runtime, just import your sprites in this format.
___Axe_Parser___
Today the calculator, tomorrow the world!

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 #2862 on: December 17, 2011, 10:05:25 pm »
Quigibo, why don't you add an invert command like the rotC, rotCC, flipV, and flipH commands?  This would make tasks like what Frey wants to do a lot easier and I can see it being just as useful as those other four commands.

Offline leafy

  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1554
  • Rating: +475/-97
  • Seizon senryakuuuu!
    • View Profile
    • keff.me
Re: Features Wishlist
« Reply #2863 on: December 17, 2011, 10:06:54 pm »
Oh here's something I've always really wanted - a RectOff command.

(Yes that sounds kinda weird)
« Last Edit: December 17, 2011, 10:07:04 pm by leafiness0 »
In-progress: Graviter (...)

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 #2864 on: December 17, 2011, 10:14:01 pm »
Oh here's something I've always really wanted - a RectOff command.

(Yes that sounds kinda weird)
That's what I asked for with RectW()
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!