Yes it is.
There is nice gameengine to play with, like https://www.babylonjs.com/
Typescript or even JavaScript now are nice to work with.
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
Yes it is.
There is nice gameengine to play with, like https://www.babylonjs.com/
Typescript or even JavaScript now are nice to work with.
(Developer here) HTML, CSS and JS are always good to know anyway. For a video game, it depends if you want something really "video-game like" (in which case I advise to use a game engine the can be run in a browser, like Godot) or just an interactive interface with buttons, images and text.
For the latter, I would advise to use one the numerous JS frameworks (Solid, Svelte, Vue or whatever) but if you don't know JS at all, learning it from scratch could be good. Plus, you can make really pretty animations with CSS!
I know Go is a possibility for browsers, but I'm pretty sure it's not the best to make a game.
TLDR;
It's always worth to learn something new.
JS is pretty easy to learn and there are SO many resources out there that will allow you pick it up easily so why not? Plus as someone who has been a web dev for decades now HTML, CSS, and JS are very valuable to learn. CSS especially as even many none web based stuff in the FOSS community utilize it for config customization. All of which is very easy to learn and then it opens you up for stuff outside of game dev like web development and webapp development.
Is it worth to learn javascript
Sure. Learn it and every other language you come across. Why wouldn't you?
turning this into a webapp is a fine choice and if it's intended to run locally without sharing state with other players you can do this completly in browser with javascript no problem.
https://eloquentjavascript.net/ is a good book for learning js, that is freely available online.
Typescript is actually a pretty nice language (under the circumstances), you'll almost certainly be able to derive some real value from having learned it (even if it in the end would turn out to not be the best choice for your game).
Yes, just do it.
Knowing another language is always good, and the best thing about JavaScript is that there is so much available source code to read out there. It'll be super easy to learn and you'll be shocked at how much you can do in pure JS. I once wrote a graphics editor that blew my item mind...
Js/ts is fine to learn for those kind of games.