how to use wirteLine in monogame
Im trying to gifure out how i can display a score directly on the screen using writeLine but it dosent seem to work
6 Replies
$details
When you ask a question, make sure you include as much detail as possible. Such as code, the issue you are facing, what you expect the result to be, what .NET version you are using and what platform/environment (if any) are relevant to your question. Upload code here https://paste.mod.gg/, save, and copy the link into chat for others to see your shared code! (see $code for more information on how to paste your code)
my bad ahaha, im coding a space invaders game for a school project. i have a score system thats displaying in the title list as for now. however i wanna chagne that and make it display onto the screen directly. i cant use writeline for that. i searched on the internet and im supposed to use a spritefont but dont know what that is or how its used
SpriteBatch.DrawString
Class SpriteBatch | MonoGame
Helper class for drawing text strings and sprites in one or more optimized batches.
A spritefont just contains information about the font like Name, Size, Spacing etc. You can make one iirc using the content.mcgb