Jump to content

New demo uploaded: Black and White


Recommended Posts

Black and White

View File

X16 Forum

This is my third "Double PETSCII" demo.
But this time around, the colors are gone. It is only black and white.
This is a converted PETSCII picture,
the trick was to see if with no colors still some nice effects could be done.

Besides PETSCII, there are also a few effects.

The demo is written in KickC, and the PETSCII editor is once more the
alfa version of HyperPetscii.

The link to this can be found here: https://hyperpyxel.com/?p=229
Note: It is still pretty unstable and does not work well on a browser in the MAC for some reason.
If you cannot run it on an emulator, you can see it on youtube here: https://youtu.be/3x7OieGqQCg

Keep cool, and keep it (DOUBLE) PETSCII.


 

Link to comment
Share on other sites

4 minutes ago, desertfish said:

wait... how did you manage that vertical wave effect???   I tried something like that but couldn't get the vera to do what i wanted with the vertical scaling register

I believe this kind of effect is done by changing the vertical scroll register on each scanline, rather than vertical scaling.

Link to comment
Share on other sites

So, adding to my review  and your reply @CursorKeys...
I'd suggest putting in a hotkey to instantly reveal the text: esc, spacebar, or just any key.  And then another press to continue on.  Forcing your user to read at a fixed rate is just bad juju, thanks 😄

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

Posted (edited)
On 6/18/2021 at 1:59 AM, desertfish said:

wait... how did you manage that vertical wave effect???   I tried something like that but couldn't get the vera to do what i wanted with the vertical scaling register

 

On 6/18/2021 at 2:06 AM, Elektron72 said:

I believe this kind of effect is done by changing the vertical scroll register on each scanline, rather than vertical scaling.

This is correct. And for double wave effect, I change both H and V registers, and since it's two layers, I am change 4 registers.

Also I found it works pretty well every second line, but I am getting weird effects if I do it every scan-line. Anyway every second scan line is pretty good for the effects I want to do.

The interrupt looks more or less like this.

__interrupt void irq_line() {

*VERA_L1_HSCROLL_L = WAVES[loffset];
*VERA_L0_HSCROLL_L = WAVES[loffset];

loffset+=2;

// Reset the LINE interrupt magic below
 *VERA_IRQLINE_L = (unsigned char)loffset & 0xFF;

 if(loffset > 255) { *VERA_IEN |= 128;  }
 else { *VERA_IEN &= 255-128; }

*VERA_ISR = VERA_LINE;

 

Edited by CursorKeys
  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

Please review our Terms of Use