Author Topic: Spritesheet Viewer in Axe  (Read 1995 times)

0 Members and 1 Guest are viewing this topic.

Offline adrusi

  • LV2 Member (Next: 40)
  • **
  • Posts: 25
  • Rating: +4/-0
    • View Profile
    • Adrusi
Spritesheet Viewer in Axe
« on: May 24, 2013, 01:26:34 pm »
After I modified Ikkerens's sprite creator/editor[1], I figured it would be nice to actually be able to view the sprites together rather than just one at a time.

This program lets you essentially create a rearranged spritesheet on the screen so that you can see how the individual sprites fit together.

When it redraws the entire screen, it's a bit slow. The redraw takes almost a full second on my 84+SE, however, it doesn't do full redraws often.

Interface:
There are no on-screen interface elements, since the entire screen is used for displaying sprites.
While F5 is down, it will display the original sprite sheet so that you can see how to navigate to the sprite you want. It redraws the screen when released.
While F4 is down, it will display only the currently selected sprite. This lets you know which sprite is selected. It redraws the screen when released.
Use the arrows to move the cursor. Every time the cursor moves, it simulates pressing F4, so the screen is redrawn.
+ and - will increment and decrement the x value of the sprite displayed in the selected square. This only redraws the relevant square.
* and / will do the same the the y value.

I've attached just the source, since it's mainly and axe utility anyway, so it's kind of useless on a device without axe.

Bugs (will be fixed):
  • cannot change the sprite associated with squares lower than the first row
  • cannot use sprites with an index in the spritesheet greater than 32
  • moving the cursor left when cursor_x = 0 sets cursor_x = 3
  • [1]
http://ourl.ca/18969#quickreply
« Last Edit: May 24, 2013, 02:53:03 pm by adrusi »

Offline adrusi

  • LV2 Member (Next: 40)
  • **
  • Posts: 25
  • Rating: +4/-0
    • View Profile
    • Adrusi
Re: Spritesheet Viewer in Axe
« Reply #1 on: May 25, 2013, 08:05:53 pm »
I have an update. This update fixes all the bugs listed above, makes redrawing the screen about three times faster, and adds support for archived picture files.

The utility is actually usable now ;D

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Spritesheet Viewer in Axe
« Reply #2 on: June 10, 2013, 11:50:13 pm »
Does this require the sprite format and data to be generated by Ikkerens sprite editor, or can any sprite editing tool (for example, PixelScape/TileIt) be used?