H5 cross-platform game development 1
Classify:Web page productionViews:2991184Download:192

With the rapid development of Chrome and Safari, and the decline of IE Flash, HTML5 has come to an end and entered the next era - mobile Internet. The cross-platform advantages of HTML5 are further highlighted in the mobile Internet era. HTML5 is the only one that takes all PC, Mac, iPhoneiPadAndroidWindows Phone Cross-platform language for mainstream platforms such as ##. Java and Flash both dreamed of this position, but their dreams ended with iOS . At this time, people began to study the development of cross-platform mobile applications based on HTML5. Many people believed at the time that native applications were just a transition, just like the transition from the C/S structure to the B/S structure. And learning Objective-C and Java is very difficult. Since I know web development, why not try HTML5 .

W3C At this time, the Device API working group was established to extend for HTML5 Camera, GPS and other #API that are unique to mobile phones. However, the trouble is that the early iterations of the mobile Internet were too Soon, the mobile phoneOS is constantly expanding the hardwareAPI, gyroscope, distance sensor, barometer. Every year there are major version updates for mobile phones. As an organization where hundreds of member units make joint decisions, W3C has a very complicated process from proposing a standard draft to reaching a consensus, which cannot keep up with the rapid iteration in the early stages of the mobile Internet.

The emergence of PhoneGap has opened a window for developers. Many people expect PhoneGap to continue to expandAPI to supplement the shortcomings of the browser. Adobe Seeing PhoneGap seems to have seen the hope of revitalizing the status quo, but in Adobe After acquiring PhoneGap, I found that this thing is not commercially viable enough, and open source makes Adobe unable to be like Flash obtained commercial interests in this way, so he donated PhoneGap to Apache and changed its name to Cordova.

Due to various reasons, the positioning of Cordova ultimately did not become a browser enhancement, but moved towards hybrid development. Based on the background at the time, they believed that native was irreplaceable, and the hybrid mode of "native HTML5" made more sense. So now the usage model of Cordova is that "native engineers HTML5 engineers" work together to complete App .

At this timeFacebook joined W3C and took the lead in establishing the Mobile Web working group . Facebook is in the Web circle, and does not have itself on the mobile phoneOS territory, he doesn’t like the native app ecosystem controlled by Apple and Google. Mobile WebThe important goal of this working group is to make web applications developed by HTML5 achieve the experience of native applications. However, things backfired. It didn't matter if it didn't work hard. The result was that it failed despite trying hard. 2012, the news that Facebook gave up on HTML5 flooded the world ITMedia, HTML5 were instantly thrown into limbo.

FacebookWhy gave up HTML5?The core is that based on HTML5, we really couldn’t make good mobileApp. Compare Twritter and other competitors’ native App, Facebook’s HTML5 version really cannot satisfy users. For example, regarding the Push function, there is still a huge gap between the HTML5 push experience and the native push experience, let alone HTML5 There are many problems such as white screen when switching the application page, pull-down refresh/ The side sliding menu is not smooth, etc. Watching native engineers easily implement functions such as shake, QR code, voice input, and sharing to Moments made HTML5 engineers feel like they were on the wrong team.

Even if Facebook doesn’t like to be controlled, we can’t risk being abandoned by users. And Facebook has not mastered the key point - the mobile browser core. If browsers don't keep up, a bunch of draft standards will be in vain.

What is the performance of the browser on the mobile phone??Look firstGoogle,Chrome Although the performance is high, the browser on Android is not Chrome, but WebKit A crappy modificationAndroidbrowser;Look at Apple again, Other browser engines are not allowed to be listed on the App Store on iOS, and other applications using the Safari engine are not allowed Unable to call Apple's own JavaScriptacceleration engineNitro. The result is that Apple and Google not only do not actively implement HTML5 on mobileAppThe required specifications instead impose various restrictions on HTML5.

