Skip to content

mv.graphics.sprite

Create a fixed atlas sprite graphic for self.graph.

Parameters

  • atlas — An atlas from load_atlas or load_aseprite.
  • id — A positive sprite id.
local ship = mv.graphics.sprite(atlas, 42)

Related: graph, animation.

See the drawing guide for more examples and limits.