Jump to content

Draw graphics similar to that of the arc function from canvas?


agmcleod
 Share

Recommended Posts

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?

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...