hacktober-race icon indicating copy to clipboard operation
hacktober-race copied to clipboard

Put player's face in the game.

Open LukeGarrigan opened this issue 4 years ago • 3 comments

So I've stubbed out some code for this in the UI Player.js

drawGithubImage() { imageMode(CENTER); image(this.img, this.x, this.y, 30, 30); } We're going to auth via github, but at the moment I've just got random images in there:

image

I want these images to be circles and potentially fill the player circle leaving just the edging.

So all you need to do in this is do some funky stuff with p5js to not render some pixels to make it a circle!

LukeGarrigan avatar Oct 05 '19 08:10 LukeGarrigan

Hi, I would like to try to make the images round and fill the circle.

AValdez3 avatar Oct 05 '19 18:10 AValdez3

Looking at this at the moment and have it pulling from github. Do we have anywhere to get the username from or is that not possible yet?

caleballen avatar Oct 05 '19 19:10 caleballen

@caleballen we will do when we have the OAuth up and running, I've pretty much written the code, I just need to merge it in.

That's out of scope for this ticket though, this one is purely about making an image (any image, it doesn't matter) circle so it fits in!

LukeGarrigan avatar Oct 06 '19 19:10 LukeGarrigan