Thomas Jentzsch Posted November 17, 2021 Share Posted November 17, 2021 (edited) Attached you find a simple tech demo, which resulted from discussing with @johnnywc about his newest project Qix. All it does is drawing a single (Qix) line on the screen. The line data is created on-the-fly using the Bresenham line algorithm. The clue is, that this line is quite long (up to 44 pixel), using just one sprite an no flicker. To achieve this length, I combined several tricks: depending of the width (and angle) of the line, the sprite is double or quad sized the sprite position is updated every line the sprite bits forming the line are shifted to allow larger line segments (> 7 pixel) When you start the demo, you only see a line rotating. You can use the switches to change that. Color/B&W = B&W: The Qix line color reflects the sprite size (blue = single, green = double, red = quad sized) Left Difficulty = A: The Qix line independently changes it horizontal and vertical size Right Difficulty = A: The Qix line moves around the screen (this is a demo, so just for the show ) Maybe I will further enhance the demo. Not sure yet. BTW: When using Stella, for a nice Qix like effect, try to set the phosphor blend to ~90. QixDemo_V1.bin QixDemo_V1.asm Sine_12_05.h Edited November 17, 2021 by Thomas Jentzsch 17 Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.