Author Topic: 4-level grayscale sprite editor  (Read 18412 times)

0 Members and 2 Guests are viewing this topic.

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
4-level grayscale sprite editor
« on: November 24, 2010, 06:39:55 pm »
edits 8x8 sprites.

[2nd]   to toggle the buffer pixel
[Alpha] to toggle the backbuffer pixel
[clear] to quit and export hex to Str1

hex is formatted like so:
[(buffer hex)](newline)[(backbuffer hex)]
« Last Edit: November 24, 2010, 06:41:38 pm by nemo »


ASHBAD_ALVIN

  • Guest
Re: 4-level grayscale sprite editor
« Reply #1 on: November 24, 2010, 06:41:09 pm »
great!  8x8?

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: 4-level grayscale sprite editor
« Reply #2 on: November 24, 2010, 06:41:24 pm »
yes, 8x8. edited in.


Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: 4-level grayscale sprite editor
« Reply #3 on: November 24, 2010, 06:41:44 pm »
yes, 8x8. edited in.


Already trying :)

ASHBAD_ALVIN

  • Guest
Re: 4-level grayscale sprite editor
« Reply #4 on: November 24, 2010, 06:42:14 pm »
perfect, ill download tonight ;)

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: 4-level grayscale sprite editor
« Reply #5 on: November 24, 2010, 06:42:32 pm »
I saw you talking about this on IRC for Downsider.
I might try it out later :)
"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 Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: 4-level grayscale sprite editor
« Reply #6 on: November 24, 2010, 06:43:46 pm »
Already tried looks great, I suggest setting one key to a specific colour, so that I don't have to press alpha 3 times :S

ASHBAD_ALVIN

  • Guest
Re: 4-level grayscale sprite editor
« Reply #7 on: November 24, 2010, 07:03:58 pm »
can't get onto my calc, can't send stuff :(

can you give the source?

Offline Downsider

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 12
  • Rating: +0/-0
    • View Profile
Re: 4-level grayscale sprite editor
« Reply #8 on: November 24, 2010, 08:18:01 pm »
Well done! Works excellent. This will be a huge, huge use to me in the future  :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: 4-level grayscale sprite editor
« Reply #9 on: November 24, 2010, 11:27:03 pm »
Nice, but is it normal that I got this when trying to recall a string? ???

Offline MRide

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 711
  • Rating: +14/-0
  • You can't see this.
    • View Profile
Re: 4-level grayscale sprite editor
« Reply #10 on: November 24, 2010, 11:31:54 pm »
I'll have to try this out.  When I ever get around to making a greyscale game in Axe.
Which will be like 2020.

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: 4-level grayscale sprite editor
« Reply #11 on: November 24, 2010, 11:37:05 pm »
* DJ Omnimaga hopes it is sooner D: (well... after IQ is finished of course :P)

Offline MRide

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 711
  • Rating: +14/-0
  • You can't see this.
    • View Profile
Re: 4-level grayscale sprite editor
« Reply #12 on: November 24, 2010, 11:46:58 pm »
Yeah....I really need to have like a month with no school, then IQ will be perfected.  Xmas break is my planned finishing time, but who knows?

ASHBAD_ALVIN

  • Guest
Re: 4-level grayscale sprite editor
« Reply #13 on: November 25, 2010, 07:50:12 am »
Nice, but is it normal that I got this when trying to recall a string? ???

hmm I see nemo stores it as tokens... 

that's what I had before, I thought his would store as hex or something.  Well, then mine is betterer, it's easier to use, and has cool features like invert areas, scroll right/left/up/down, auto dither an output as B&W only.  I was just hoping he could show me a quick way to output the string in chars :(

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: 4-level grayscale sprite editor
« Reply #14 on: November 25, 2010, 12:29:53 pm »
Nice, but is it normal that I got this when trying to recall a string? ???

Dj, that is pretty odd. i have no idea what the problem is. if you recall the string in a program, it works perfectly, though. and there really isn't a reason to recall the string to the homescreen if you're using it for Axe anyway, so i don't think i'm going to investigate the problem.

Ashbad, outputting a hex string as tokens or ASCII is the same because you're only using 0-9 and A-F, which have the same token/ASCII values. or in my case i'm also adding in a newline token for Downsider's ease of use.

as for exporting the hex into a string, well, that's easy:
Code: [Select]
GetCalc("Str1",32)->P
"0123456789ABCDEF"->Str1
For(Y,0,7
For(Z,0,1
0->C->D
For(X,0,3
e^(3-X)*pxl-Test(Z*4+X,Y)+C->C
e^(3-X)*pxl-Test(Z*4+X,Y)r+D->D
End
{C+Str1}->{Y*2+Z+P}
{D+Str1}->{Y*2+Z+P+16}
End
End