MOBILE APP DEVELOPMENT ON ANDROID PLATFORM
Keywords:
game development, mobile app, Android operating system, mobile app development algorithm, renderer, ray casting, cross-platform frameworkAbstract
Here was considered one of the largest segments of the product market - video games. The algorithm for creating a mobile game is investigated. The development for the selected platform using Android Studio, Cocos Studio, the work of the object manager, the processing of the player’s actions by the game are highlighted. During the development of a video game, its components were shown, namely writing code, creating content, developing game mechanics and testing.
An algorithm for generating objects and the result of a player’s collision with them is proposed. The process of developing a video game and its division into stages is disclosed. An optimization algorithm for saving and using images is described. The high-quality work with memory is investigated, first of all, on mobile devices. The concepts of scene and sprite are described in detail, the rules for working with scenes and images on the screen of a mobile device are established. We considered two similar in their approach, and, at the same time, fundamentally different algorithms for determining collisions of objects. The described software product includes a hand-written engine - a renderer. As a theoretical basis for the implementation of rendering, a simplified version of raytracing was taken - rakecasting. The method of rakasting was chosen as optimal for its high speed with sufficient video quality. A cross-platform framework was chosen, which is used to develop interactive applications and games. We consider the use of the built-in visual engine in the game engine, ready-made rendering modules, animation sprites and collision processing, which greatly simplifies the development process.
The structure of the software product and game classes of entities such as character, objects are described. An algorithm for the implementation of the rakasting method is presented and the corresponding mathematical calculations are carried out to construct a straight line. The design of the design of the game space on the main map, which is set, with the addition of textures, is simulated. Additionally, the ability to independently generate levels has been developed.