Author Topic: Grayscale title screen editor  (Read 10169 times)

0 Members and 1 Guest are viewing this topic.

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Grayscale title screen editor
« on: September 11, 2010, 11:00:32 pm »
i made a simple grayscale editor where you can define the height and width of your title screen and edit it pixel-by-pixel. when you enter a number in, it has to have two digits. meaning "6" is not a valid input, it should be "06". it's pretty simple right now.. you move a cursor around where [2nd] inverts the pixel on the buffer, and [alpha] inverts the pixel on the backbuffer. mode inverts the buffer, xton inverts the backbuffer, del clears the buffer, stat clears the backbuffer. they literally use drawInv and ClrDraw, so when you invert the buffer, not only will your title screen be inverted, but also the rest of the buffer.
unfortunately, i don't have access to a link cable right now.. so here's the source code, if you feel like typing it in. the source is only 440 bytes, the executable is just over a thousand. here's the source:
Code: [Select]
.PICEDIT
ClrDraw
ClrDraw{^r}
DiagnosticOff
Disp "HEIGHT"
{input}^r->C^256-48*10+(C/256-48)->H
ClrHome
Disp "WIDTH"
{input}^r->C^256-48*10+(C/256-48)->W
0->X->Y
Repeat getKey(9)
If getKey->K=54
Pxl-Change(X,Y
End
If K=48
Pxl-Change(X,Y)^r
End
If K=55
DrawInv :End
If K=40
DrawInv ^r:End
If K=56
ClrDraw:End
If K=32
ClrDraw^r:End
K=3 and (W-1!=X)-(K=2)+X->X
K=1 and (H-1!=Y)-(K=4)+Y->Y
Pxl-Change(X,Y
DispGraphrr
Pxl-Change(X,Y
End
"0123456789ABCDEF"->Str1
GetCalc("Str1",W/8+(W^8!=0)->L*H->U*4)->A
12-L->B
For(Z,0,U-1
{{Z/L*B+L6+Z}->C/16+Str1}->(Z*2+A}
{C^16+Str1}->{Z*2+1+A}
{{Z/L*B+L3+Z}->C/16+Str1}->(Z*2+(U*2)+A}
{C^16+Str1}->{Z*2+1+(U*2)+A}
End


Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Grayscale title screen editor
« Reply #1 on: September 11, 2010, 11:13:30 pm »
What is the "{input}" thing? Like what token or what do I type in. I was gonna get a copy up for people.

Nevermind, think I got it.
« Last Edit: September 11, 2010, 11:28:47 pm by meishe91 »
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

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: Grayscale title screen editor
« Reply #2 on: September 11, 2010, 11:17:45 pm »
Nice, I would like to eventually see more development on this, like some tools such as rectangles, flood filling, etc. I'M glad to see more drawing tools for Axe :)

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Grayscale title screen editor
« Reply #3 on: September 11, 2010, 11:37:54 pm »
Um, so I tried typing it all in and it is compiling but it doesn't do anything. I don't know what is wrong. I've gone over the code twice. I'd try to fix it but I don't know enough about Axe. Either there are typos that are making it wrong (there are some) or I'm missing something in my code. I don't know though, sorry I can't get a copy up.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

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: Grayscale title screen editor
« Reply #4 on: September 11, 2010, 11:49:43 pm »
Maybe he did a typo or there's part of the code that was meant to be something else, idk.

Btw, {^r} is meant to be r. No clue about ^r, though, nor {input}.

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: Grayscale title screen editor
« Reply #5 on: September 11, 2010, 11:54:24 pm »
{^r}=^r and {input} means the byte at Input, input being the token


Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Grayscale title screen editor
« Reply #6 on: September 11, 2010, 11:54:30 pm »
Ya, I don't know. I mean there are typos in the code (no offence, nemo) like that one and I thought I caught them all. The only one that I see that I'm not sure about is "DispGraphrr" but I'm assuming it's supposed to be DispGraphr. {input} I figured out, it's just another command that wasn't in the version I had on my calculator, which I fixed. What seems to be happening though is that it isn't repeating or something.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: Grayscale title screen editor
« Reply #7 on: September 12, 2010, 12:01:31 am »
There aren't any typos. Dispgraphrr is dispgraphrr
Sorry im being brief im on an ipad


Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Grayscale title screen editor
« Reply #8 on: September 12, 2010, 12:04:53 am »
Oh...how did I not realize that ???

And what about the places where you start with a ( and end with a }?

Edit:
I still can't seem to get it to work :(
« Last Edit: September 12, 2010, 12:05:45 am by meishe91 »
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: Grayscale title screen editor
« Reply #9 on: September 12, 2010, 12:08:19 am »
Oops. Those aré typos. Treat the ( as {


Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Grayscale title screen editor
« Reply #10 on: September 12, 2010, 12:11:00 am »
Ya, that's what I assumed.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Grayscale title screen editor
« Reply #11 on: September 12, 2010, 02:26:45 pm »
Was anyone able to type this in and get a working executable?
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Grayscale title screen editor
« Reply #12 on: September 12, 2010, 02:32:36 pm »
Not I :(

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: Grayscale title screen editor
« Reply #13 on: September 12, 2010, 02:48:13 pm »
Same x.x

I think there migth be a typo or we are all interpreting a part of the code as something else, or something like that.

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Grayscale title screen editor
« Reply #14 on: September 12, 2010, 02:51:51 pm »
Well from what I'm seeing this do it looks like what happens with TI-BASIC when you don't put a End at the end of a loop.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)