nqrduck.assets.animations#

Provides methods to load animations.

Classes

Animations()

This class provides methods to load animations.

DuckAnimations()

This class provides duck animations.

class nqrduck.assets.animations.Animations#

This class provides methods to load animations.

The animations are loaded from the assets/animations folder.

static get_animation(name)#

Returns an animation as a QMovie.

Parameters:

name (str) – The name of the animation to load.

Returns:

The loaded animation.

Return type:

QMovie

static load_animation(folder, name)#

Loads an animation and returns it as a QMovie.

Parameters:
  • folder (str) – The folder in which the animation is located.

  • name (str) – The name of the animation to load.

Returns:

The loaded animation.

Return type:

QMovie

class nqrduck.assets.animations.DuckAnimations#

This class provides duck animations.

static DuckKick128x128()#

Returns the DuckKick animation as a QMovie.

Careful this has been exported at 400% so it might look odd if placed to other assets.

Returns:

The DuckKick animation.

Return type:

QMovie

static DuckSleep128x128()#

Returns the DuckSleep animation as a QMovie.

Careful this has been exported at 400% so it might look odd if placed to other assets.

Returns:

The DuckSleep animation.

Return type:

QMovie