Permalink
Browse files

Added alpha key.

  • Loading branch information...
1 parent 26b8da8 commit bec11ef10134052ad4d2296b3c4e2ed92027d0a3 @jtpalmer committed Aug 19, 2010
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/Games/Maze/SDL/View/Player.pm
  2. BIN share/hero.png
View
6 lib/Games/Maze/SDL/View/Player.pm
@@ -26,8 +26,6 @@ sub BUILD {
my ($self) = @_;
$self->model->add_observer( sub { $self->handle_event(@_) } );
- $self->sprite->x( $self->model->x );
- $self->sprite->y( $self->model->y );
return $self;
}
@@ -49,8 +47,12 @@ sub _build_sprite {
},
);
+ $sprite->alpha_key([ 255, 0, 0 ]);
$sprite->sequence( $self->model->direction );
+ $sprite->x( $self->model->x );
+ $sprite->y( $self->model->y );
+
return $sprite;
}
View
BIN share/hero.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bec11ef

Please sign in to comment.