Learning javaScript through a game

by Daniel M
The article that i read was about a program called code hero. Basically code hero is a first person shooter style game that teaches you to code in Javascript, C#, and Python while you play it. In the game you run around with a gun that lets you copy and paste snippets of code in order to create and change the world around you. The game also allows gives you quests that you have to complete in order to complete the stages which are really just programs that you complete. The game seems to touch on all of the basics and even some more advanced stuff. The author of the article talks about how half of the time he didn’t even realize he was learning. The author talks about how he tried to pour over books and learn to code but it never worked until he tried this game. There is a video on the website that explains the game more in depth and what they are all about (http://primerlabs.com/codehero).

This article was super interesting to me because of the fact that we need a good way to get more people interested in programming. I think the game is a good start but ultimately it will take the person to go beyond the game to truly learn to code. It is only a first step but if it gets people interested then it is a good first step. It is interesting to see how people are going about getting people interested in programming. It relates to this class because we are learning javaScript and this is just another way to learn it.


Gallegos, A. (2012, march 1). Code hero: Hiding a text book in a video game. Retrieved from http://pc.ign.com/articles/121/1219804p1.html

6 thoughts on “Learning javaScript through a game”

  1. As an aspiring programmer, programming is very difficult and challenging and I think these types of learning methods is what we need to better understand the programming languages and actually learn them instead of reading 400+ pages of programming books.

  2. Learning by playing seem like a very interesting route in teaching newcomer about coding. This approach might appeal to a broader audiences then, more traditional methods.

  3. That game sounds ingenious. Learning while playing is an amazing idea that requires complex skill levels in order to create. My question is can you be a total beginner and still learn the coding? Also, was that one of the purposes of the game or is it by accident?

  4. While the game seems like an interesting idea, I feel that it’s going to be a tool that is used to refresh what you already know. Also, aren’t games supposed to be fun? Studying in a game is still studying. Even as a kid growing up, I dreaded having to play Math Blaster in the computer labs at elementary school.

  5. Sounds like an interesting way of learning a new programming language. I’m sure this will become an efficient tool in getting future programmers involved. I know I would have been more engaged in learning had this been available.

  6. Wow that is so cool and awesome! I think this is such a great way to get people to start learning how to code using JavaScript, C# and Python. I also agree that this is a great idea in general for anyone trying to learn any type of code. If they had games like this for other programming languages I would definitely use it!

Comments are closed.