# IHG **Repository Path**: afuna/IHG ## Basic Information - **Project Name**: IHG - **Description**: icehockeygame - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-05-02 - **Last Updated**: 2023-03-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # IHG #### Introduction icehockeygame Ice hockey is the ice hockey knife and hockey stick as the tool on the ice for a mutual competition of the collective sports, is one of the main sports of the Winter Olympic Games. The Ice Hockey Game developed by our team, in order to popularize the knowledge of the rules of the Ice Hockey Game, so that players can understand and probably master the corresponding rules of the Game, in order to carry forward the Olympic spirit. The game background with international standard drawing hockey venues, with threshold judgment to simulate real ice hockey game, with red, blue and red blue ice hockey game against athletes, the double chromosphere simulation after entering the game, players control the default party is blue, red for AI control, according to the movement of the ball corresponding AI player made accordingly. The difficulty of the game is divided into practice mode, easy mode and hard mode. In the practice mode, there are red and blue goalkeepers and the center players under my control. Players can quickly get started and become familiar with the game through the practice mode. Simple modes have red and blue goalies, left and right point guards, and center. In this mode, players can play the game without AI interference. With the addition of left and right wingers in the hard mode, the whole game is more reasonable and can simulate the real game scene more. It is not easy for players to score easily, and they need to have corresponding breakthrough skills to pass the test of our levels. Players control the ball in the left, right, up and down, diagonally control the ball in eight ways, so you can serve in different directions. Players can control the movement of players through "WASD" or keyboard directional keys, and can shoot by clicking the mouse. The game has added many key sound effects, such as scoring decisions, button clicks, etc., to enhance the player's auditory experience during the game. To prevent players from getting tired, we added a pause button and a continue button, as well as hiding all entities during pauses to prevent analyzing tactics during pauses. One of the features of the game is that we have an "unwritten rule" for ice hockey -- fights are allowed, so you can see the AI colliding constantly throughout the game. Since the puck moves near smooth ice, we use the conservation of momentum when setting up wall collisions. In order to prevent the situation from becoming too chaotic and affecting the player experience, we limited the movement of players like the point guard so that the whole game could be played. The tools our team used for development were Gitee (code sharing) and PyCharm (system development). The game was developed based on the PyGame framework, and PyGame was chosen because it had a lot of built-in game actions that were easy to develop, as well as more user-friendly ways to handle it.