Task 52: Ace Agent
-
For the crowd:
-
Have a certain JavaScript base
-
Difficulty:
-
Difficult
Important Notes
Baidu Front-end Technical College's curriculum task is the front-end engineers of Baidu for the front-end different mastery of the level of students design. We try to ensure the quality of the course content and the rationality of learning difficulty, but even so, it is your every thought and practice to really decide the effect of the course.
The solution for most topics in the course is not unique, and it is consistent with what we do in the actual work. Therefore, our request is not only to achieve the effect of the design draft, but also to think more about different solutions, evaluate the pros and cons of different scenarios, and then use the most elegant way in this scenario to achieve. The solutions that are ultimately not adopted by us can also help us to learn a lot of knowledge. Therefore, the resources we have listed are not necessarily necessary to meet the needs. Sometimes, the requirements of the implementation of the topic is very simple, even in reference, but behind the thinking and practice is the most important part of the task. When studying these materials, we should think more, ask questions and question more. Believe that through the exchanges with the small partners, you can make your study more effective.
Task description
- Based on the third stage "ACE Agent" mission, let your agents dive into a huge underground maze to perform the task! (Roguelike Game)
First, we need to build a maze:
Then, the third stage of "Ace Agent" core play into the maze inside:
- Agents in the maze to seek clearance targets, arrived after the next maze
- Agents and guards can kill each other: When developing, you can choose to defend the AI mode, based on task 47 or task 49 can be
- There are randomly generated walls in the room, but there is no way to block the corridors leading to other rooms.
- The game camera follows the spy movement, the screen visible range is a part of the maze
- Set up a small map on the interface to make it easy for the player to know the location of the agent and the nearby Guard Movement (optional)
- Fog of war effect (Fog of War): Unexplored areas are not visible, the area outside the spy's visible range is invisible, the room without opening the door is invisible (optional)
Finally, play with imagination and extend more interesting elements for the game!
The following is a game of similar gameplay, for reference:
Task considerations
- Please note that the code style is neat and elegant
- The code contains the necessary comments
- Good adaptability and smoothness on PC and mobile
- Ensure that the game level is available through
- High efficiency of maze generation
- Third-party frameworks, class libraries can be used rationally
Task Collaboration recommendations
- Brainstorm within the team to discuss and design new elements of the game
- If you are working on your own, you can do this in the following ways:
- Team focused discussion, clear the topic requirements, ensure that the team each to the subject of cognitive consensus
- Practice of accomplishing tasks individually
- Cross-review other people's code, suggesting that everyone see at least one team member's code
- Discuss each other and finally synthesize a copy of the best code within the group to submit
- If it is a division of work, you can assign tasks according to the following modules
- Maze generation
- Core Play porting
- In-room element arrangement
- Extra elements such as small maps, war fog, etc.
- Graphic style
Resources
- Room and Maze: A dungeon Generation algorithm Chinese and English
- Dungeon-building algorithm Chinese and English
- Game Item: Random Dungeon Generation
- Game Item: Tiny Stealth
Task 52: Ace Agent