Skip to content

Instantly share code, notes, and snippets.

@kurtkaiser
Created February 2, 2019 16:49
Show Gist options
  • Save kurtkaiser/46fa46a4cd174cd33fc3b768543a23d9 to your computer and use it in GitHub Desktop.
Save kurtkaiser/46fa46a4cd174cd33fc3b768543a23d9 to your computer and use it in GitHub Desktop.
This is the level I created for the final level of Code Code Combat Game Development 1, level 17. I made my level pretty challenging.
# Coded by Kurt Kaiser
player = game.spawnPlayerXY("samurai", 36, 30)
player.maxHealth = 5000
player.maxSpeed = 12
player.attackDamage = 20
game.addDefeatGoal()
game.spawnMaze("forest", 6)
ogreHome = game.spawnXY("generator", 25, 13)
ogreHome.spawnType = "ogre"
ogreHome.maxHealth = 5
skelHome = game.spawnXY("generator", 12, 56)
skelHome.spawnType = "skeleton"
skelHome.maxHealth = 2
mHome = game.spawnXY("generator", 45, 45)
mHome.spawnType = "munchkin"
mHome.maxHealth = 50
mHome.spawnDelay = 2
game.spawnXY("lightstone", 45, 13)
game.spawnXY("potion-large", 41, 13)
game.spawnXY("potion-large", 38, 13)
fire = game.spawnXY("fire-spewer", 60, 25)
fire.direction = "vertical"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment