Search the Community
Showing results for tags 'horizontal'.
-
Hi guys! This is my new plugin to horizontal and vertical scrolling http://jdnichollsc.github.io/Phaser-Kinetic-Scrolling-Plugin/ PD: nothing to do with Kinect, the old name haha Regards, Nicholls
- 2 replies
-
- horizontal
- vertical
-
(and 2 more)
Tagged with:
-
Cannon ship is a classic shooter game but with modern touches! This is not another typical classic horizontal scrolling shooter game! It's impresive, great pure arcade game! You can upgrade your ship, destroy a bosses and many different enemies! If you remember Arcade cabinet machine this game try remind these times! But this is not typical oldschool SHMUP game. It offers to you modern pixel art graphics, many particle effect, massive experience and many more. Try it: https://twohandslab.itch.io/cannonship Also available on: AppStore GooglePlay Screenshots:
-
Hello there. I am dealing for a long time with this issue. I am making an endless runner where platforms are made from small chunks (each 32x32 square). Character should fall down, not stop on the wall. This also happens when chunks don't have any velocity, until I add if( this.body.touching.right ) { this.body.velocity.x = 0; this.body.acceleration.x = 0; } to the player sprite. When I don't apply velocity to the chunks but instead say this.left -= 10 on chunk group in update the things are get more weird I guess that has to do something with chunks, am I doing this in wrong way? Each platform is a group, to which I add those chunks export default class Platform extends Phaser.Group { constructor(game, _) { super(game); const defaults = { startX: 0, startY: game.height - 64, width: game.width * .3, tileLevel: 1, tileFrame: 8, }; this.state = { extended: false }; _ = Object.assign({}, defaults, _); this.physicsBodyType = Phaser.Physics.ARCADE; this.enableBody = true; // Y axis for(let y = _.startY; y <= game.height + game.global.tileSize; y += game.global.tileSize) { // X axis _.tileLevel === 1 ? _.tileFrame = 8 : _.tileFrame = 1; for( let x = 0; x < _.width; x += game.global.tileSize ) { this.create(x + _.startX, y, 'tileset', _.tileFrame); } _.tileLevel++; } const BODY_OFFSET = 4; this.forEach((child) => { child.body.immovable = true; child.body.allowGravity = false; child.body.offset.y = BODY_OFFSET; child.body.friction.set(0); child.body.velocity.x = -10; }, this); } update() { // Spawn another platform if ((this.left <= this.game.width) && (!this.state.extended)) { this.state.extended = true; this.game.global.spawnPlatform.dispatch(this.right); } // Destroy when off bounds if(this.right < 0) { this.destroy(); } } } Best regards.
- 6 replies
-
- wall
- horizontal
-
(and 2 more)
Tagged with:
-
Hi guys, This is my example about horizontal scroll in canvas: http://codepen.io/jdnichollsc/pen/Xbqrzd?editors=001 What do you thing? Regards, Nicholls