jorgepynho

Members
  • Content Count

    2
  • Joined

  • Last visited

  1. Thanks Matt I meant "useless" just for fun... Of course it is not But in fact... I would use something like: line = new Phaser.Line(100, 100, 200, 200); const g = this.game.add.graphics(0, 0) g.beginFill(0xff0000) g.moveTo(line.x, line.y) etc ... However, it is intuitive to expect something like this in a HTML5 canvas framework (like others have) line = new Phaser.Line(100, 100, 200, 200); line.draw_or_whatever({properties}) Anyway... I am going to create my own methods for this.
  2. Hi there! OK, so I just figured out how to draw shapes with the graphics object. But, I wonder why this method exist ?!?! line = new Phaser.Line(100, 100, 200, 200); ... and then it gets positioned on update() But a line, never gets rendered Does this mean that, this method "Phaser.Line()" is useless ?!?!?!