agmcleod Posted December 26, 2013 Share Posted December 26, 2013 I have a game I built with melonJS. Instead of using images for the main player sprite, i used the canvas API directly. The reason for this is so I could scale the snowball easily, and not have to worry about making different image sizes so it looks good. Try it out here: http://projects.agmprojects.com/snowballeffect/. Collide into stuff to watch it grow. I started rebuilding this in Phaser, to get a solid feel of the engine. I started using pixi's graphics, but it only creates basic ellipses and shapes. The snow ball uses partial arcs to create the crescent moon shadow. Is this something that is doable? Would i maybe want to go as far as using a shader for the webgl renderer, and canvas api calls for the canvas renderer? Quote Link to comment Share on other sites More sharing options...
xerver Posted December 27, 2013 Share Posted December 27, 2013 Draw onto a canvas, then use that canvas as the texture for your sprite. Quote Link to comment Share on other sites More sharing options...
agmcleod Posted December 27, 2013 Author Share Posted December 27, 2013 I'll give that a try, thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.