- Very early on students will need to show file extensions in their operating system (explained briefly in the video)
- If a plain text editor is available that has programming features like line numbers and auto-indent (ex. Notepad++ on PC, TextWrangler on Mac) that may be handy but is not necessary, as a generic text editor like Notepad or TextEdit will work fine for a program of this size
At the end of this short course you'll have programmed your first game. You'll learn gameplay development fundamentals by really doing it – writing and running real code on your own machine.
Each step of the course has the source code attached exactly as it should look at that time (click "View Resources" then "Downloadable Resources"), for you to compare to or pick up from, so you can't get stuck!
Begin Your Game Programming Journey the Proven Way
"Make the simplest game possible." "Program a ball and paddle project." "Practice by first remaking something from the 1970's." All beginning developers hear this advice from more experienced peers... because it works!
By following this approach you will:
- Learn design from a fun classic that people know and enjoy.
- Start your practice today – now! – without waiting for an idea.
- Finish your game in hours or in a weekend, not over months.
- Understand every line of code used in the entire program.
- Avoid distraction from searching for or creating detailed art.
- Master fundamentals needed to make your own games better.
You can program this game with a normal text editor, and run it in the web browser you already have. No special software is needed.
I'm a private game development trainer, and for clients new to gameplay programming this is exactly the material that I cover to get them started quickly. Within hours you will have finished programming your first project. This is the fastest way to get results. The momentum gained from doing this provides a solid foundation to give more advanced concepts meaning and context as you continue on in your journey of learning game development.
(HTML5 Logo in the course image is by W3C, licensed under Creative Commons Attribution 3.0 Unported.)
- This is for anyone who wants a quick but thorough introduction to simple game programming in a way that doesn't require any special software, download, or installation
- If you've had at least a little exposure to generic programming concepts like variables, functions, and if-statements you'll have an advantage, however in case you've never heard those terms they're explained briefly as they come up
- Introduction and First Code File14:34
- Drawing and Positions12:24
- Movement and Time14:07
- Clean Up the Code06:50
- Bouncing the Ball13:41
- Circle Draw Details06:56
- Ball 2D Motion, Paddle12:20
- Ball Reset and Collision11:47
- Paddle AI and Scoring08:52
- Ball Control & Winning13:59
- Mouse Click, Draw Net09:01
- Bonus Lecture: Join HomeTeamGameDev.com - it includes our second course+textbook05:20
Chris has been making games for 23 years. He's worked with startups and AAA games, taught game creation at Georgia Tech, and spoken at more than 10 conferences (including GDC, IndieCade, and SIEGE). Over 200,000 students have done his online courses, and he's made hundreds of videos and 140 podcast industry interviews to help people discover game development. Today he runs HomeTeam GameDev, where people around the world learn game development together in a practical way building long-term remote team projects, with included access to 1-on-1 support and ongoing mentorship.