> For the complete documentation index, see [llms.txt](https://inkgame.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://inkgame.gitbook.io/docs/functions/addsprite.md).

# addSprite

Creates a sprite (GameObject class) and returns it

### Arguments

x - Number, sets the X position of the sprite (top-left corner)

y - Number, sets the Y position of the sprite (top-left corner)

width - Number, sets the width of the sprite

height - Number, sets the height of the sprite

char - String, sets the character the sprite is filled with

### Returns

[GameObject](/docs/classes/gameobject.md)
