0

What to do with HTML Canvas (in the long run)?

So I've been making games/ drawing pictures with HTML canvas for a while now, all of them here in Sololearn. But when exactly is canvas used to make games in real life? If I want other people to play these, do I make a webview app, or publish it as a website (i.e. like Farmville). Or is canvas only used for practice, and I need to rewrite the whole thing in Java?

6th Dec 2020, 3:42 AM
Nor'wester 🌪️ 🇧🇩 (INACTIVE)
Nor'wester 🌪️ 🇧🇩 (INACTIVE) - avatar
5 Respostas
+ 6
Hii No you don't need to worry about that! I believe there isn't any need to re-write the whole code again in java or any other programming languages.. There are many games which uses canvas to improve there graphics sometimes.. Like The second game from Fantasy Interactive is Canvas Defense. It's another addictive game in which you need to defend yourself from a swarm of enemies using nothing but the limited tools at your disposal. The game uses HTML5 canvas for the graphics... It's used in many other places too but actually those are some small games.. like snake one.. And yes if you want then why not! You can publish it in a webview format! Hope helps
6th Dec 2020, 11:54 AM
Piyush
Piyush - avatar
+ 3
As I know even pubg was developed in cpp, I too never knew that cpp is such a powerful language.
8th Dec 2020, 1:27 PM
Shkodran Hasani
Shkodran Hasani - avatar
+ 2
Thanks Piyush[21 Dec❤️] for the examples. Mirielle[ INACTIVE ] thanks for your opinion, but I'm not sure why you chose C++ over C#
8th Dec 2020, 11:16 AM
Nor'wester 🌪️ 🇧🇩 (INACTIVE)
Nor'wester 🌪️ 🇧🇩 (INACTIVE) - avatar