dali Posted November 2, 2018 Share Posted November 2, 2018 Hi, Since I started quite recently with Phaser 3, I'm not too familiar with "how all the concepts worked in V2". In an attempt to port a raycasting example from V2 to V3 I got stuck on the part where `bitmapData` is used. Apperantly it no longer exists in V3 and from what I read on this forum "one should create their own". Whilst this is mentioned a couple of times, no concrete examples are given. So my question is, how would I procede? This is the original raycasting example I try to port. ... this.bitmap = this.game.add.bitmapData(this.game.width, this.game.height); this.bitmap.context.fillStyle = 'rgb(255, 255, 255)'; this.bitmap.context.strokeStyle = 'rgb(255, 255, 255)'; ... Of course, if there is a better approach or an alternative way of approaching the raycasting I'd love to hear it! Link to comment Share on other sites More sharing options...
samme Posted November 4, 2018 Share Posted November 4, 2018 https://codepen.io/samme/pen/PBMaLJ (Graphics) There's also CanvasTexture. Link to comment Share on other sites More sharing options...
Recommended Posts