create

Create a Corgi platformer sprite.

corgio.create()

Parameters

  • kind: the kind of sprite for the corgi.
  • x: the initial horizontal position of the corgi sprite on the screen.
  • y: the initial vertical position of the corgi sprite on the screen.

Returns

  • a sprite that is the new corgi.

Example

Create a new corgi at the default screen location and give it movement.

let myCorg = corgio.create(SpriteKind.Player)
myCorg.verticalMovement()
myCorg.horizontalMovement()

See also

create

corgio