Opus Motion ★ Star on GitHub

Game & sports · lit-pixel-sprite

Lit pixel sprites

Flat low-res pixel characters with 1-px selout outlines step through 4-frame walk cycles and 2-frame idles on a dusk plaza. Two practical lamps and a drifting lantern tint their colours as they pass, posterised light pools band across the floor, and each sprite casts sheared shadows away from every nearby light while the camera drifts smoothly.

A free, MIT-licensed game graphic from the Opus Motion Library — 616 motions for Remotion, React and plain HTML.

Lit pixel sprites: three frames of the game graphic, start, middle and end
Lit pixel sprites — start, middle and end of the 8.0-second motion.

What Lit pixel sprites is for

Retro-game storytelling, pixel mascots in a lit set, HD-2D mood; pairs with pixel-dither.

  • pixel art
  • sprite
  • hd-2d
  • retro game
  • walk cycle
  • lantern
  • dynamic lighting
  • shadows
  • selout
  • character
  • night
  • plaza
  • 16-bit

Details

Category
Game & sports graphics
Length
8.0 s (240 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
no
Seamless loop
no
Text props
—
Colour props
lightColor ambient floorColor wallColor
Mood
pixel, playful, night
Roles
subject

Use Lit pixel sprites in Remotion, React or HTML

Remotion project

terminal
# copy this motion into your Remotion project
node cli/mgl.mjs add lit-pixel-sprite --to ../my-app/src

# render an mp4 (run in the library folder)
node cli/mgl.mjs render lit-pixel-sprite --props '{"lightColor":"#FFB35A","ambient":"#6A76AE","floorColor":"#3A3A5E","wallColor":"#2B2850"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export lit-pixel-sprite --as mp4 --props '{"lightColor":"#FFB35A","ambient":"#6A76AE","floorColor":"#3A3A5E","wallColor":"#2B2850"}'

React / Next.js

tsx
import {MotionPlayer} from 'opus-motion-library/web';

<MotionPlayer
  motion="lit-pixel-sprite"
  props={{
    lightColor: '#FFB35A',
    ambient: '#6A76AE',
    floorColor: '#3A3A5E',
    wallColor: '#2B2850',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

html
<script src="opus-motion.element.js" defer></script>

<opus-motion motion="lit-pixel-sprite"
  props='{"lightColor":"#FFB35A","ambient":"#6A76AE","floorColor":"#3A3A5E","wallColor":"#2B2850"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "lit-pixel-sprite",
      "props": {
        "lightColor": "#FFB35A",
        "ambient": "#6A76AE",
        "floorColor": "#3A3A5E",
        "wallColor": "#2B2850"
      }
    }
  ]
}

Lit pixel sprites props

9 parameters — change any of them to make the motion yours.

PropDefaultWhat it does
pixel10screen px per sprite pixel at 1080p (5–10)
lightColor"#FFB35A"warm lamp colour
ambient"#6A76AE"cool ambient light colour (the unlit tint)
floorColor"#3A3A5E"floor tile colour
wallColor"#2B2850"back wall colour
chars4number of characters 1–4 (the last one idles)
camera70smooth camera sway in px (0 = locked)
walkFps8walk-cycle frames per second (6–10)
seed3walker speed/phase seed

Notes & credits

Technique sources:

  • lemo-opuscar styles/hd-2d demo chars.js / px.js / kit.js (MIT, LemoLab)
  • lemo-styles-a hd-2d: lit-pixel-sprite