I am new to HTML 5 and Impact. I am going to start programming in HTML 5, Javascript. I have heard that Impact is one of the best 2D engines for Javascript so I thought about purchasing it and giving it a try. But before I do I want to make certain that Impact and Javascript will detect the device that I am on and adjust for that.
I would like the page to determine any type of device, such as Nexus 7, iPhone, iPad, tablets, or any media device. What about screen size because that is something that all of these devices have that are not common. iPhones have more pixels than one of your smaller cheaper Android devices.
The cost of Impact is around 99.99 so I want to make certain that it will do this and if it requires HTML 5 code to check for mobile devices or if it will just automatically adjust the screen size automatically.
My question is how does Impact (Javascript or HTML 5) know if the device is a portable, mobile or tablet device?
Does the code just adjust automatically and if it does how does it adjust the graphics and other buttons so that they still are large enough to be used?
By looking at the user agent string, the IP address, timing in some cases, the network and one of many databases that have collected a lot of data on devices over the years, it's possible to do a very good job of narrowing down to what device is being used, particularly if it's a popular device which is most likely. WURFL is one.