A-Maze-Ing CodeCombat

Hey, what is up guys, welcome back to another code combat blog. I haven’t been active for a while so that’s why I’m here! Now, today we will be doing a level in code combat in game development. This level is called A-Maze-Ing, Hope you guys enjoy and learn something!


So this is the starting


I can see a gem in the mapappend and 2 crosses, Lets look at the hints!

Ok, It says you can use game.spawnXY() to spawn a forest and a chest of gems, And you can collect goals, Lets click play and see what happends!

The directions are collect two items, So what I think is we have to spawn two items and go to it?! Let’s find out!

It says, collect two items, so what if we make a maze with the forest, and collect the items or the chest?! let’s try that!

So I reloaded the page and located to forest at game.spawnXY(“forest” , 34, 23)

Let’s make another forest to finish the maze!

Ok, I spawned another forest at game.spawnXY(forest” , 50, 23)

Now lets use the avatar to go through the maze and collect the chest, Hopefully we get a victory!

So that’s how you win! Hope you guys learned something! And I will see you next blog! Peace!

shayaanz

Hi my name is Shayaan and i love doing coding.

One thought to “A-Maze-Ing CodeCombat”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.