• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Javascript or what?

Status
Not open for further replies.
Level 29
Joined
Jul 29, 2007
Messages
5,174
You can make games on a web page with 2D (<canvas>, SVG) or 3D (WebGL) graphics, 3D sounds, controller input, etc.

It will usually not perform as well as something that runs directly on the desktop, but this might not matter to you (this is usually the case!)

One of the nice things is that you can alleviate the DOM (HTML) to make GUI, which is a bit annoying to make manually with code.

The main drawback is that web technologies are advancing fast, which results in different browsers not necessarily supporting everything, browser-specific prefixes, etc. (plus v8 vs SpiderMonkey on the JavaScript side - or if this means nothing to you, why Chrome is so much faster than Firefox at executing JavaScript).
You can check caniuse to see what's supported by what browser, and webglstats for WebGL specific stats.
 
Status
Not open for further replies.
Top