New demo uploaded: Spinning Intro

All aspects of programming on the Commander X16.
Post Reply
User avatar
Yazwho
Posts: 167
Joined: Fri Feb 19, 2021 2:59 pm
Contact:

New demo uploaded: Spinning Intro

Post by Yazwho »




Spinning Intro




View File






Another small intro. Sadly still no audio.

If only it wasn't so painful to debug audio and if I had any sort of musical talent...

Thanks for looking!


Spinner.zip






 
Ed Minchau
Posts: 503
Joined: Sat Jul 11, 2020 3:30 pm

New demo uploaded: Spinning Intro

Post by Ed Minchau »


That scrolling text is really smooth.

User avatar
Yazwho
Posts: 167
Joined: Fri Feb 19, 2021 2:59 pm
Contact:

New demo uploaded: Spinning Intro

Post by Yazwho »



59 minutes ago, Ed Minchau said:




That scrolling text is really smooth.



60fps or nothing! ?

DrTypo
Posts: 18
Joined: Sat Apr 10, 2021 9:13 pm

New demo uploaded: Spinning Intro

Post by DrTypo »


I'm very curious about the transparency effect. It seems to be very cleverly done, especially the colored transparency under the Bitmap sign.

I guess most of the magic happens in the palette design then you OR the background and foreground. Would you mind elaborating on your secret sauce? ?

About audio, yeah, we definitively need some kind of synthesis tracker routine and format.

 

ZeroByte
Posts: 714
Joined: Wed Feb 10, 2021 2:40 pm

New demo uploaded: Spinning Intro

Post by ZeroByte »



1 hour ago, DrTypo said:




About audio, yeah, we definitively need some kind of synthesis tracker routine and format.



M00dawg is working on that as far as unique CX16 sound goes.

Using Deflemask to make YM2151 tracks is immediately doable, and with some preprocessing, you could strip VGM down to something barebones like IMF which is very low overhead to play back.

User avatar
Yazwho
Posts: 167
Joined: Fri Feb 19, 2021 2:59 pm
Contact:

New demo uploaded: Spinning Intro

Post by Yazwho »



7 hours ago, DrTypo said:




I'm very curious about the transparency effect. It seems to be very cleverly done, especially the colored transparency under the Bitmap sign.



I guess most of the magic happens in the palette design then you OR the background and foreground. 



Even simpler, its passive so takes no cpu. The palette offset for the background tiles is set at startup, and the 'pixels' themselves are a tile of solid colour from 1-8. (not zero!) So by only drawing the 'pixels' we get the transparent colour for free. (Set the Vera to step on by 2 bytes per write.)

Below is a grab without the foreground layer which makes it more obvious.

So all you need to do is create a overlay that lines up to the 8x8 tiles.


example.png
DrTypo
Posts: 18
Joined: Sat Apr 10, 2021 9:13 pm

New demo uploaded: Spinning Intro

Post by DrTypo »


Thank you for your explanation Yazwho

I've not yet looked into the tile system of VERA. This is going to be the next tutorial in Matt's series I'll look.

ZeroByte:  It's good to see people working on audio solutions. I'll take a closer look at M00dawg's work.


 


User avatar
Yazwho
Posts: 167
Joined: Fri Feb 19, 2021 2:59 pm
Contact:

New demo uploaded: Spinning Intro

Post by Yazwho »


I've uploaded the source. You'll need Visual Studio Code, cc65 and obviously the emulator. To build you'll need to edit build.ps1 to set your paths correctly.

There's a C# Visual Studio project that calculates and creates the data tables for the background.

DrTypo
Posts: 18
Joined: Sat Apr 10, 2021 9:13 pm

New demo uploaded: Spinning Intro

Post by DrTypo »


I installed VSCode, edited build.ps1 and built your project successfully! Now I'm considering switching to VSCode for  my projects, it looks pretty nifty.

 

User avatar
Yazwho
Posts: 167
Joined: Fri Feb 19, 2021 2:59 pm
Contact:

New demo uploaded: Spinning Intro

Post by Yazwho »



7 hours ago, DrTypo said:




I installed VSCode, edited build.ps1 and built your project successfully! Now I'm considering switching to VSCode for  my projects, it looks pretty nifty.



 



If you install 'ca65 Macro Language Support' you'll get syntax colouring and the like. The extension can add tasks to compile and link, but I prefer to do it all on f5 so I used the ps1 file. (Unless I'm missing something, its my first VSC project as well!)

https://marketplace.visualstudio.com/items?itemName=tlgkccampbell.code-ca65

Post Reply