This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Reflection; | |
using System.Threading.Tasks; | |
using Discord; | |
using Discord.Commands; | |
using Discord.WebSocket; | |
using System.Globalization; | |
using System.Linq; | |
using Discord.API; | |
using Discord.Webhook; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#CodeCombat | |
#Game Development 3 | |
#Level 1 - 10 Answers | |
#Level 1 | |
ui.setText("directions", "Code Provided by Revolution Game") | |
def shouldAttack(who, target): | |
if who.type == "scout" and target.type == "soldier": | |
return True | |
if who.type == "soldier" and target.type == "thrower": |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#CodeCombat | |
#Introduction to Computer Science | |
#Level 1 - 18 Answers(Not included Challenge Levels) | |
#Python | |
#Check out my Game Development 1 & 2 Answers! | |
#Level 1 | |
hero.moveRight() | |
hero.moveDown() | |
hero.moveRight() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#CodeCombat Game Development | |
#Python | |
#Level 1 - 16 Answers | |
#Check out my other answers for Game Development 2 | |
#Anything after the hashtag the computer won't run, so I will only provide necessary codes. | |
#Just copy, dont ask :) | |
#btw I will change the code to make finishing the levels easier and faster | |
#Level 1 | |
game.spawnXY("fence", 39, 16) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#CodeCombat Game Development 2 | |
#Q.21 - 29 Answers | |
#Welcome to tell me any opinion of my codes. | |
#Check out my other Q.1 - 20 Answers | |
#Level 21 | |
# Mushrooms allow the player to destroy fences for a time. | |
player = game.spawnPlayerXY('captain', 22, 45) | |
player.maxSpeed = 30 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#CodeCombat Game Development 2 | |
#Q.11 - 20 Answers | |
#Python | |
#Level 11 | |
# Use timers to spawn enemies and items. | |
# This spawns two aggressive munchkins. | |
def spawnMunchkins(): | |
munchkin1 = game.spawnXY("munchkin", 2, 12) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Game Development 2 | |
#Level 1 - 10 Answers | |
#Python | |
#Level 1 | |
# Add a soldier to the level to prevent ogres from | |
crossing the path. | |
# Command the soldier using an event handler |