Games (2)
- The composition of the game
This chapter introduces the composition of the game. It is only a selection scheme for a game that is considered to be composed of commands, classes, and systems. Of course, there can be other partitioning programs, this type of division is used in this paper.
command
The command is a way to change the game world to the player, which corresponds to some changes in the game world. A command consists of the processing of the parameters and commands they need. The processing method of command is also a program (not necessarily a computer program, it should be understood as the work to be done), indicate the implementation of the game - computer or people (if you use chessboard and chess) - should do This work can only be changed the game world, that is, change the value of the game elements. In the chess game, there is only one command - moving the chess pieces. The parameters required for this command are the moving chess pieces and mobile destination location. It has the way to determine the legality of this command (ie the mobile route to the chess rules "according to the chess rules (ie, the mobile route is feasible to be played - such as: the horse, whether the mobile destination is occupied by your own chess pieces Wait-and this round of this party is walking), if not legal, end the command. Such as legitimate, change the position of the handed chess pieces as the purpose of moving, if the purpose location has its own chess pieces, making it disappeared. Finally let the other party play. According to the above statement, the game elements of the chase chess have at least the following game elements: the position of a piece of chess. Whether a piece of chess is survive. Type of a piece of chess pieces. Which way to come. Only one command said above, but the regular game, there is a note, which is to write down this step and the time between the previous step. So this kind of chess has more than two game elements - time and time used in each step. It should be noted that the time here is not the rules of the game of chess, but due to the additional game elements of the chess players to realize the rules of chess in our four-dimensional space. If you agree, there is no time limit, that is, even two, three years can you take a step, then this videos don't have time this game element. So, to find the game elements of the game, just find all the commands of the game, then analyze the processing of each command, the thing that changes in the way is the game element. In general, the command is what the player is allowed to do.
class
Class is also the meaning of type, the same meaning of objects in objects, with multiple properties and multiple rules. One combination of each attribute of the value, called an instance of the class, also called an object. Such as: table classes, tablets and color two properties, then a certain instance of this class may be four feet, red, then we can say that this instance shows a red table for four feet. People's memory is very poor, can't remember thousands of things, such as a picture. But people often need to see something, can search for rough data, so people think of the species. When people have seen the shape of the shape, this is what people see when people see something, and he will no longer think about this thing, but what is thinking. Because the number of species is much less than the number of things, people can quickly find what the object is thinking, so that it will quickly get a general information of this object. It should be noted that there is no type when the species is divided, or there is no kind, or one type can be considered an object. In chess game, as mentioned earlier, there is a game element: 1. The position of a piece of chess. 2. Whether a piece of chess is survive. 3. Type of a piece of chess. 4. Which party will come. The 1, 2, 3 game elements are logically representing the status of the same thing (chess pieces), so we should define a class - chess pieces. Its attribute has three: position, whether there is survival and species. In this way, we can say that this chess game has only 33 game elements (32 chess pieces), and it has 97 game elements, it is more simple. Note that the existence of classes is not necessary, it is just to make people better understand the rules of the game, but it is only necessary to make a problem with the feature elements. So different people can set different classes, so that there is not much significance, fortunately, most people often have most of the same definitions, such as chess, almost everyone is aware of the chess pieces. class. For complex points, such as RPG games, some people only fix medicines and blood medicines, and some people can add blood, magical value, fire properties, etc. For a class, it is not a subdivision. Usually the latter is a programmer and the former is a player. It should also be found that the game rules do not define any classes, but the game rules are mostly humanized, so they use a lot of classes when the rules are described. Almost any chess game has a piece of chess. Some rules are specifically for a certain class, and we call these rules as the rules of this class. If the horse in chess, like a flying field, it involves this attribute in the chess pieces. Here is a problem: which class is it. Because some rules may involve multiple classes of properties, such as RPG games, after the player attacks to the enemy, the enemy's life value subtracts the value of the player's attack power. Here, the attributes of the player's attack power and the property of the health of the enemy. Here we believe that: which class is the rule of which class is the rules of the subject. So the above rules should be the rules of the enemy. system
With the improvement of people's quality of life, the demand for spirit is started. The appearance of the game console, the realization of the game is much more, and the game is developed. However, due to technical restrictions, the game has developed in the depth direction for a while, starting, starting horizontal development, and the system has emerged in the game. In order to make the game more resistant, it is necessary to increase the complexity of the rules, which is the definition of a large number of commands and classes. However, due to most games in designing, in order to execute on the game console, the function is limited to the game, that is, the depth of development is limited, so when designing the game, design two games, then provide some rules to make these two There is associated between games and can be switched. This is like our horses playing cards, lost drilling tables. Playing cards is a game, and the drill is a game. The relationship between the game is player playing a drill table game in playing games, which increases the complexity of the game in horizontal. Through the above analysis, it is known that the system is a game, with its own command and class, but also maintains more or less contacts with other systems in the game or the game. As can be seen from the definition, the system can have a subsystem, the subsystem, and a subsystem, forming the structure of the tree. The system as a tree root we call the entrance system. The rules that have started running in a game are always the rules of the entrance system. The inlet system of the above-mentioned card-lost drill is a play card, and the drill table is a subsystem of the card. In the usual computer or TV game, it is an interface that selects start, reading, option, etc. at the beginning, which is actually a system, and is the entrance system of this game. The command that the player can do is to choose a command (starting game, reading, exit, etc.) and execute. There is also an option dialog, which is also a system. So almost all video games are multi-system games. When designing a game design, it is recommended that the parent system cannot use the class and commands defined by the subsystem, and the subsystem can use the parent system defined classes and commands. It is not to say that it must be pressed according to this rule, but according to this rule, it is very organized. summary
The front we define commands, classes, and systems, are to let us better grasp a rule of the game. Some rules in a game rules We think that you define a command, we can say that this game defines a command, thus removing the rules that describe this command to simplify the rules of the game. Similarly, classes and systems are the same, just to simplify the description of the rules of the game, make people more likely to understand. Looking at a tree into a tree, the root node of the tree represents the entrance system of the game, and the entrance system consists of its subsystem, each system contains its own command and class definition. However, it is noted that the development of the vertical direction of the game is not the increase in the number of layers of the tree, but the complexity of the rules within a node of the tree. Although the horizontal development and longitudinal development of the game can increase the playback of the game, but from the human psychological aspects of the horizontal development, the quality of the slightly playing scale is below the longitudinal development, which will be in the back. It is reflected in it.