Trang Web TảI Game

The modern website has quickly become a viable platkhung not only for creating stunning, high unique games, but also for distributing those games.

Bạn đang xem: Trang web tải game

You can truly think of the Web as a better target platkhung for your game. As we like khổng lồ say, "the Web is the platsize." Let"s take a look at the core of the Web platform:

Function Technology
Audio Web Audio API
Graphics WebGL (OpenGL ES 2.0)
Input cảm biến events, Gamepad API, device sensors, WebRTC, Full Screen API, Pointer Lochồng API
Language JavaScript (or C/C++ using Emscripten lớn compile to JavaScript)
Networking WebRTC and/or WebSockets
Storage IndexedDB or the "cloud"
Web HTML, CSS, SVG, Social API (and much more!)

As a game, whether you"re an individual or a large game studio, you want khổng lồ know why it makes sense to target the Web with your next game project. Let"s look at how the Web can help you.

The reach of the Web is enormous; it"s everywhere. Games built with HTML5 work on smartphones, tablets, PCs & Smart TVs.

Xem thêm: +8 Cân Sức Khỏe Camry Có Tốt Không, Cân Sức Khỏe Camry Có Tốt Không

Marketing và discoverability are improved. You"re not limited to promoting your app on someone else"s phầm mềm store. Instead, you can advertise và promote your game all over the Web as well as other truyền thông, taking advantage of the Web"s inherent linkability and shareability to reach new customers. You have sầu control where it matters: Payments. You don"t have sầu to hand over 30% of your revenues to someone else just because your game is in their ecosystem. Instead, charge what you want & use whatever payment processing service you like. Again with more control, you can update your game whenever you want. No waiting breathlessly for approval while someone hidden within another company decides whether or not your critical bug fix will ship today or tomorrow. Control your analytics! Instead of relying on someone else to lớn make all the decisions about what analytics you need, you can collect your own -- or choose the third party that you like the best -- to gather information about your sales & your game"s reach. You get lớn manage your customer relationship more closely, in your own way. No more having customer feedbachồng filtered through an tiện ích store"s limited mechanisms. Engage with your customers the way you want khổng lồ, without a middleman. Your players can play your game anywhere, anytime. Because the Web is ubiquitous, your customers can kiểm tra their game"s status on their phones, tablets, their trang chính laptops, their work desktops, or anything else.

For the tech folks, let"s dig inlớn the APIs the Web brings lớn the table that cater to lớn game baoninhsunrise.coms. Here"s a thorough danh mục to give you a taste of what the Web can bởi for you:

Full Screen API This simple API lets your game take over the entire screen, thereby immersing the player in action. Gamepad API If you want your users to be able to lớn use gamepads or other game controllers khổng lồ work your game, you"ll need this API. HTML và CSS Together, these two technologies let you build, style, và lay out your game"s user interface. Part of HTML is the element, which provides one way to vày 2 chiều graphics. HTML audio The element lets you easily play simple sound effects & music. If your needs are more involved, kiểm tra out the Web Audio API for real audio processing power! IndexedDB A powerful data storage API for maintaining user data on their own computer or device. A great way khổng lồ save game state và other information locally so it doesn"t have sầu lớn be downloaded every time it"s needed. Also useful khổng lồ help make your game playable even when the user isn"t connected to the Web (such as when they"re stuchồng on an airplane for hours on end). JavaScript JavaScript, the programming language used on the Web, is blazing fast in modern browsers and getting faster all the time. Use its power to write the code for your game, or look at using technologies like Emscripten or Asm.js khổng lồ easily port your existing games. Pointer Lock API The Pointer Loông xã API lets you lochồng the mouse or other pointing device within your game"s interface so that instead of absolute cursor positioning you receive sầu coordinate deltas that give sầu you more precise measurements of what the user is doing, & prevent the user from accidentally sending their input đầu vào somewhere else, thereby missing important action. SVG (Scalable Vector Graphics) Lets you build vector graphics that scale smoothly regardless of the kích cỡ or resolution of the user"s display. Typed Arrays JavaScript typed arrays give you access lớn raw binary data from within JavaScript; this lets you manipulate GL textures, game data, or anything else, even if it"s not in a native sầu JavaScript format. Web Audio API This API for controlling the playbachồng, synthesis, và manipulation of audio from JavaScript code lets you create awesome sound effects as well as play và manipulate music in real time. WebGL Lets you create high-performance, hardware-accelerated 3 chiều (và 2D) graphics from Web content. This is a Web-supported implementation of OpenGL ES 2.0. WebRTC The WebRTC (Real-Time Communications) API gives you the power to control audio and Clip data, including teleconferencing and transmitting other application data baông chồng & forth between two users. Want your players to be able khổng lồ talk lớn each other while blowing up monsters? This is the API for you. WebSockets The WebSocket API lets you connect your tiện ích or site to a server lớn transmit data bachồng and forth in real-time. Perfect for multiplayer gaming action, chat services, & so forth. Web Workers Workers give you the ability khổng lồ spawn background threads running their own JavaScript code, lớn take advantage of modern, multi-core processors. XMLHttpRequest & File API The combination of XMLHttpRequest & the File API lets you sover & receive sầu any kind of data you want (don"t let the "XML" throw you!) from a Web VPS. This is a great way to bởi vì anything from downloading new game levels và artwork to transmitting non-real-time game status information baông chồng và forth.

Last modified: May 15, 2021, by MDoanh Nghiệp contributors

Change your languageSelect your preferred language English (US)EspañolFrançais日本語한국어Português (doBrasil)Русский中文 (简体)正體中文 (繁體) Change language
Introduction APIs for game development Techniques 3D games on the Web Implementing game control mechanisms Tutorials Publishing games