# Magic_tower_defence **Repository Path**: giumie18/Magic_tower_defence ## Basic Information - **Project Name**: Magic_tower_defence - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-04-07 - **Last Updated**: 2024-04-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Magic_tower_defence ## How to run Down load this repo and run the run.py if you have python3 and pygame ## Screenshot ![alt text](Images/screenshot1.PNG) ![alt text](Images/screenshot2.PNG) ## Background setting: In the misty virgin forest, there is a Nottingcastle that has condensed hundreds of years of human wisdom. It is guarded by Robin and his friends. One day, the evil sprites found the treasure and wanted to take it for themselves. Will the heroic Robins succeed in protecting the castle? This is a tower defense game. The mission is to protect castle against sprites’ invasion. This castle has 10 health, which means 10 chances of being “break-in” by the sprites. When the health is 0, the mission fails. There are four types of sprites: scorpion (weak health), zombie (moderate health), knight (strong health) and boss (thick blood). The operation is very simple, just drag and drop from the menu bar on the right side to install guarder. There are two types of guarder: cloth warrior and armor warrior. They could defeat any sprites within a certain radius. In the course of the game, two support devices could be added around the guarder to enhance their attack range and attack strength respectively. ## Scene map: The start screen includes the name of the game and the button to enter the game. In the main interface of the game, when sprites appear, they just come from one side and would attack the castle from the specific road. The upper left-hand corner shows the game progress, health and stars. The bottom left corner is the pause and sound button. The menu bar on the right shows the guards and support towers. ## Role setting: The characters in the game are divided into evil sprites and guarders two camps. The player is in the guarder camp. They cannot switch sides. In this game, there are 12 waves totally. Players need to defeat all sprites in order to win. Every time all sprites is defeated in the screen, it would automatically pause and save progress. If the protect mission fails, the system will automatically jump to the main interface, there is a chance to play once. The main characters and features of the two camps are shown in figure 1 and figure 2. ![alt text](Images/enemies.PNG) (Figure 1: four types of sprites: scorpion, zombie, knight and boss) Scorpion: it has weak health. But may be caught off guard when a group of monsters appear. Kill +10 stars. Zombie: it moves moderately and has more blood. if the fire in the case of weak need to target it. Kill + 30 stars. Knight: it is a strong sprite. Kill + 50 stars. Boss: it is Absolutely strong. But it also extremely slow and has a lot of blood, which only at the end of the line in each wave. Kill + 500 stars. ![alt text](Images/Towers.PNG) (Figure 2: cloth warrior and armor warrior; energy fortress and training cave) At the beginning of the game, there are 3,000 stars that could be used to build guarders. Cloth warrior: it is the base guarder, which has low damage but larger range. It costs 500 stars to build. When a sprite passes within its attack radius, it deals damage. Armor warrior: It has lower level of range while high level of damage, which is costs more (750 stars). Energy fortress: The energy store itself has no attack capability. But if it is placed around the guarder in the certain radius, which allows the guarder to have a larger attack radius. 1000 stars are needed to build it. Training cave: It is also a kind of support tower, which could increase the attack ability of the guarders. It needs 1000 stars. # 塔防游戏说明 ## Background 设置: 在朦胧的原始森林中,有一座诺丁堡,凝聚了数百年的人类智慧。它由罗宾和他的朋友们守卫。有一天,邪恶的精灵们找到了宝藏,想把它据为己有。 英勇的罗宾会成功保护城堡吗? 这是一个塔防游戏。 任务是保护城堡免受精灵的入侵。 这座城堡有10点生命值,这意味着有10几率被精灵“闯入”。当生命值为 0 时,任务失败。精灵有四种类型:蝎子(生命值较弱)、僵尸(中等生命值)、骑士(生命值强)和老板(血脉浓)。 操作非常简单,只需从右侧的菜单栏拖放即可安装护罩。有两种类型的守卫:布战士和装甲战士r。他们可以击败一 定半径内的任何精灵。 在游戏过程中,可以在守卫周围增加两个辅助装置,分别增强其攻击范围和攻击强度。 ## 从文件夹的价格: “开始”屏幕包括游戏名称和进入游戏的按钮。 在游戏的主界面中,当精灵出现时,它们只是从一侧来,会从特定的道路攻击城堡。左上角显示游戏进度、生命值和星星。左下角是暂停和声音按钮。 右侧的菜单栏显示了守卫和支援塔。 ## 角色设置: 游戏中的角色分为邪恶的精灵和guarder的两个阵营。玩家在守卫阵营中。 他们不能换边站。 在游戏中,总共有12个波浪。玩家需要击败所有精灵才能获胜。 每当 all 精灵在屏幕中被击败时,它都会自动暂停并保存进度。如果保护任务fails,系统会自动跳转到主界面,有机会玩一次。图1和图2 显示了两个阵营的主要特征和特征。 ![alt text](/Images/enemies.PNG) (图1: 四 种类型的精灵:蝎子, 僵尸, 骑士 和老板) 蝎子:它 的生命力很弱。当一群怪物出现时,B ut可能会措手不及。杀死+10颗星星。 僵尸:它移动 适度 ,血液 较多 ,如果火力较弱,需要瞄准 它。 杀戮 + 30 星。 骑士: 这是一个强大的精灵。杀戮+ 50颗星星。 Boss:它绝对强大。 但它也非常慢,并且有很多血液,在每一波中都处于线的末端。杀死+ 500颗星星。 ![alt text](Images/Towers.PNG) (图2:布战士和盔甲战士; 能量 要塞 和训练 洞穴) 在游戏开始时,有3000颗星星 可以用来建造守卫。 布战士:是基础护卫兵, 伤害小,但射程大。 建造它需要花费500颗星星。 当精灵在其攻击半径内通过时,它会造成伤害。 Rmor战士:它具有较低的射程 水平,而高等级的伤害,这是花费更多(750星)。 E能量要塞:能量库本身没有攻击能力。But 如果它 被放置在一定半径内的守卫周围,这使得守卫器具有更大的攻击半径。建造它需要1000颗星星。 训练洞:也是一种支援塔,可以增加守卫者的攻击能力。 它需要1000颗星星。