lpbr Posted May 26, 2014 Share Posted May 26, 2014 Hi, fellows! This is my first post here so pleas be gentle with me! Maybe it will be a silly question but I have googled after a solution and couldn't find. I am struggling with the need of update text,As you know it is a very usual thing in scoreboard and message games but I am not managing how to do that. I am applying the text in the usual way: c = document.getElementById("MyGame"), context = c.getContext("2d"); context.font = "Bold 12px Verdana"; context.textAlign = "center"; context.fillText("some text", 100, 100);But I am sure that this is not the correct way to do that. I tried to nest divs into the main one and also looked for a way to use components (such as labels), but had no luck. Any tip? Thanks! Quote Link to comment Share on other sites More sharing options...
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.