forapplications.blogg.se

Sprite frame rate addons
Sprite frame rate addons













sprite frame rate addons

color_name $name = $anim->color_name( $color ) See Term::Animation::Entity/PARAMETERS and Term::Animation::Entity/new in Term::Animation::Entity for details on calling this method.

sprite frame rate addons

This is identical to: my $entity = Term::Animation::Entity->new(.) new_entity $anim->new_entity(Ĭreates a new Term::Animation::Entity object and adds it to the animation. Optionally takes an existing curses window to draw in.

sprite frame rate addons

$anim = Term::Animation->new($curses_window) METHODS new $anim = Term::Animation->new() # Term::Animation will not call initscr for you ifĮverything else would be identical to the previous example. This illustrates how to draw your animation into an existing Curses window. # cleanly end the animation, to avoid hosing up the user's terminal (not a good idea if you are expecting much input) # use getch to control the frame rate, and get input at the # run and display a single animation frame Position =>, # row / column / depthĬallback_args =>, # the default callback # turn our shape into an animation object # create a simple shape we can move around This example moves a small object across the screen from left to right. Alternatively, it can accept a curses window (created with the Curses newwin call) as an argument, and will draw into that window. If the constructor is passed no arguments, it assumes that it is running full screen, and behaves accordingly. An animation object can have a callback routine that controls the position and frame of the object. Each ASCII 'sprite' is given one or more frames, and placed into the animation as an 'animation object'.

sprite frame rate addons

This module provides a framework to produce sprite animations using ASCII art. $anim = Term::Animation->new($curses_window) ABSTRACTĪ framework to produce sprite animations using ASCII art. Term::Animation - ASCII sprite animation framework SYNOPSIS use Term::Animation















Sprite frame rate addons