Box2D

 view release on metacpan or  search on metacpan

examples/breakable.pl  view on Meta::CPAN

use SDL;
use SDL::Video;
use SDL::Events qw(:type);
use SDLx::App;
use Math::Trig qw(:pi);

package Breakable;
use Moose;

use List::Util qw(max);
use namespace::autoclean;

# Initial coordinates, angle and size
has [qw( x y angle w h )] => (
    is       => 'ro',
    isa      => 'Num',
    required => 1,
);

has color => (
    is      => 'ro',



( run in 0.451 second using v1.01-cache-2.11-cpan-a5abf4f5562 )