In my high school game design class we are making javascript games as HTML files and we are making brick break right now, and I am trying to make my text on the screen bigger and I cant figure out how to do it.
this is what I have now for writing text on the screen
canvasContext.fillText("SAMPLE TEXT GOES HERE ", 350, 100);
and the text is really small. I’d like for it to be bigger. how do i do that?
Something like this?
I expect more detail, but you can regenerate your text like this:
`
Add
canvasContext.font = "30px Verdana"
30px is the font size and
verdana
is the font family.