Working on the level background

This commit is contained in:
Ruben Müller 2013-04-11 21:14:13 +02:00
parent 56809c619d
commit 899abbb72e
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
ig.module( 'game.levels.level1' ) ig.module( 'game.levels.level1' )
.requires( 'impact.image','game.entities.paddle-enemy','game.entities.paddle-player','game.entities.ball','game.entities.goal' ) .requires( 'impact.image','game.entities.paddle-enemy','game.entities.paddle-player','game.entities.ball','game.entities.goal' )
.defines(function(){ .defines(function(){
LevelLevel1=/*JSON[*/{"entities":[{"type":"EntityPaddleEnemy","x":32,"y":132},{"type":"EntityPaddlePlayer","x":560,"y":128},{"type":"EntityBall","x":300,"y":184},{"type":"EntityGoal","x":576,"y":48,"settings":{"size":{"x":48,"y":288},"owner":"human"}},{"type":"EntityGoal","x":0,"y":48,"settings":{"size":{"x":48,"y":288},"owner":"ai"}}],"layer":[{"name":"bg","width":3,"height":2,"linkWithCollision":false,"visible":1,"tilesetName":"media/bg.png","repeat":false,"preRender":false,"distance":"1","tilesize":250,"foreground":false,"data":[[1,1,1],[1,1,1]]},{"name":"board","width":13,"height":8,"linkWithCollision":false,"visible":1,"tilesetName":"media/tileset.png","repeat":false,"preRender":false,"distance":"1","tilesize":48,"foreground":false,"data":[[1,2,1,1,1,8,9,10,1,2,2,1,1],[5,0,0,0,0,0,0,0,0,0,0,0,5],[5,0,0,0,0,0,0,0,0,0,0,0,5],[5,0,0,0,0,0,0,0,0,0,0,0,5],[5,0,0,0,0,0,0,0,0,0,0,0,5],[5,0,0,0,0,0,0,0,0,0,0,0,5],[5,0,0,0,0,0,0,0,0,0,0,0,5],[2,1,1,2,1,1,1,1,2,2,2,2,1]]},{"name":"collision","width":13,"height":8,"linkWithCollision":false,"visible":0,"tilesetName":"","repeat":false,"preRender":false,"distance":1,"tilesize":48,"foreground":false,"data":[[1,1,1,1,1,1,1,1,1,1,1,1,1],[0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0],[1,1,1,1,1,1,1,1,1,1,1,1,1]]}]}/*]JSON*/; LevelLevel1=/*JSON[*/{"entities":[{"type":"EntityPaddleEnemy","x":32,"y":132},{"type":"EntityPaddlePlayer","x":560,"y":128},{"type":"EntityBall","x":300,"y":184},{"type":"EntityGoal","x":576,"y":48,"settings":{"size":{"x":48,"y":288},"owner":"human"}},{"type":"EntityGoal","x":0,"y":48,"settings":{"size":{"x":48,"y":288},"owner":"ai"}}],"layer":[{"name":"bg","width":3,"height":2,"linkWithCollision":false,"visible":0,"tilesetName":"media/bg.png","repeat":false,"preRender":false,"distance":"1","tilesize":250,"foreground":false,"data":[[1,1,1],[1,1,1]]},{"name":"playfield","width":13,"height":10,"linkWithCollision":false,"visible":1,"tilesetName":"media/playfield.png","repeat":false,"preRender":false,"distance":"1","tilesize":48,"foreground":false,"data":[[1,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,27,0,0,0,0,0,0,0,0,0],[0,0,0,27,6,6,6,0,0,0,0,0,0],[0,0,6,6,6,6,6,0,0,0,0,0,0],[0,0,0,6,6,6,6,63,0,0,0,0,0],[0,0,0,6,6,6,63,63,0,0,0,0,0],[0,0,0,0,0,0,63,0,63,22,0,0,0],[0,0,0,0,0,0,63,63,63,22,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0]]},{"name":"board","width":13,"height":8,"linkWithCollision":false,"visible":0,"tilesetName":"media/tileset.png","repeat":false,"preRender":true,"distance":"1","tilesize":48,"foreground":false,"data":[[1,2,1,1,1,8,9,10,1,2,2,1,1],[5,0,0,0,0,0,0,0,0,0,0,0,5],[5,0,0,0,0,0,0,0,0,0,0,0,5],[5,0,0,0,0,0,0,0,0,0,0,0,5],[5,0,0,0,0,0,0,0,3,0,0,0,5],[5,0,0,0,0,0,0,0,0,0,0,3,5],[5,0,0,0,0,0,0,0,0,0,0,0,5],[2,1,1,2,1,1,1,1,2,2,2,2,1]]},{"name":"collision","width":13,"height":8,"linkWithCollision":false,"visible":0,"tilesetName":"","repeat":false,"preRender":false,"distance":1,"tilesize":48,"foreground":false,"data":[[1,1,1,1,1,1,1,1,1,1,1,1,1],[0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0],[1,1,1,1,1,1,1,1,1,1,1,1,1]]}]}/*]JSON*/;
LevelLevel1Resources=[new ig.Image('media/bg.png'), new ig.Image('media/tileset.png')]; LevelLevel1Resources=[new ig.Image('media/bg.png'), new ig.Image('media/playfield.png'), new ig.Image('media/tileset.png')];
}); });

BIN
dev/media/playfield.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB