tester Posted February 27, 2015 Share Posted February 27, 2015 Hi,I want to draw a verical line that is static. I assue that I need phaser.line ? http://docs.phaser.io/Phaser.Line.html So I have created a line object: line1 = new Phaser.Line(100,100,300,300);How do I however render it to screen ? thanks. Link to comment Share on other sites More sharing options...
ZeroGravity Posted February 27, 2015 Share Posted February 27, 2015 Phaser examples is excellent site: http://examples.phaser.io/ Take a look at this example (it draws several lines):http://examples.phaser.io/_site/view_full.html?d=display&f=graphics+2.js&t=graphics%202or this one (it uses that Phaser.line method)http://examples.phaser.io/_site/view_full.html?d=geometry&f=line.js&t=line Link to comment Share on other sites More sharing options...
tester Posted March 3, 2015 Author Share Posted March 3, 2015 Thanks for the assistance ! Link to comment Share on other sites More sharing options...
Recommended Posts