Whether it was the lack of hardware capabilities at the time or the deliberate restrictions of mobile phone OS manufacturers, the result is: in the early days of the mobile Internet, the world must be dominated by the native application ecosystem, iOSandAndroidFirst of all, after their territory is stabilized, the industry will upgrade to the next stage.

No matter Facebook or PhoneGap, you won’t be able to get a share of the mobile Internet in the early days, but if you persist, opportunities will often appear. And this yearHTML5 games are on the forefront. How to seize the dividends of H5 games in the spotlight? It depends on your own operating conditions. Nobita Game, H5 game interface.

Statement:

All resources on this website are contributed and published by netizens, or reprinted by major download sites. Please check the integrity of the software yourself! All resources on this website are for learning and reference only. Please do not use them for commercial purposes, otherwise you will be responsible for all consequences incurred! If there is any infringement, please contact us to delete and remove it. Contact information: admin@php.cn

Latest courses

See more
  • [Web front-end] Node.js quick start
    [Web front-end] Node.js quick start
    This course is specially designed for beginners and aims to help students quickly master the basic knowledge and core technologies of Node.js. The course starts with the installation and environment configuration of Node.js, and gradually analyzes its asynchronous programming model, module system and event-driven mechanism in depth. Through a wealth of practical cases, students will learn how to use Node.js to build an efficient and stable web server, process HTTP requests and responses, and perform file operations and database interactions. In addition, the course will also introduce typical application scenarios of Node.js in front-end development, helping students quickly improve their practical capabilities and easily cope with the challenges of front-end development.
  • Complete collection of foreign web development full-stack courses
    Complete collection of foreign web development full-stack courses
    This course is a comprehensive tutorial covering HTML, CSS, JavaScript, Vue.js, React, Flutter and mobile APP development. From basic web page production to complex front-end and back-end interactions, to practical development of mobile applications, the courses are rich in content and highly practical. Through a series of practical projects, students will gain an in-depth understanding of and master various development skills and quickly grow into full-stack development engineers. Both beginners and experienced developers can benefit from it. Through the study of this course, you will have the ability to independently develop web applications and mobile applications, laying a solid foundation for future career development.
  • Go language practical GraphQL
    Go language practical GraphQL
    This course is designed to help learners master how to use Go language to implement GraphQL services. The course starts with the basic knowledge of GraphQL, and deeply analyzes the characteristics and advantages of its data query language. Then, combined with the characteristics of the Go language, it explains in detail how to build a GraphQL server, process requests, define data patterns, etc. Through rich practical cases, learners will learn how to integrate GraphQL in actual projects to improve the flexibility and efficiency of data interaction. The course is suitable for developers with a certain foundation in Go language and is a must-have for building efficient and modern APIs.
  • 550W fan master learns JavaScript from scratch step by step
    550W fan master learns JavaScript from scratch step by step
    This course is specially designed for beginners and is taught by Google bosses. The course starts from the basic knowledge of JavaScript and gradually deepens, covering syntax, functions, objects, event processing, etc. Through vivid cases and practical exercises, students can quickly master the core skills of JavaScript. The boss will personally answer students' questions and share programming experience, allowing students to grow into JavaScript masters in a relaxed and pleasant atmosphere. Whether you are a novice at programming or a developer looking to improve your skills, this course will be your best choice for learning JavaScript.
  • Python master Mosh, a beginner with zero basic knowledge can get started in 6 hours
    Python master Mosh, a beginner with zero basic knowledge can get started in 6 hours
    This course takes you on a programming journey. Starting from scratch, this 6-hour course will guide you through the fundamentals and advanced concepts of Python. Whether you're a beginner or an experienced programmer looking to improve your skills, Mosh's in-depth explanations and clear teaching methods will get you up to speed with Python quickly. Learn more about variables, data types, conditionals, loops, functions, objects, and modules and solidify your understanding with hands-on exercises. This course is ideal for learning Python and preparing you for a variety of career fields. Mosh's expertise and passion for education will give you the confidence to start on your path to becoming a proficient Python developer.