• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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