HTML5 Game Development
   
  • HOME
  • News
  • Tutorials
  • Engines
  • Demos
  • Tools
  • Partners
  • Mobile HTML Game
  • Guess The Celebrity
  • About us

Scaling HTML5 Games for Browsers

HTML5 browser games are well-known to scale easily with different browser dimensions. But how do we scale game art for browser dimensions?

Game art scaling can be done using 4 methods:

  1. Fixed game size – game size stays fixed even when the browser size keeps changing
  2. Game size based on device pixel ratio – the canvas’s width and height is set to a multiple of the game’s width and height
  3. Set game scaling – set the game canvas width and height to the size of the browser, not on the fixed game size
  4. Set game scaling – The game is zoomed in based on the browser and the game size, there will be unseen parts

To see these methods in action, read the rest of the article here.

 

Share List

You might also find this interesting:


  1. HTML5 Game Development Facebook, Twitter and G+ The official HTML5GameDevelopment.org Facebook page up at: http://www.facebook.com/Html5GameDevelopment The official HTML5GameDevelopment.org Twitter account is at: https://twitter.com/#!/gamedevhtml5 The Google Plus page is up at: https://plus.google.com/b/106608051085232600929/ All are updated automatically via the...

  2. Facebook Instant Games Now Open to Developers The closed beta for the Facebook Instant Games has finally ended, allowing all developers to create HTML5 games for this platform. They can submit games that are made using Facebook’s...

  3. Benefits of HTML5 Playable Ads As digital marketing becomes the most popular avenue for selling a brand, more companies are looking for more engaging ways to capture their audience. One of which is the use...

  4. Flash vs HTML5 for Modern Browser Games There had always been a debate between Flash vs HTML5 on which is the better standard for browser games. Now that mobile games have taken over the gaming industry, HTML5...

  5. Atari Opens up Development Kit for HTML5 Atari Arcade Atari arcade, the Microsoft sponsored HTML5 re-imagining of Atari’s classic catalog, is opening up it’s development platform: Supported by Internet Explorer and Atari, the new Atari Arcade is a browser-based...

browser game technology, game size, resizing
Uncategorized

License HTML5 Games

Are you a company looking to license HTML5 games? We recommend MarketJS.com, a B2B platform for licensing games.

MarketJS has over 300 HTML5 games for licensing. They also provide additional services such as game reskin, custom development, and white label portals.

Html5 Game Development


Follow @GameDevHTML5



WHAT’S NEW

  • GPT3 Voting Board

  • Game Localization For Food Delivery App

  • HTML5 Games in Guest Room Tablets

  • What’s New in Phaser 3.50

  • Particle and Sprite Editors in Babylon.js 4.2



NEW DEMOS

  • Vertical Platformer Games Using GDevelop

  • HTML5 Games for HR Technology

  • Building Vertical Platformer Games using Kaboom

  • Vertical Endless Runner Prototype

  • Particle and Sprite Editors in Babylon.js 4.2


ENGINES

  • Modd.io – User-Friendly HTML5 Game Engine

    Here is another user-friendly HTML5 game engine for your next gaming project. Modd.io game editor uses a sandbox approach in building HTML5 games. No coding is required. Choose from several …Read more

  • Vertical Platformer Games Using GDevelop

    Last time, we introduced GDevelop as a viable option for no-code game engines. Now, let’s try building vertical platformer games using GDevelop. GDevelop comes with two behaviors to build platformer …Read more

  • Best Practices in Building HTML5 Games

    As the saying goes, “Quality is always the result of intelligent effort.” This timeless quote by John Ruskin summarizes most of the best practices in building HTML5 games by today’s …Read more

SEARCH OUR ARCHIVES

CONNECT

rss twitter

HTML5 Game Development is proudly run by 3P Solutions Inc

GOT NEWS?

Send new engines, demos, information and tips to hello@html5gamedevelopment.com

MONTHLY MEETUP

In boston? Join us for the Monthly HTML5 Game Development meetup.

BOOKS

We're in the process of writing a few books about game development. Coming soon!

Copyright HTML5gamedevelopment.com