How to Make Games With JavaScript

Written by mark stanisz
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to Make Games With JavaScript
Many online websites teach you how to program your own computer video games in JavaScript. (Onlineüberweisung image by PhilK from Fotolia.com)

Designing your own video game doesn't have to be complicated. A fun way to make your own video games is to use the simple scripting language called JavaScript. With a text editor such as Notepad and some basic knowledge of creating scripts you can start making your own simple JavaScript video games. There are many websites that can teach you how to use JavaScript and that also show you the raw code used to make video games.

Skill level:
Easy

Other People Are Reading

Things you need

  • Text editor software

Show MoreHide

Instructions

  1. 1

    Learn how to write some JavaScript scripts. Websites such as TrainingTools.com,

    <p>W3Schools.com and WebDevelopersNotes.com offer tutorials teaching you how to create JavaScript scripts. Also, The JavaScript Source and JavaScript Kit offer completed JavaScript game code.

  2. 2

    Develop your video game concept. Write down exactly what the object of your game is, how to achieve the goal and how to keep track of any scores. Keep it simple to start with. Match each idea to what you have learnt about JavaScript, be sure you have the skills to program it and that JavaScript has the ability to do what you want.

  3. 3

    Open your text editor, start a new text document and begin writing your JavaScript code.

  4. 4

    After you have completed the script, open it in your web browser and test your game. If there are any mistakes or program errors go back to the text editor and fix the bugs.

  5. 5

    Test your video game on different web browsers. Sometimes there are small differences, so you may have to tinker with the script to get your game to display properly.

  6. 6

    Show the game to a friend or a test audience. Bugs you did not find may pop up when someone else plays your video game.

  7. 7

    Give your video game a catchy name -- brainstorm a name by writing down any names that might describe your game or other ideas that pop into your head. Then try combining them or mixing them together until you find one that jumps out at you.

Tips and warnings

  • Start with a simple game idea as you learn to create scripts and then work up to more complex games.
  • You can find more advanced script editors with features that can speed up your script creation.
  • Try adding more features to the first version of your game by allowing the player to change some options.

Don't Miss

Filter:
  • All types
  • Articles
  • Slideshows
  • Videos
Sort:
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the eHow.co.uk site, you consent to the use of cookies. For more information, please see our Cookie policy.