Search the Community

Showing results for tags 'migration'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
  • Frameworks
    • Phaser 3
    • Phaser 2
    • Pixi.js
    • Babylon.js
    • Panda 2
    • melonJS
  • General
    • General Talk
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 4 results

  1. Flash would be officially dead after December 2020.. So if you are interested in converting your courses in HTML contact us! Take a look at some of our works! https://hexalearn.com/
  2. I've seen a gantt chart with a planned "phaser 2 to 3 migration guide" but now it seems to be deleted. I have a lot of 2.x code and I would love to migrate to 3.x in an ordered way. So, will there be any migration guide or should I just start seeing the examples and tutorials and figure out the best way to do it? It's nice to have such amazing library!
  3. Hi everyone! I am diving into the brand new Phaser 3 and everything is awesome so far. In previous games I developed using Phaser 2, I heavily relied on the USER_SCALE at the ScaleManager in order to make responsive games. I know that the new ScaleManager is still in the works, but how can I achieve the similar results now by hand? Thanks in advance, Vinicius
  4. Hi, I'm having a bit of trouble with my conversion of a piece of code. I have a layering object than "clips" a region of the screen before it draws it's children. On v2 it was quite easy to do: WindowLayer.prototype._webglMaskRect = function(renderSession, x, y, w, h) { if (w > 0 && h > 0) { var gl = renderSession.gl; var projection = renderSession.projection; console.log(renderSession); var offset = renderSession.offset; var shader = renderSession.shaderManager.primitiveShader; renderSession.shaderManager.setShader(shader); gl.uniformMatrix3fv(shader.translationMatrix, false, this._translationMatrix); gl.uniform1f(shader.flipY, 1); gl.uniform2f(shader.projectionVector, projection.x, -projection.y); gl.uniform2f(shader.offsetVector, -offset.x, -offset.y); gl.stencilFunc(gl.EQUAL, 0, 0xFF); gl.stencilOp(gl.KEEP, gl.KEEP, gl.INCR); var data = new Float32Array([x, y, x+w, y, x, y+h, x, y+h, x+w, y, x+w, y+h]); gl.bindBuffer(gl.ARRAY_BUFFER, this._vertexBuffer); gl.bufferData(gl.ARRAY_BUFFER, data, gl.STATIC_DRAW); gl.enableVertexAttribArray(shader.aVertexPosition); gl.vertexAttribPointer(shader.aVertexPosition, 2, gl.FLOAT, false, 0, 0); gl.drawArrays(gl.TRIANGLES, 0, 6); gl.stencilOp(gl.KEEP, gl.KEEP, gl.KEEP); }};Right now I could move the projection matrix to this: WindowLayer.prototype._webglMaskRect = function(renderSession, x, y, w, h) { if (w > 0 && h > 0) { var gl = renderSession.gl; var projection = renderSession.currentRenderTarget.projectionMatrix; console.log(renderSession); // but here is the problem var offset = new Point(0, 0); var shader = renderSession.shaderManager.primitiveShader; renderSession.shaderManager.setShader(shader); gl.uniformMatrix3fv(shader.translationMatrix, false, this._translationMatrix); gl.uniform1f(shader.flipY, 1); gl.uniform2f(shader.projectionVector, projection.x, -projection.y); gl.uniform2f(shader.offsetVector, -offset.x, -offset.y); gl.stencilFunc(gl.EQUAL, 0, 0xFF); gl.stencilOp(gl.KEEP, gl.KEEP, gl.INCR); var data = new Float32Array([x, y, x+w, y, x, y+h, x, y+h, x+w, y, x+w, y+h]); gl.bindBuffer(gl.ARRAY_BUFFER, this._vertexBuffer); gl.bufferData(gl.ARRAY_BUFFER, data, gl.STATIC_DRAW); gl.enableVertexAttribArray(shader.aVertexPosition); gl.vertexAttribPointer(shader.aVertexPosition, 2, gl.FLOAT, false, 0, 0); gl.drawArrays(gl.TRIANGLES, 0, 6); gl.stencilOp(gl.KEEP, gl.KEEP, gl.KEEP); }};But the offset (using 0,0 by now because I don't want to crash everything) is not correct if you move the origin of an sprite or tilling sprite... I don't find any translationPoint nor offsetPoint to do that. Does anyone knows how can I archieve the same effect? Thanks for reading my post