HTML5 Game Development
   
  • HOME
  • News
  • Tutorials
  • Engines
  • Demos
  • Tools
  • Partners
  • Mobile HTML Game
  • Wind And Solar
  • 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

  • Unity’s Pricing Scheme Changes

  • Unity Game Engine Pricing Fee

  • Open-source 3D Game Engine with Sketchfab Integration

  • MODD.IO Updates – Improved No Coding Required Game Engine

  • GPT3 Voting Board



NEW DEMOS

  • Creating a Mobile HTML5 RPG – Guidelines for Beginners

  • How to Use HTML5 Games To Engage Social Media Followers

  • Running HTML5 Games for Online Competitions

  • Vertical Platformer Games Using GDevelop

  • HTML5 Games for HR Technology


ENGINES

  • Unity’s Pricing Scheme Changes

    In an open letter to the Unity community, the company announced the details of Unity’s pricing scheme changes. In the letter, the Personal plan will remain free and there will …Read more

  • Unity Game Engine Pricing Fee

    Early in September 2023, Unity Technologies announced the Unity game engine pricing fee. Starting on 1 January 2024, the company will charge game developers a fee (2 tiers) for each …Read more

  • Open-source 3D Game Engine with Sketchfab Integration

    PlayCanvas, an open-source 3D game engine, has added Sketchfab integration into its latest updates. This improvement gives game developers access to Sketchfab’s high-quality 3D, AR, and VR content. To access …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