Rok Sprite LiteCreate pixel art and sprite animations directly in VS Code. Edit PNG files, organize animation frames, and export numbered PNG sequences.
Example artwork: Pixel Platformer Pack by Disarmed Games, licensed under CC BY 4.0. Start an image
The same command is available in the Command Palette before an editor is open. The toolbar also includes New Image… and Open…. To try the player frames, run Rok Sprite Lite: Open Example Animation… from the Command Palette. Choose a location for the working copy. The example opens with 20 frames and four named animations. Save and exportThe toolbar groups file actions, resize controls, and animation settings. Settings and Help are at the right.
Export… provides three choices:
Animation exports use names such as
Animation framesThe bottom strip shows frame thumbnails, named animation tabs, and a scrub slider. Select a thumbnail or drag the slider to choose the frame to edit. The floating preview plays independently of the editing frame. Drag its header to move it.
Copies retain their source pixels. Copy, replacement, and deletion support Undo. New frames shift later atlas tiles and strip ranges together. Unrelated tiles stay outside the active animation. Use Animation… or Strips… to edit names, frame ranges, speed, and playback mode. Each strip supports 1–30 fps, Loop, Ping Pong, and Once. Strip ranges can overlap.
Drawing and navigation
Double-click Rectangle or Ellipse to switch between outline and filled shapes. Right-click and drag to erase pixels without changing the selected tool. With Select/Move active, hold Option/Alt and drag a selection to place a copy. The canvas fits into view on open. Use the wheel or trackpad to zoom and middle-drag to pan. Drag the minimap header to move it. Drag its corner to change its size in steps. The minimap position and scale are saved in the editor preferences. ResizeResize… → Canvas changes the image bounds with anchored cropping or expansion. Resize… → Image scales the image by percentage with Nearest neighbor or Bilinear sampling. Image scaling disables atlas mode. Undo restores the previous image and atlas settings.
Palettes and settingsDouble-click a palette swatch to change its color. Use + to add a color. The swatch area scrolls without a visible scrollbar. Small indicators show hidden colors above or below it. Settings includes 14 bundled palettes, Lospec Indexed palette mode is off by default. In this mode, swatch edits recolor matching pixels. A palette switch maps pixels to the closest palette colors after confirmation. Pixel transparency is preserved, and palette remapping supports Undo.
Other preferences include zoom steps, wheel sensitivity, workspace background, minimap size, atlas tile size, and new-image size. Keyboard and mouse controls
The ? button opens the in-editor guide. Formats and limits
Rok Sprite Lite works locally. Marketplace screenshots load from the public RokRage gallery. The extension package also contains local screenshot copies. Artwork creditThe player artwork in the example and screenshots is from Pixel Platformer Pack by Disarmed Games. The example rearranges the supplied Idle, Run, Punch, and Hit sheets into a 20-frame atlas. The artwork pixels are unchanged. Screenshots show enlarged editor views with nearest-neighbor scaling. The extension code uses the MIT license. The artwork retains its separate license. Disarmed Games does not endorse this extension. The package includes full attribution in |