Gold Rush Farm Game app development analysis

Source: Internet
Author: User

Gold Rush Farm app development (su Nian. 188.1414.7927) Gold Rush farm system Development Gold Farm game development Gold Farm Model development Gold Farm Platform Development Gold Farm development source code, Android common cache strategy is also very interesting, caching strategy a common idea , it can be used in many scenarios, for example, in the actual development often need to use bitmap cache. With caching policies, we don't need to request pictures from the network every time or load images from a storage device, which greatly improves the loading efficiency of the image and the user experience of the product. At present, the most commonly used caching strategy is LRUCache and Disklrucache, where LRUCache is often used as memory cache, and Disklrucache as storage cache. LRU is the abbreviation of least recently used, the least recently used algorithm, the core idea of this algorithm: when the cache is nearly full, will eliminate the least recently used cache target, it is obvious that the LRU algorithm is very easy to accept the idea.

Bitmap in Android is a picture, which can be a PNG format or a JPG and other common image formats. The Bitmapfactory class provides four types of methods: DecodeFile, Decoderesource, Decodestream, and Decodebytearray, which are used to support file systems, resources, An Bitmap object is loaded in the input stream as well as in the byte array, where DecodeFile and Decoderesource indirectly invoke the Decodestream method, which is eventually implemented at the bottom of Android, the four-class method Corresponds to several native methods of the Bitmapfactory class.

The Gold Rush farm system is mainly a simulated business game with the background of farm land cultivation. In the game, players play a farm operator to complete the process from buying seeds to farming, watering, fertilizing, weeding, harvesting fruit, and selling to the market. In the game, the player can upgrade the house, land, etc. to get a more powerful and efficient farm. There are many other surprises waiting to be found in the game! (su nian. 188.1414.7927)

1. Land: Gold mining farm land is divided into 12 pieces, the new user default 1 blocks. Each piece of land 4 levels, respectively, the loess, red Land, black land, gold land, each liter of land can be randomly increased by two species of plants. When players upgrade to gold land, they can grow rare roses for advanced crops.

2. Planting: Each piece of land is seeded one group at a time, a group of 100. Not enough to sow. Planting the different crops according to the land series randomly, from sowing to harvesting a total of 4 stages, namely: Seed period-germination period-flowering-harvest period. Then when the crop enters the flowering stage, the farmland will appear arid, have worms the long grass situation, if the player does not deal with in time to produce the production cut situation, then how to remove these disasters,: kettle, insecticide, herbicide. Second: Three kinds of immune function idol, let the Idol guard own farm, during the Idol Guardian will not appear the corresponding disaster. However, to achieve the harvest results.

3. Trading: When the player has planted the fruit can exchange some materials for the House land upgrade, but also can trade in the Gold Orchard trading platform, each of the trading platform of the fruit will be based on the daily market price fluctuations, the fruit according to 100 per lot of trading. In addition, the trading platform also set up the fruit regeneration mechanism, the player can also be the surplus fruit or not satisfied with the fruit into a seed, and then the cultivation, may also grow a dream of roses, when the plant rose can be traded in the gold orchard can also be retained to enjoy the company dividends. The Orchard Purse is now limited to 100 gold coins.

Process:

Click to enter the Farm (su nian. 188.1414.7927)

At first, there was only one piece of land, and a piece of land was added to the level of each liter, and up to four is four blocks, first to see how to upgrade to two pieces of land;

Click on the land, the following screen will appear:

So how do you exchange wood? Click-My home-click to redeem Wood.

The wood has been exchanged for the use of wood and crystals to upgrade the land and the exchange of stones is a truth.

So how did the radish and the apple come?

Channel has two: ① a field has been produced, radish and apples better species; ② buy from the market.

So how to buy from the market? Click My Home-warehouse-Enter the orchard.

This is the process of upgrading the house and getting the land.

You see, buy fruit, need gold coins, exchange diamonds also need gold coins, in fact, gold is money, a gold coin equals one yuan. Diamonds are the virtual currency of a gold mining farm and can be used to buy seeds and so on. One gold coin equals 100 diamonds.

So how to recharge and redeem crystals? (su nian. 188.1414.7927)

After the recharge, you will get gold coins, gold coins can change diamonds.

How to upgrade the land?

Upgrading the land will produce high-grade fruit, high-grade fruit to sell expensive money, why the market needs high-grade fruit, because the upgrading of housing and upgrading of land, all require a large number of high-grade fruit.

Once the fruit has been planted, it can be traded in the market.

How to avoid excessive traffic consumption, that is the cache. When the program loads a picture from the network for the first time, it caches it on the storage device so that the next time you use the image, you don't have to get it from the network, which saves the user traffic. Many times in order to improve the user's user experience, often will also put the picture in memory of a copy, so when the application intends to request a picture from the network, the program first from the memory to obtain, if not in memory that is to get from the storage device, if there is no storage device, then download the image from the network. Because loading pictures from memory is faster than loading pictures from the storage device, this improves the efficiency of the program and saves unnecessary traffic overhead for the user.

A commonly used caching algorithm is LRU (Least recently used), LRU is the least recently used algorithm, its core idea is that when the cache is full, will first eliminate those least recently used cache objects. There are two types of caches that use the LRU algorithm: LRUCache and Disklrucache,lrucache are used to implement memory caches, while Disklrucache acts as a storage device cache, with the perfect combination of It is very convenient to realize a imageloader with high practical value.

Gold Rush Farm Game app development analysis

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.