added the player paddle lives
This commit is contained in:
parent
1a0b80a3dc
commit
4aff16516e
|
@ -6,7 +6,12 @@ ig.module(
|
|||
)
|
||||
.defines(function(){
|
||||
EntityPaddlePlayer = EntityPaddle.extend({
|
||||
animSheet: new ig.AnimationSheet('media/paddle-player.png', 30, 120),
|
||||
animSheet: new ig.AnimationSheet('media/paddle-player_sheet.png', 30, 120),
|
||||
/*anim: null,
|
||||
|
||||
init: function(){
|
||||
this.anim = new ig.Animation( this.animSheet, 0.1, [0,1,2,3,4] );
|
||||
},*/
|
||||
|
||||
update: function(){
|
||||
if (ig.input.state('up')) {
|
||||
|
|
BIN
dev/media/paddle-player_sheet.png
Normal file
BIN
dev/media/paddle-player_sheet.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.4 KiB |
Loading…
Reference in a new issue