Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialDavid Mejía
2,379 PointsWhat track is the closest to learn how to create a video game in JavaScript?
With the help of HTML and CSS (I already know this two). Or I what I need to learn? I'm a designer, but i really love to create websites with complex animations.
3 Answers
Steven Parker
231,122 PointsSo you like doing things the hard way?
JavaScript is certainly not a typical language choice for developing a video game, and you won't find it in a track here, though some individual courses may have bits here and there that might apply. CSS Transitions and Transforms comes to mind, as does Animating SVG with CSS. But nothing comes to mind offhand for JavaScript except perhaps the canvas drawing functions covered at the end of jQuery Basics.
However, if you're serious about video game development, there's and entire track for Game Development with Unity. The language used is C#, but the track does not require you to have any prior experience with it.
Jason Anello
Courses Plus Student 94,610 PointsHi David,
There isn't any track that I know of that will cover this. The game development track only covers unity as Steven has already mentioned. If you goal is to create browser based games in html5/css/js then it's not going to help you.
There's a few older workshops that can probably help you get started. I'm not sure how old these are so the code might not be up to modern standards but the concepts should still be applicable.
There's a 2 part object-oriented javascript workshop series that covers a robot/maze type game:
https://teamtreehouse.com/library/programming-stepbystep-objectoriented-javascript-part-1
https://teamtreehouse.com/library/programming-stepbystep-objectoriented-javascript-part-2
"Coding Your First HTML5 Game" https://teamtreehouse.com/library/coding-your-first-html5-game
And if you're interested in 3d graphics: https://teamtreehouse.com/library/3d-in-the-browser
You'll probably want to learn about what javascript game frameworks are out there and use those to help you build the games. You can do it from scratch too if you want the learning experience but it will be harder that way.
If you're completely new to javascript then I would recommend taking some of the basic javascript courses before tackling those workshops.
Jason Anello
Courses Plus Student 94,610 PointsHere's a few resources that I found listing out some popular javascript game engines/frameworks so you can get an idea of what's out there.
David Mejía
2,379 PointsThank you very much! And sorry for the late answer. Everything is very helpful. Now I know where to start. Seriously Thank you!