Adapting web games
Web games look and work great on Chrome OS. You can reach more users and provide a nicer integration by packing your app as a PWA. Read up on PWAs with the following links:
Touchscreens
Many Chrome OS devices have touch screens. While most touch-based input should work with no additional work for web games, you should be careful you are not using input methods that are specific to mouse input, eg. if you are watching for events like mousedown
and touchmove
.
Some further information and best practices can be found hereand here.
Stylus support
Many Chrome OS devices come with a stylus or can operate with an external bluetooth drawing tablet like the Wacom Intuos. Drawing apps and swipe-based games can reach large numbers of users on the web, and Chrome OS is the perfect platform to play them on. In addition to the experience you would get on other platforms, Chrome OS can take advantage of a special low-latency hint that can provide super fast screen response. Check out this articlefor more information.
Game controllers
Some users will want to interact with your game using a game controller. This can make your game really stand out and increase user engagement. For more information check out the Gamepad API.
Buttons are mapped to common values following a common mapping. Unfortunately, not all game controller manufacturers follow the same mapping conventions. Allowing your users to select from different popular controller mappings will ensure the best experience.
Game engines
Many game engines have web targets that simplify tricky inputs and complicated browser support issues, which can help you focus on building a great game for your users.
Some engines you may wish to check out are Construct, Defold, Phaser, Pixi, Unity, and Cocos2d-x.
Recommended
Games on Chrome OS
Create games for Chrome OS
Desktop Progressive Web Apps
How to take your current web site and enhance it to make it installable, work great with touch and stylus, and make it even more capable.
Web development
How to set up your Chrome OS device for developing web apps and how to configure port forwarding to access them on other devices.