Jump to content

Draconland

  • entries
    46
  • comments
    106
  • views
    70,367

Nes Sprite Programming

LS_Dracon

575 views

Slow but improving my NES programming skills.

Today (well, yesterday) I did a code to create a sprite "block" (don't know how to call it).

This is something new to me, on Atari 2600 and Odyssey2 each sprite is a single object. On NES the sprites is a little tile, 8x8 pixels.
Naturally to display large images you need to use more than a single tile, and make them move together is a bit tricky.
But I find a way to do it, so I can create many combinations using only a single Y and X variables for each "sprite block".

The NES rom attached is and exemple of few sprite blocks moving. The colors and graphics flickers because a bug I left just because it makes an interesting effect. But you can see the shape of each "sprite block" never change.

Usually you need square or rectangle shapes, but my code is optimized and does not waste more cycles to create unusual shapes.

blogentry-10940-0-58712200-1507406231_thumb.png



0 Comments


Recommended Comments

There are no comments to display.

Guest
Add a comment...

×   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.

Loading...
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...