Skip to content

Library for manage mobile games in Kha (native and mobile browsers)

Notifications You must be signed in to change notification settings

r8code/Mobile

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Features:

Screen resolution
If you use the same resolution in all devices, you can end with a game that don't use all the screen available in the device. That is because you game can have a resolution that has a different aspect ratio of the screen device. The lib calculates a new resolution based on your default resolution that have the right aspect ratio.

Orientation changes
Native games locks the screen orientation, but mobile browsers don't (for html5 games). The lib checks for orientation changes and provide a callback where you can adapt your game. Generally sponsors asks to show a message asking the player to rotate the device to right orientation, so there is a example that shows how to do that.

HTML buttons
Create and remove links that act as buttons that stay in top of the canvas, and respect the scaling of the game.

TODO:

  • HTML5 Fullscreen API

About

Library for manage mobile games in Kha (native and mobile browsers)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Haxe 91.2%
  • HTML 7.0%
  • JavaScript 1.8%