Jump to content

New demo uploaded: Assembly Vector Graphics Demo


Recommended Posts

Assembly Vector Graphics Demo

View File

This is a quick demo of a 2D graphics library I've been working on recently. It's written in assembler, and aims to make life a bit easier when it comes to drawing vector graphics. You can define individual polygons which can be moved about and rotated. The source code looks fairly daunting, but when it comes down to it, building, transforming and rendering the polygons is very straightforward. Hopefully this will form the basis of a game at some point soon. (Perhaps an Asteroids clone?) Once I sink my teeth into interrupt handling, I should be able to "vsync" everything so it's flicker-free. 

All comments and suggestions welcome! 

Short screen capture of this demo on YouTube (featuring my tunez!!): 
Commander X16 Demo - Vector Graphics in 6502 Assembly - YouTube

WARNING: For those who are sensitive to flickering/strobing, please be aware that this may cause problems for you. 

--

See below for a quick preview of the game I'm working on, retro flickering and all! 

Desktop 2021.02.07 - 20.15.07.01.gif


 

  • Like 1
Link to comment
Share on other sites

Screen 128 mode ($80) is a bitmap mode where you can do various BASIC drawing commands that have been added in the X16.  You can also call them from assembly.  It has a lot of 2D drawing functions similar to yours such as drawing lines, rectangles, text, images, etc.

  • Thanks 1
Link to comment
Share on other sites

4 minutes ago, Ender said:

Screen 128 mode ($80) is a bitmap mode where you can do various BASIC drawing commands that have been added in the X16.  You can also call them from assembly.  It has a lot of 2D drawing functions similar to yours such as drawing lines, rectangles, text, images, etc.

Ah, gotcha. Yeah I'm referencing some of those in my code. But the transformation stuff is all from scratch. 

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